Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
maybeToLeft :: r -> Maybe l -> Either l r Source #
maybeToRight :: l -> Maybe r -> Either l r Source #
leftToMaybe :: Either l r -> Maybe l Source #
rightToMaybe :: Either l r -> Maybe r Source #
maybeEmpty :: Monoid b => (a -> b) -> Maybe a -> b Source #
maybeToEither :: e -> Maybe a -> Either e a Source #