Exported Functions: liftA, liftA3, sequenceA, sequenceA_, when
liftA
:: Applicative c => (a -> b) -> c a -> c b
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
Lift a ternary function to actions.
when
:: Applicative a => Bool -> a () -> a ()
Conditional execution of Applicative expressions.
sequenceA
:: Applicative a => [a b] -> a [b]
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 ()
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.