Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- bracket :: MonadMask m => ExceptT e m a -> (a -> ExceptT e m c) -> (a -> ExceptT e m b) -> ExceptT e m b
- bracket_ :: MonadMask m => ExceptT e m a -> ExceptT e m b -> ExceptT e m c -> ExceptT e m c
- bracketOnError :: MonadMask m => ExceptT e m a -> (a -> ExceptT e m c) -> (a -> ExceptT e m b) -> ExceptT e m b
Documentation
:: 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
.
:: 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_
.