Portability | portable |
---|---|

Stability | provisional |

Maintainer | gcross@haskell.org |

Functions for probing and unwrapping values inside of Either.

- isLeft :: Either a b -> Bool
- isRight :: Either a b -> Bool
- fromLeft :: Either a b -> a
- fromRight :: Either a b -> b
- eitherM :: Monad m => Either a b -> (a -> m c) -> (b -> m c) -> m c
- whenLeft :: Monad m => Either a b -> (a -> m ()) -> m ()
- whenRight :: Monad m => Either a b -> (b -> m ()) -> m ()
- unlessLeft :: Monad m => Either a b -> (b -> m ()) -> m ()
- unlessRight :: Monad m => Either a b -> (a -> m ()) -> m ()