monad-control-aligned: Just like monad-control, except less efficient, and the monadic state terms are all * -> *

[ bsd3, control, library ] [ Propose Tags ]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0, 0.0.1, 0.0.1.1, 0.0.2, 0.0.2.1
Change log CHANGELOG
Dependencies base (>=4.5 && <5), stm (>=2.3 && <3), transformers (>=0.2 && <0.6), transformers-base (>=0.4.4 && <0.5), transformers-compat (>=0.3 && <0.6) [details]
License BSD-3-Clause
Copyright (c) 2011 Bas van Dijk, Anders Kaseorg
Author Athan Clark
Maintainer Athan Clark <athan.clark@gmail.com>
Category Control
Home page https://github.com/athanclark/monad-control#readme
Bug tracker https://github.com/athanclark/monad-control/issues
Source repo head: git clone git://github.com/athanclark/monad-control.git
Uploaded by athanclark at 2017-05-10T22:49:27Z
Distributions LTSHaskell:0.0.2.1, Stackage:0.0.2.1
Reverse Dependencies 10 direct, 4 indirect [details]
Downloads 2511 total (24 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for monad-control-aligned-0.0.1

[back to package description]

Hackage Build Status

This package defines the type class MonadControlIO, a subset of MonadIO into which generic control operations such as catch can be lifted from IO. Instances are based on monad transformers in MonadTransControl, which includes all standard monad transformers in the transformers library except ContT.

Note that this package is a rewrite of Anders Kaseorg's monad-peel library. The main difference is that this package provides CPS style operators and exploits the RankNTypes language extension to simplify most definitions.

The package includes a copy of the monad-peel testsuite written by Anders Kaseorg The tests can be performed by using cabal test.

This criterion based benchmark shows that monad-control is on average about 2.5 times faster than monad-peel.