monad-finally: Guard monadic computations with cleanup actions

[ bsd3, control, library ] [ Propose Tags ] [ Report a vulnerability ]

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]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.0.1, 0.1.1, 0.1.2, 0.1.2.1
Dependencies base (>=4.4 && <5), monad-abort-fd (>=0.7.0.1), monad-control (>=1.0), transformers (>=0.2), transformers-abort (>=0.6), transformers-base (>=0.4), transformers-compat (>=0.6.1) [details]
Tested with ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.7, ghc ==9.0.2, ghc ==9.2.7, ghc ==9.4.5, ghc ==9.6.1
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 2023-05-09T16:47:28Z
Distributions NixOS:0.1.2.1
Reverse Dependencies 1 direct, 1 indirect [details]
Downloads 2470 total (29 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-05-09 [all 1 reports]

Readme for monad-finally-0.1.2.1

[back to package description]

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