stack-0.1.10.1: The Haskell Tool Stack

Safe HaskellSafe
LanguageHaskell2010

Data.Maybe.Extra

Description

Extra Maybe utilities.

Synopsis

Documentation

mapMaybeA :: Applicative f => (a -> f (Maybe b)) -> [a] -> f [b] Source

Applicative mapMaybe.

forMaybeA :: Applicative f => [a] -> (a -> f (Maybe b)) -> f [b] Source

mapMaybeM :: Monad m => (a -> m (Maybe b)) -> [a] -> m [b] Source

Monadic mapMaybe.

forMaybeM :: Monad m => [a] -> (a -> m (Maybe b)) -> m [b] Source