transformers

Concrete functor and monad transformers

Latest on Hackage:0.5.6.2

See all snapshots transformers appears in

BSD-3-Clause licensed by Andy Gill, Ross Paterson
Maintained by Ross Paterson

Module documentation for 0.5.5.0

This version can be pinned in stack with:transformers-0.5.5.0@sha256:20cfbb9a48104f0fe00587467c060525da30887f6fa59aa09d353759083a7ea8,3093
  • 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 (http://web.cecs.pdx.edu/~mpj/pubs/springschool.html).

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.