Package Info

ghc-monad-control


Lift control operations, like exception catching, through monad transformers


Unspecified

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

See the <http://hackage.haskell.org/package/lifted-base lifted-base> package which uses 'monad-control' to lift 'IO' operations from the 'base' library (like 'catch' or 'bracket') into any monad that is an instance of 'MonadBase' or 'MonadBaseControl'.

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' and 'TypeFamilies' language extensions to simplify and speedup most definitions.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/monad-control

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.0.0.5-3.1 info openSUSE-2016-291 2016-07-04 12 GA-SP5
  • x86-64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.1.0-6.2 info 5585 2016-09-14 12 GA-SP5
  • ppc64le
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.1.0-6.7 info 5585 2016-09-14 12 GA-SP5
  • AArch64
  • s390x
  • x86-64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.2.1-bp150.2.4 info GA Release 2018-08-01 15
  • AArch64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.2.1-bp150.2.5 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.2.3-bp151.1.10 info GA Release 2019-05-31 15 SP1
  • AArch64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.2.3-bp151.2.2 info GA Release 2019-07-17 15 SP1
  • ppc64le
  • x86-64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.2.3-bp152.4.13 info GA Release 2020-06-16 15 SP2
  • AArch64
  • ppc64le
  • x86-64
  • ghc-monad-control
  • ghc-monad-control-devel
1.0.2.3-bp153.1.20 info GA Release 2021-04-08 15 SP3
  • AArch64
  • ppc64le
  • x86-64
  • ghc-monad-control
  • ghc-monad-control-devel