rio-0.0.3.0: A standard library for Haskell

Safe HaskellNone
LanguageHaskell2010

RIO.Prelude.Extra

Synopsis

Documentation

mapLeft :: (a1 -> a2) -> Either a1 b -> Either a2 b Source #

fromFirst :: a -> First a -> a Source #

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

Applicative mapMaybe.

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

Monadic mapMaybe.

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

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

nubOrd :: Ord a => [a] -> [a] Source #