monad-finally: Guard monadic computations with cleanup actions

[ bsd3, control, library ] [ Propose Tags ]

This package provides a generalized version of Control.Exception.finally. The cleanup action is run not only on successful termination of the main computation and on errors, but on any control flow disruption (e.g. mzero, short-circuiting) that causes the main computation to not produce a result.


[Skip to Readme]
Versions 0.1, 0.1.0.1, 0.1.1, 0.1.2
Dependencies base (>=4.4 && <5), monad-abort-fd (>=0.6.2), monad-control (>=1.0), transformers (>=0.2), transformers-abort (>=0.6), transformers-base (>=0.4), transformers-compat (>=0.6.1) [details]
License BSD-3-Clause
Copyright 2011-2017 Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
Author Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
Maintainer Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
Category Control
Home page https://github.com/mvv/monad-finally
Bug tracker https://github.com/mvv/monad-finally/issues
Source repo head: git clone https://github.com/mvv/monad-finally.git
Uploaded by MikhailVorozhtsov at Sun Apr 1 10:33:14 UTC 2018
Distributions NixOS:0.1.2
Downloads 447 total (18 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-04-14 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for monad-finally-0.1.2

[back to package description]

Monad-Finally

Travis Hackage

This package provides a generalized version of Control.Exception.finally. The cleanup action is run not only on successful termination of the main computation and on errors, but on any control flow disruption (e.g. mzero, short-circuiting) that causes the main computation to not produce a result.

Installation

The usual:

$ cabal install