# relude

> Safe, fast alternative Prelude for Haskell

Source: https://talira.ai/catalog/relude-4ewpthsk
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: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Kowainik](https://talira.ai/orgs/kowainik.md)

relude is an alternative standard library (Prelude) for Haskell. It replaces partial functions such as `head` and `fromJust` with total ones (taking `NonEmpty` lists or returning `Maybe`), prefers `Text` over `String`, avoids space-leaking functions, and changes behaviour only for a small set of functions, so most names mean what they mean in `base`. It depends almost only on GHC's boot libraries, follows the Package Versioning Policy, and ships its own HLint rules to help migrate. You switch to it with cabal mixins or NoImplicitPrelude. Kowainik maintains it.

## Links

- Website: https://kowainik.github.io/projects/relude
- GitHub: https://github.com/kowainik/relude

## Problems it solves

- replace Haskell's default Prelude with a safer one
- avoid partial functions like head in my Haskell code
- a Haskell standard library that uses Text instead of String

## Features

- total versions of partial functions such as head, tail and read
- Text-first API and space-leak-free functions such as sum and product
- depends almost only on GHC boot libraries
- its own HLint rules for migrating
- adopt it per project with cabal mixins or NoImplicitPrelude

## Limitations

- Like any alternative prelude, it means learning a different standard library and adding a dependency.[^1]

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.47, adoption 0.57, momentum 0.28, community 0.75, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 3 commits in the last 90 days
- latest release v1.2.0.0 3.8 years ago
- 735 GitHub stars
- 76 contributors
- accepts sponsorship (Github, Ko Fi)
- backed by Kowainik

## Alternatives

- [rio (Haskell)](https://talira.ai/catalog/rio-haskell-gqtfvyvv.md): A standard library and Prelude replacement for production Haskell
- [MissingH](https://talira.ai/catalog/missingh-bazrn867.md): A large utility library for Haskell
- [extra](https://talira.ai/catalog/extra-ef2mgnsq.md): Extra functions for the standard Haskell libraries
- [base-compat](https://talira.ai/catalog/base-compat-5427rcry.md): Newer Haskell base functions on older compilers, without CPP

## Sources

[^1]: https://github.com/kowainik/relude/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/kowainik/relude/blob/main/LICENSE (checked 28 Nov 2026)
