Concrete functor and monad transformers

Version on this page:
LTS Haskell 21.23:
Stackage Nightly 2023-12-04:
Latest on Hackage:

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-,3093

Module documentation for

  • 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.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.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 "Functional Programming with Overloading and Higher-Order Polymorphism", by Mark P Jones, in Advanced School of Functional Programming, 1995 (

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.