except-exceptions-0.1: Safely deal with exceptions in ExceptT

Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Trans.Except.Exception

Synopsis

Documentation

bracket Source #

Arguments

:: MonadMask m 
=> ExceptT e m a

Acquire

-> (a -> ExceptT e m c)

Release

-> (a -> ExceptT e m b)

Do some work

-> ExceptT e m b 

Exception and Left-safe version of bracket.

bracket_ Source #

Arguments

:: MonadMask m 
=> ExceptT e m a

Initialise

-> ExceptT e m b

Finalise

-> ExceptT e m c

Do some work

-> ExceptT e m c 

Exception and Left-safe version of bracket_.

bracketOnError Source #

Arguments

:: MonadMask m 
=> ExceptT e m a

Acquire

-> (a -> ExceptT e m c)

Release

-> (a -> ExceptT e m b)

Do some work

-> ExceptT e m b 

Exception and Left-safe version of bracketOnError.