# extra

> Extra functions for the standard Haskell libraries

Source: https://talira.ai/catalog/extra-ef2mgnsq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Neil Mitchell](https://talira.ai/orgs/neil-mitchell.md)

extra is a library of small utility functions that fill gaps in Haskell's standard libraries, by Neil Mitchell. Modules such as Data.List.Extra and Control.Monad.Extra re-export the standard module and add functions to it (concatMapM, fst3, retry and many more), so an import can simply be swapped. Where newer GHC versions added a function, extra re-exports it there and defines an equivalent for older compilers, back to GHC 7.10. The functions follow the style of the Prelude and base: mostly simple, obvious implementations rather than new types or concepts.

## Links

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

## Problems it solves

- stop copying the same small utility functions into every Haskell project
- use newer base library functions on an older GHC
- get monadic versions of common list functions in Haskell

## Features

- Data.List.Extra, Control.Monad.Extra and other modules that extend and re-export base modules
- Monadic helpers such as concatMapM and whenJust
- retry for IO actions
- Backports of newer base functions to older GHC versions (back to 7.10)
- One Extra module documents every function

## Trust

Overall: 0.21 out of 1.
Signals: maintenance 0.06, adoption 0.40, momentum 0.07, community 0.59, backing 0.30, extensibility 0.00.

- latest release v1.8.1 12 months ago
- 97 GitHub stars
- 29 contributors
- backed by Neil Mitchell

Warnings:

- last commit 12 months ago

## Alternatives

- [base-compat](https://talira.ai/catalog/base-compat-5427rcry.md): Newer Haskell base functions on older compilers, without CPP
- [base-orphans](https://talira.ai/catalog/base-orphans-yc2kwdmk.md): Newer base instances for older GHC versions
- [transformers-compat](https://talira.ai/catalog/transformers-compat-dn7hb984.md): Compatibility shim for Haskell's transformers library
- [MissingH](https://talira.ai/catalog/missingh-bazrn867.md): A large utility library for Haskell
- [relude](https://talira.ai/catalog/relude-4ewpthsk.md): Safe, fast alternative Prelude for Haskell
- [rio (Haskell)](https://talira.ai/catalog/rio-haskell-gqtfvyvv.md): A standard library and Prelude replacement for production Haskell

## Sources

[^1]: https://github.com/ndmitchell/extra/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/ndmitchell/extra/blob/master/extra.cabal (checked 28 Nov 2026)
