|
Control.Monad.Error | Portability | non-portable (reqruires multi-param type classes) | Stability | experimental | Maintainer | libraries@haskell.org |
|
|
|
|
|
Description |
The Error monad. Rendered by Michael Weber mailto:michael.weber@post.rwth-aachen.de,
inspired by the Haskell Monad Template Library from
Andy Gill (http://www.cse.ogi.edu/~andy)
|
|
|
|
class Error a where |
| Methods | strMsg :: String -> a | | noMsg :: a |
| | Instances | |
|
|
class (Monad m) => MonadError e m | m -> e where |
| Methods | catchError :: m a -> (e -> m a) -> m a | | throwError :: e -> m a |
| | Instances | |
|
|
data ErrorT e m a |
|
|
runErrorT :: ErrorT e m a -> m (Either e a) |
|
mapErrorT :: (m (Either e a) -> n (Either e' b)) -> ErrorT e m a -> ErrorT e' n b |
|
module Control.Monad |
|
module Control.Monad.Fix |
|
module Control.Monad.Trans |
|
Produced by Haddock version 0.3 |