Module

Data.Either.Extra

Package
purescript-either-extra
Repository
bbarker/purescript-either-extra

#catLefts Source

catLefts :: forall m b a. Monad m => Plus m => m (Either a b) -> m a

#catMapLefts Source

catMapLefts :: forall m c b a. Monad m => Plus m => (a -> c) -> m (Either a b) -> m c

#leftOr Source

leftOr :: forall c b a. c -> (a -> c) -> Either a b -> c

#catRights Source

catRights :: forall m b a. Monad m => Plus m => m (Either a b) -> m b

#catMapRights Source

catMapRights :: forall m c b a. Monad m => Plus m => (b -> c) -> m (Either a b) -> m c

#rightOr Source

rightOr :: forall c b a. c -> (b -> c) -> Either a b -> c