Data.Neither
Description
- data AEither a b
- aeither :: (a -> c) -> (b -> c) -> AEither a b -> c
- data MEither a b
- meither :: (a -> c) -> (b -> c) -> MEither a b -> c
- newtype MEitherT e m a = MEitherT {
- runMEitherT :: m (MEither e a)
- mapMEitherT :: (m (MEither e a) -> n (MEither e' b)) -> MEitherT e m a -> MEitherT e' n b
- throwMEither :: Monad m => e -> MEitherT e m a
Applicative version
Monadic version
Monad transformer
Constructors
| MEitherT | |
Fields
| |
Instances
| MonadTrans (MEitherT e) | |
| MonadTrans (MEitherT e) | |
| Monad m => Monad (MEitherT e m) | |
| Functor m => Functor (MEitherT e m) | |
| (Functor m, Monad m) => Applicative (MEitherT e m) | |
| MonadCatchIO m => MonadCatchIO (MEitherT e m) | |
| MonadCatchIO m => MonadCatchIO (MEitherT e m) | |
| MonadIO m => MonadIO (MEitherT e m) | |
| MonadIO m => MonadIO (MEitherT e m) |
throwMEither :: Monad m => e -> MEitherT e m aSource