protolude-0.2.2: A small prelude.

Safe HaskellSafe
LanguageHaskell2010

Protolude.Either

Documentation

maybeToLeft :: r -> Maybe l -> Either l r Source #

maybeToRight :: l -> Maybe r -> Either l r Source #

maybeEmpty :: Monoid b => (a -> b) -> Maybe a -> b Source #

maybeToEither :: e -> Maybe a -> Either e a Source #