Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- maybeToLeft :: r -> Maybe l -> Either l r
- maybeToRight :: l -> Maybe r -> Either l r
- leftToMaybe :: Either l r -> Maybe l
- rightToMaybe :: Either l r -> Maybe r
- maybeEmpty :: Monoid b => (a -> b) -> Maybe a -> b
- maybeToEither :: e -> Maybe a -> Either e a
- fromLeft :: a -> Either a b -> a
- fromRight :: b -> Either a b -> b
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 #