pandora-0.1.7: A box of patterns and paradigms

Safe HaskellSafe
LanguageHaskell2010

Pandora.Paradigm.Basis.Validation

Documentation

data Validation e a Source #

Constructors

Flaws e 
Validated a 
Instances
Covariant (Validation e) Source # 
Instance details

Defined in Pandora.Paradigm.Basis.Validation

Methods

(<$>) :: (a -> b) -> Validation e a -> Validation e b Source #

comap :: (a -> b) -> Validation e a -> Validation e b Source #

(<$) :: a -> Validation e b -> Validation e a Source #

($>) :: Validation e a -> b -> Validation e b Source #

void :: Validation e a -> Validation e () Source #

loeb :: Validation e (Validation e a -> a) -> Validation e a Source #

(<&>) :: Validation e a -> (a -> b) -> Validation e b Source #

(<$$>) :: Covariant u => (a -> b) -> ((Validation e :.: u) >< a) -> (Validation e :.: u) >< b Source #

(<$$$>) :: (Covariant u, Covariant v) => (a -> b) -> ((Validation e :.: (u :.: v)) >< a) -> (Validation e :.: (u :.: v)) >< b Source #

(<$$$$>) :: (Covariant u, Covariant v, Covariant w) => (a -> b) -> ((Validation e :.: (u :.: (v :.: w))) >< a) -> (Validation e :.: (u :.: (v :.: w))) >< b Source #

(<&&>) :: Covariant u => ((Validation e :.: u) >< a) -> (a -> b) -> (Validation e :.: u) >< b Source #

(<&&&>) :: (Covariant u, Covariant v) => ((Validation e :.: (u :.: v)) >< a) -> (a -> b) -> (Validation e :.: (u :.: v)) >< b Source #

(<&&&&>) :: (Covariant u, Covariant v, Covariant w) => ((Validation e :.: (u :.: (v :.: w))) >< a) -> (a -> b) -> (Validation e :.: (u :.: (v :.: w))) >< b Source #

Semigroup e => Applicative (Validation e) Source # 
Instance details

Defined in Pandora.Paradigm.Basis.Validation

Methods

(<*>) :: Validation e (a -> b) -> Validation e a -> Validation e b Source #

apply :: Validation e (a -> b) -> Validation e a -> Validation e b Source #

(*>) :: Validation e a -> Validation e b -> Validation e b Source #

(<*) :: Validation e a -> Validation e b -> Validation e a Source #

forever :: Validation e a -> Validation e b Source #

(<**>) :: Applicative u => (Validation e :.: u) (a -> b) -> (Validation e :.: u) a -> (Validation e :.: u) b Source #

(<***>) :: (Applicative u, Applicative v) => (Validation e :.: (u :.: v)) (a -> b) -> (Validation e :.: (u :.: v)) a -> (Validation e :.: (u :.: v)) b Source #

(<****>) :: (Applicative u, Applicative v, Applicative w) => (Validation e :.: (u :.: (v :.: w))) (a -> b) -> (Validation e :.: (u :.: (v :.: w))) a -> (Validation e :.: (u :.: (v :.: w))) b Source #

Alternative (Validation e) Source # 
Instance details

Defined in Pandora.Paradigm.Basis.Validation

Methods

(<+>) :: Validation e a -> Validation e a -> Validation e a Source #

alter :: Validation e a -> Validation e a -> Validation e a Source #

Pointable (Validation e) Source # 
Instance details

Defined in Pandora.Paradigm.Basis.Validation

Methods

point :: a -> Validation e a Source #

Traversable (Validation e) Source # 
Instance details

Defined in Pandora.Paradigm.Basis.Validation

Methods

(->>) :: (Pointable u, Applicative u) => Validation e a -> (a -> u b) -> (u :.: Validation e) b Source #

traverse :: (Pointable u, Applicative u) => (a -> u b) -> Validation e a -> (u :.: Validation e) b Source #

sequence :: (Pointable u, Applicative u) => (Validation e :.: u) a -> (u :.: Validation e) a Source #

(->>>) :: (Pointable u, Applicative u, Traversable v) => (v :.: Validation e) a -> (a -> u b) -> (u :.: (v :.: Validation e)) b Source #

(->>>>) :: (Pointable u, Applicative u, Traversable v, Traversable w) => (w :.: (v :.: Validation e)) a -> (a -> u b) -> (u :.: (w :.: (v :.: Validation e))) b Source #

(->>>>>) :: (Pointable u, Applicative u, Traversable v, Traversable w, Traversable j) => (j :.: (w :.: (v :.: Validation e))) a -> (a -> u b) -> (u :.: (j :.: (w :.: (v :.: Validation e)))) b Source #