Module
Polyform.Validator
- Package
- purescript-polyform
- Repository
- paluh/purescript-polyform
#Validator Source
newtype Validator m e i o
Constructors
Instances
Newtype (Validator m r i o) _
(Applicative m, Semigroup e) => Functor (Validator m e i)
(Applicative m, Semigroup e) => Apply (Validator m e i)
(Applicative m, Semigroup e) => Applicative (Validator m e i)
(Functor m) => Profunctor (Validator m e)
(Semigroup e, Applicative m) => Choice (Validator m e)
(Monad m, Semigroup e) => Strong (Validator m e)
(Semigroup e, Monad m) => Alt (Validator m e i)
(Monad m, Monoid e) => Plus (Validator m e i)
(Apply m, Semigroup e, Semigroup o) => Semigroup (Validator m e i o)
(Applicative m, Monoid e, Monoid o) => Monoid (Validator m e i o)
(Monad m, Semigroup e) => Semigroupoid (Validator m e)
(Monad m, Semigroup e) => Category (Validator m e)
#runValidator Source
runValidator :: forall e o m i. Validator m e i o -> (i -> m (V e o))
#hoistFn Source
hoistFn :: forall o m i e. Applicative m => Semigroup e => (i -> o) -> Validator m e i o
These hoists set is used to lift functions into Validator
#hoistFnV Source
hoistFnV :: forall o m i e. Applicative m => Semigroup e => (i -> V e o) -> Validator m e i o
#hoistFnM Source
hoistFnM :: forall o m i e. Applicative m => Semigroup e => (i -> m o) -> Validator m e i o
#hoistFnEither Source
hoistFnEither :: forall o m i e. Applicative m => Semigroup e => (i -> Either e o) -> Validator m e i o
#lift Source
lift :: forall t m o i e. MonadTrans t => Monad m => Validator m e i o -> Validator (t m) e i o
#BifunctorValidator Source
newtype BifunctorValidator m i e o
Provides access to validation result
so you can bimap
over e
and b
type in resulting V e b
.
Constructors
BifunctorValidator (Validator m e i o)
Instances
Newtype (BifunctorValidator m i e o) _
(Monad m) => Bifunctor (BifunctorValidator m i)
#bimapValidator Source
bimapValidator :: forall o' o m e' e i. Monad m => (e -> e') -> (o -> o') -> Validator m e i o -> Validator m e' i o'
#lmapValidator Source
lmapValidator :: forall o m i e' e. Monad m => (e -> e') -> Validator m e i o -> Validator m e' i o
#rmapValidator Source
rmapValidator :: forall m o' o i e. Monad m => (o -> o') -> Validator m e i o -> Validator m e i o'
#toStarExceptT Source
toStarExceptT :: forall o m i e. Functor m => Validator m e i o -> Star (ExceptT e m) i o
- Modules
- Polyform.
Dual - Polyform.
Dual. Generic - Polyform.
Dual. Generic. Sum - Polyform.
Dual. Generic. Variant - Polyform.
Dual. Record - Polyform.
Dual. Variant - Polyform.
Duals. Validator - Polyform.
Duals. Validator. Generic - Polyform.
Duals. Validator. Pure - Polyform.
Exceptor - Polyform.
Parser - Polyform.
StarExceptT - Polyform.
Validator - Polyform.
Validator. Par - Polyform.
Validator. Pure - Polyform.
Validator. Record