The mtl-compat package

[Tags:bsd3, library]

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]

Properties

Versions 0.1, 0.1.1, 0.2.0.4, 0.2.1.1, 0.2.1.2, 0.2.1.3
Change log CHANGELOG.md
Dependencies base (>=4.3 && <5), mtl (>=2.2.1 && <2.3) [details]
License BSD3
Copyright (C) 2015 Ryan Scott
Author Ryan Scott
Maintainer Ryan Scott <ryan.gl.scott@gmail.com>
Stability Provisional
Category Compatibility
Home page https://github.com/haskell-compat/mtl-compat
Bug tracker https://github.com/haskell-compat/mtl-compat/issues
Source repository head: git clone git://github.com/haskell-compat/mtl-compat.git
Uploaded Fri Feb 13 17:43:40 UTC 2015 by ryanglscott
Updated Wed Jan 20 15:06:48 UTC 2016 by ryanglscott to revision 3
Distributions Debian:0.2.1.3, LTSHaskell:0.2.1.3, NixOS:0.2.1.3, Stackage:0.2.1.3, Tumbleweed:0.2.1.3
Downloads 3291 total (136 in the last 30 days)
Votes
1 []
Status Docs not available [build log]
Last success reported on 2016-11-28 [all 8 reports]

Modules

  • Control
    • Monad
      • Control.Monad.Except

Flags

NameDescriptionDefaultType
two-point-oneUse mtl-2.1.3.1 or earlier with transformers-compat. This will cause this package to export the Control.Monad.Except module.DisabledManual
two-point-twoUse mtl-2.2.0.1 with transformers. This will cause this package to export the Control.Monad.Except module.DisabledManual

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for mtl-compat

Readme for mtl-compat-0.2.1.3

mtl-compat Hackage version Build Status

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.