transformers

Concrete functor and monad transformers

Version on this page:0.5.6.2
LTS Haskell 22.39:0.6.1.0
Stackage Nightly 2024-10-31:0.6.1.0
Latest on Hackage:0.6.1.2

See all snapshots transformers appears in

BSD-3-Clause licensed by Andy Gill, Ross Paterson
Maintained by Ross Paterson
This version can be pinned in stack with:transformers-0.5.6.2@sha256:6c959d14430f4deffb99579ba019de07c3d852a2122b6f449344386c7d75ff1d,3172

Module documentation for 0.5.6.2

  • Control
    • Control.Applicative
      • Control.Applicative.Backwards
      • Control.Applicative.Lift
    • Control.Monad
      • Control.Monad.Signatures
      • Control.Monad.Trans
        • Control.Monad.Trans.Accum
        • Control.Monad.Trans.Class
        • Control.Monad.Trans.Cont
        • Control.Monad.Trans.Error
        • Control.Monad.Trans.Except
        • Control.Monad.Trans.Identity
        • Control.Monad.Trans.List
        • Control.Monad.Trans.Maybe
        • Control.Monad.Trans.RWS
          • Control.Monad.Trans.RWS.CPS
          • Control.Monad.Trans.RWS.Lazy
          • Control.Monad.Trans.RWS.Strict
        • Control.Monad.Trans.Reader
        • Control.Monad.Trans.Select
        • Control.Monad.Trans.State
          • Control.Monad.Trans.State.Lazy
          • Control.Monad.Trans.State.Strict
        • Control.Monad.Trans.Writer
          • Control.Monad.Trans.Writer.CPS
          • Control.Monad.Trans.Writer.Lazy
          • Control.Monad.Trans.Writer.Strict
  • Data
    • Data.Functor
      • Data.Functor.Constant
      • Data.Functor.Reverse

A portable library of functor and monad transformers, inspired by the paper

This package contains:

  • the monad transformer class (in Control.Monad.Trans.Class)

  • concrete functor and monad transformers, each with associated operations and functions to lift operations associated with other transformers.

The package can be used on its own in portable Haskell code, in which case operations need to be manually lifted through transformer stacks (see Control.Monad.Trans.Class for some examples). Alternatively, it can be used with the non-portable monad classes in the mtl or monads-tf packages, which automatically lift operations introduced by monad transformers through other transformers.