Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Wrapper module around Control.Monad.Error, in order to be backwards compatible as far as UHC is concerned.
- module Control.Monad.Except
- class Error a where
- type ErrorT = ExceptT
- runErrorT :: ExceptT e m a -> m (Either e a)
- withErrorT :: Functor m => (e -> e') -> ExceptT e m a -> ExceptT e' m a
- mapErrorT :: (m (Either e a) -> n (Either e' b)) -> ExceptT e m a -> ExceptT e' n b
- runError :: Except e a -> Either e a
- withError :: (e -> e') -> Except e a -> Except e' a
- mapError :: (Either e a -> Either e' b) -> Except e a -> Except e' b
Documentation
module Control.Monad.Except
Copiedolddeprecated functionality from Control.Monad.Error.Class
Creates an exception without a message.
The default implementation is
.strMsg
""
Error (CompileRunState err) Source # | |
Error (CompileRunState err) Source # | |
Error (CompileRunState err) Source # | |