errors-ext-0.2: Bracket-like functions for ExceptT over IO monad.

Safe HaskellSafe
LanguageHaskell2010

Control.Error.Extensions

Description

This module exports bracket-like functions for ExceptT.

Synopsis

Documentation

bracketE :: MonadMask m => ExceptT e m a -> (a -> ExceptT e m b) -> (a -> ExceptT e m c) -> ExceptT e m c Source #

Analogous to bracket, but for ExceptT over IO (or any MonadMask monad).

bracketE_ :: MonadMask m => ExceptT e m a -> ExceptT e m b -> ExceptT e m c -> ExceptT e m c Source #

A variant of bracketE where the return value from the first computation is not required.