mtl-compat: Backported Control.Monad.Except module from mtl

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

This package backports the Control.Monad.Except module from mtl (if using mtl-2.2.0.1 or earlier), which reexports the ExceptT monad transformer and the MonadError class.

This package should only be used if there is a need to use the Control.Monad.Except module specifically. If you just want the mtl class instances for ExceptT, use transformers-compat instead, since mtl-compat does nothing but reexport the instances from that package.

Note that unlike how mtl-2.2 or later works, the Control.Monad.Except module defined in this package exports all of ExceptT's monad class instances. Therefore, you may have to declare import Control.Monad.Except () at the top of your file to get all of the ExceptT instances in scope.


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
two-point-one

Use mtl-2.1.3.1 or earlier with transformers-compat. This will cause this package to export the Control.Monad.Except module.

Disabled
two-point-two

Use mtl-2.2.0.1 with transformers. This will cause this package to export the Control.Monad.Except module.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.2.0.4, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.2
Change log CHANGELOG.md
Dependencies base (>=4.3 && <5), mtl (>=2.0.1), transformers (>=0.4.1 && <0.6), transformers-compat (>=0.4 && <0.7) [details]
Tested with ghc ==7.0.4, ghc ==7.2.2, ghc ==7.4.2, 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.1
License BSD-3-Clause
Copyright (C) 2015-2017 Ryan Scott
Author Ryan Scott
Maintainer Ryan Scott <ryan.gl.scott@gmail.com>
Category Compatibility
Home page https://github.com/haskell-compat/mtl-compat
Bug tracker https://github.com/haskell-compat/mtl-compat/issues
Source repo head: git clone https://github.com/haskell-compat/mtl-compat
Uploaded by ryanglscott at 2019-04-28T13:30:42Z
Distributions LTSHaskell:0.2.2, NixOS:0.2.2, Stackage:0.2.2
Reverse Dependencies 29 direct, 500 indirect [details]
Downloads 35122 total (199 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-04-28 [all 3 reports]

Readme for mtl-compat-0.2.2

[back to package description]

mtl-compat

Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build

This package backports the Control.Monad.Except module from mtl (if using mtl-2.2.0.1 or earlier), which reexports the ExceptT monad transformer and the MonadError class.

This package should only be used if there is a need to use the Control.Monad.Except module specifically. If you just want mtl class instances for ExceptT, use transformers-compat instead, since mtl-compat does nothing but reexport the instances from that package.

Note that unlike how mtl-2.2 or later works, the Control.Monad.Except module defined in this package exports all of ExceptT's monad class instances. Therefore, you may have to declare import Control.Monad.Except () at the top of your file to get all of the ExceptT instances in scope.