• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

src/Control/Monad/Trans/H03-May-2022-873224

CHANGELOGH A D09-Sep-200113.9 KiB507312

LICENSEH A D09-Sep-20011.5 KiB3024

README.markdownH A D09-Sep-2001954 1814

monad-control.cabalH A D09-Sep-20012.3 KiB7162

README.markdown

1[![Hackage](https://img.shields.io/hackage/v/monad-control.svg)](https://hackage.haskell.org/package/monad-control)
2[![Build Status](https://travis-ci.org/basvandijk/monad-control.svg)](https://travis-ci.org/basvandijk/monad-control)
3
4This package defines the type class `MonadControlIO`, a subset of
5`MonadIO` into which generic control operations such as `catch` can be
6lifted from `IO`.  Instances are based on monad transformers in
7`MonadTransControl`, which includes all standard monad transformers in
8the `transformers` library except `ContT`.
9
10Note that this package is a rewrite of Anders Kaseorg's `monad-peel`
11library.  The main difference is that this package provides CPS style
12operators and exploits the `RankNTypes` language extension to simplify
13most definitions.
14
15[This `criterion`](https://github.com/basvandijk/bench-monad-peel-control)
16based benchmark shows that `monad-control` is on average about 2.5
17times faster than `monad-peel`.
18