Module Control.Applicative


Exported Functions: liftA, liftA3, sequenceA, sequenceA_, when


Exported Functions


liftA :: Applicative c => (a -> b) -> c a -> c b  Deterministic 

Lift a function to actions. This function may be used as a value for fmap in a Functor instance.


liftA3 :: Applicative e => (a -> b -> c -> d) -> e a -> e b -> e c -> e d  Deterministic 

Lift a ternary function to actions.


when :: Applicative a => Bool -> a () -> a ()  Deterministic 

Conditional execution of Applicative expressions.


sequenceA :: Applicative a => [a b] -> a [b]  Deterministic 

Evaluate each action in the list from left to right, and collect the results. For a version that ignores the results see sequenceA_.


sequenceA_ :: Applicative a => [a b] -> a ()  Deterministic 

Evaluate each action in the structure from left to right, and ignore the results. For a version that doesn't ignore the results see sequenceA.