@hackage / monad-finally

Guard monadic computations with cleanup actions

Latest0.1.2.1

About

Metadata

  • Last updated , by MikhailVorozhtsov
  • License BSD-3-Clause
  • Maintained by: Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.6.1
  2. 9.4.5
  3. 9.2.7
  4. 9.0.2
  5. 8.10.7
  6. 8.8.4
  7. 8.6.5
  8. 8.4.4
  9. 8.2.2
  10. 8.0.2
  11. 7.10.3

Readme

Monad-Finally

Build 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