Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Monad m => MonadError e m | m -> e where
- try :: MonadError e m => m a -> m a -> m a
- (!+) :: MonadError Void m => m a -> m a -> m a
- optional :: MonadError e m => m a -> m (Maybe a)
- throwIO :: (MonadError SomeException m, Exception e) => e -> m ()
- data EitherT e m a
- eitherT :: Iso (EitherT e m a) (EitherT f m b) (m (e :+: a)) (m (f :+: b))
The MonadError class
class Monad m => MonadError e m | m -> e where Source #
MonadError e m => MonadError e (Free m) Source # | |
Monad m => MonadError Void (ListT m) Source # | |
Monad m => MonadError Void (LogicT m) Source # | |
MonadError e m => MonadError e (StateT s m) Source # | |
(Monoid w, MonadError e m) => MonadError e (RWST r w s m) Source # | |
try :: MonadError e m => m a -> m a -> m a Source #
(!+) :: MonadError Void m => m a -> m a -> m a infixr 0 Source #
optional :: MonadError e m => m a -> m (Maybe a) Source #
throwIO :: (MonadError SomeException m, Exception e) => e -> m () Source #
The Either transformer
MonadTrans (EitherT e) Source # | |
Unit m => Unit (EitherT e m) Source # | |
MonadFix m => MonadFix (EitherT e m) Source # | |
Traversable m => Traversable (EitherT e m) Source # | |
Foldable m => Foldable (EitherT e m) Source # | |
Monad m => Monad (EitherT e m) Source # | |
Applicative m => Applicative (EitherT e m) Source # | |
SemiApplicative m => SemiApplicative (EitherT e m) Source # | |
Functor m => Functor (EitherT e m) Source # | |
Orphan instances
MonadError SomeException IO Source # | |
MonadError Void [] Source # | |
MonadError Void Maybe Source # | |
MonadError e (Either e) Source # | |