Safe Haskell | None |
---|
This module exports the MonadException
type class.
The MonadException
class
class Monad m => MonadException m whereSource
The MonadException
type class. Minimal complete definition: throw
,
catch
.
throw :: Exception e => e -> m aSource
Generalized version of throwIO
.
catch :: Exception e => m a -> (e -> m a) -> m aSource
Generalized version of catch
.
bracket :: m a -> (a -> m b) -> (a -> m c) -> m cSource
Generalized version of bracket
.
MonadException IO | |
(MonadException b, MonadBaseControl b m) => MonadException m | |
MonadException (Either SomeException) | |
(MonadTransControl t, Monad (t m), MonadException m) => MonadException (t m) | |
Monad m => MonadException (ExceptionT m) |