mtl-compat

Backported Control.Monad.Except module from mtl

https://github.com/haskell-compat/mtl-compat

Version on this page:0.2.1.3@rev:4
LTS Haskell 22.41:0.2.2
Stackage Nightly 2024-11-12:0.2.2
Latest on Hackage:0.2.2

See all snapshots mtl-compat appears in

BSD-3-Clause licensed by Ryan Scott
Maintained by Ryan Scott
This version can be pinned in stack with:mtl-compat-0.2.1.3@sha256:6529f13857d14847664215bd46f324cc1008e874b42eb0a516a0807e19ead9d5,2984

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