Documentation
throw :: (MonadAbort SomeException μ, Exception e) => e -> μ αSource
catch :: (MonadRecover SomeException μ, Exception e) => μ α -> (e -> μ α) -> μ αSource
catchJust :: (MonadRecover SomeException μ, Exception e) => (e -> Maybe β) -> μ α -> (β -> μ α) -> μ αSource
handle :: (MonadRecover SomeException μ, Exception e) => (e -> μ α) -> μ α -> μ αSource
handleJust :: (MonadRecover SomeException μ, Exception e) => (e -> Maybe β) -> (β -> μ α) -> μ α -> μ αSource
catches :: MonadRecover SomeException μ => μ α -> [Handler μ α] -> μ αSource
try :: (MonadRecover SomeException μ, Exception e) => μ α -> μ (Either e α)Source
tryJust :: (MonadRecover SomeException μ, Exception e) => (e -> Maybe β) -> μ α -> μ (Either β α)Source
onException :: (MonadRecover SomeException μ, Exception e) => μ α -> (e -> μ β) -> μ αSource
onExceptions :: MonadRecover SomeException μ => μ α -> [Handler μ β] -> μ αSource
class (Applicative μ, Monad μ) => MonadFinally μ whereSource
MonadFinally IO | |
MonadFinally Identity | |
MonadFinally μ => MonadFinally (ListT μ) | |
MonadFinally μ => MonadFinally (MaybeT μ) | |
MonadFinally μ => MonadFinally (StateT s μ) | |
(MonadFinally μ, Error e) => MonadFinally (ErrorT e μ) | |
MonadFinally μ => MonadFinally (ReaderT r μ) | |
MonadFinally μ => MonadFinally (StateT s μ) | |
(MonadFinally μ, Monoid w) => MonadFinally (WriterT w μ) | |
(MonadFinally μ, Monoid w) => MonadFinally (WriterT w μ) | |
MonadFinally μ => MonadFinally (AbortT e μ) | |
MonadFinally μ => MonadFinally (FinishT β μ) | |
(MonadFinally μ, Monoid w) => MonadFinally (RWST r w s μ) | |
(MonadFinally μ, Monoid w) => MonadFinally (RWST r w s μ) |
onEscape :: MonadFinally μ => μ α -> μ β -> μ αSource
tryAll :: MonadFinally μ => [μ α] -> μ ()Source
class (Applicative μ, Monad μ, Ord m, Bounded m, Default m) => MonadMask m μ | μ -> m whereSource
getMaskingState :: μ mSource
setMaskingState :: m -> μ α -> μ αSource
MonadMask () Identity | |
MonadMask MaskingState IO | |
MonadMask m μ => MonadMask m (ListT μ) | |
MonadMask m μ => MonadMask m (MaybeT μ) | |
(MonadMask m μ, Monoid w) => MonadMask m (WriterT w μ) | |
(MonadMask m μ, Monoid w) => MonadMask m (WriterT w μ) | |
MonadMask m μ => MonadMask m (StateT s μ) | |
MonadMask m μ => MonadMask m (StateT s μ) | |
MonadMask m μ => MonadMask m (ReaderT r μ) | |
(MonadMask m μ, Error e) => MonadMask m (ErrorT e μ) | |
MonadMask m μ => MonadMask m (FinishT β μ) | |
MonadMask m μ => MonadMask m (AbortT e μ) | |
(MonadMask m μ, Monoid w) => MonadMask m (RWST r w s μ) | |
(MonadMask m μ, Monoid w) => MonadMask m (RWST r w s μ) |
uninterruptibleMask :: MonadMask MaskingState μ => ((forall η β. MonadMask MaskingState η => η β -> η β) -> μ α) -> μ αSource
uninterruptibleMask_ :: MonadMask MaskingState μ => μ α -> μ αSource
bracket :: (MonadFinally μ, MonadMask m μ) => μ α -> (α -> μ β) -> (α -> μ γ) -> μ γSource
bracket_ :: (MonadFinally μ, MonadMask m μ) => μ α -> μ β -> μ γ -> μ γSource
bracketOnEscape :: (MonadFinally μ, MonadMask m μ) => μ α -> (α -> μ β) -> (α -> μ γ) -> μ γSource
bracketOnError :: (MonadRecover e μ, MonadMask m μ) => μ α -> (α -> μ β) -> (α -> μ γ) -> μ γSource
module Control.Monad.Abort.Class
module Control.Exception