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

Safe HaskellSafe
LanguageHaskell2010

Control.Error.Extensions

Description

This module exports bracket-like functions for ExceptT over IO monad.

Synopsis

Documentation

bracketE :: ExceptT e IO a -> (a -> ExceptT e IO b) -> (a -> ExceptT e IO c) -> ExceptT e IO c Source #

Analogous to bracket, but for ExceptT over IO.

bracketE_ :: ExceptT e IO a -> ExceptT e IO b -> ExceptT e IO c -> ExceptT e IO c Source #

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