Module Control.Applicative

Summary of exported operations:

liftA :: Applicative a => (b -> c) -> a b -> a c  Deterministic 
Lift a function to actions.
liftA3 :: Applicative a => (b -> c -> d -> e) -> a b -> a c -> a d -> a e  Deterministic 
Lift a ternary function to actions.
when :: Applicative a => Bool -> a () -> a ()  Deterministic 
sequenceA :: Applicative a => [a b] -> a [b]  Deterministic 
Evaluate each action in the list from left to right, and collect the results.
sequenceA_ :: Applicative a => [a b] -> a ()  Deterministic 
Evaluate each action in the structure from left to right, and ignore the results.

Exported operations:

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

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

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

Lift a ternary function to actions.

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

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.