| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Either.Extras
Synopsis
- unsafeFromEither :: Exception e => Either e a -> a
- fromRightM :: Monad m => (a -> m b) -> Either a b -> m b
Documentation
unsafeFromEither :: Exception e => Either e a -> a #
fromRightM :: Monad m => (a -> m b) -> Either a b -> m b #
If argument is Right return its value,
otherwise apply the given action to the value of Left and return its result.