mtl-compat

Backported Control.Monad.Except module from mtl https://github.com/haskell-compat/mtl-compat

LTS Haskell 8.6:0.2.1.3
Stackage Nightly 2017-03-28:0.2.1.3
Latest on Hackage:0.2.1.3
BSD3 licensed by Ryan Scott
Maintained by Ryan Scott

Module documentation for 0.2.1.3

There are no documented modules for this package.

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.

Changes

0.2.1.3

  • A specific build with no flags explicitly enabled, intended for use with the latest version of mtl. This is a workaround for cabal backtracker bugs.

0.2.1.2

  • A specific build with the -ftwo-point-two flag explicitly enabled. This is a workaround for cabal backtracker bugs.

0.2.1.1

  • A specific build with the -ftwo-point-one flag explicitly enabled. This is a workaround for cabal backtracker bugs.

0.2.1

  • Require use of transformers-compat-0.4 or greater when building with mtl-2.1.3.1 or earlier. transformers-compat-0.4.0.* adds the missing ExceptT instances, which means that mtl-compat's only purpose is to backport the Control.Monad.Except module for those who want an mtl-style import for ExceptT and/or MonadError.

    I would recommend just using Control.Monad.Trans.Except from transformers-compat-0.4.0.* and Control.Monad.Error.Class instead, since they accomplish the same thing as mtl-compat without an extra dependency.

0.1.1

  • Allowed the two-point-one flag to toggle on/off automatically

0.1

  • Initial commit
comments powered byDisqus