# transformers

> Concrete functor and monad transformers for Haskell

Source: https://talira.ai/catalog/transformers-tkbnymgd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / functional programming](https://talira.ai/categories/libraries/functional-programming), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]

transformers is the portable Haskell library of functor and monad transformers: the monad transformer class (Control.Monad.Trans.Class) and concrete transformers such as ReaderT, StateT, WriterT, ExceptT, MaybeT, ContT, RWST, AccumT and SelectT, each with operations and functions to lift operations from other transformers, plus functors like Compose, Product, Sum and Identity. Used on its own, operations are lifted through a transformer stack by hand; with the mtl or monads-tf class packages, they're lifted automatically. It's one of the most depended-on packages on Hackage, written by Andy Gill and Ross Paterson and maintained by Ross Paterson, Steven Shuck and Benjamin McRae.

## Links

- GitHub: https://github.com/haskell/transformers
- Docs: https://hackage.haskell.org/package/transformers

## Problems it solves

- add state, a reader environment and error handling to Haskell code without passing them around by hand
- stack a StateT over IO in my Haskell program
- short-circuit a chain of Haskell IO actions on the first error with ExceptT
- combine several monadic effects in a portable Haskell library without extra dependencies

## Features

- the MonadTrans class for lifting through transformer stacks
- ReaderT, WriterT, StateT, ExceptT, MaybeT, ContT, RWST, AccumT, SelectT and IdentityT
- lazy, strict and CPS variants of State, Writer and RWS
- functor combinators: Compose, Product, Sum, Reverse, Constant, Backwards and Lift
- portable Haskell with no dependencies beyond base
- works with mtl or monads-tf for automatic lifting

## Trust

Overall: 0.33 out of 1.
Signals: maintenance 0.69, adoption 0.16, momentum 0.05, community 0.56, backing 0.00, extensibility 0.00.

- last commit 22 days ago
- 13 commits in the last 90 days
- 5 GitHub stars
- 24 contributors

## Alternatives

- [mtl](https://talira.ai/catalog/mtl-vzqkw2d6.md): The Monad Transformer Library

## Sources

[^1]: https://hackage.haskell.org/package/transformers (checked 24 Nov 2026)
[^2]: https://github.com/haskell/transformers/blob/main/LICENSE (checked 24 Nov 2026)
