# unordered-containers

> Efficient hashing-based container types for Haskell

Source: https://talira.ai/catalog/unordered-containers-wckjn3zn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / data structures / immutable](https://talira.ai/categories/libraries/data-structures/immutable), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [unordered-containers maintainers](https://talira.ai/orgs/unordered-containers-team.md)

unordered-containers is a Haskell library of hashing-based container types, HashMap and HashSet, optimised for large amounts of data and high speed. Each operation documents its cost as worst-case or amortised, and the costs hold even when structures are shared. Originally written by Johan Tibell, it is one of the most depended-on packages on Hackage and is maintained by Simon Jakobi and David Feuer under the BSD-3-Clause licence.

## Links

- GitHub: https://github.com/haskell-unordered-containers/unordered-containers

## Problems it solves

- a fast hash map for Haskell keys that only need Hashable, not Ord
- speed up lookups in a big Haskell Data.Map with string keys
- store a large set of unique values in Haskell with fast membership checks

## Features

- HashMap and HashSet
- documented worst-case or amortised cost per operation
- costs hold for shared persistent structures
- tested on GHC 8.10 to 9.14

## Limitations

- Provides no defence against hash collision attacks such as HashDoS: its maintainers advise Data.Map or Data.Set from containers for keys derived from untrusted input.[^1]

## Trust

Overall: 0.32 out of 1.
Signals: maintenance 0.27, adoption 0.47, momentum 0.10, community 0.74, backing 0.30, extensibility 0.00.

- latest release v0.2.21 11 months ago
- 224 GitHub stars
- 70 contributors
- backed by unordered-containers maintainers

Warnings:

- last commit 4 months ago

## Alternatives

- [containers](https://talira.ai/catalog/containers-w4t8eka6.md): Assorted concrete container types for Haskell

## Sources

[^1]: https://github.com/haskell-unordered-containers/unordered-containers/blob/master/unordered-containers.cabal (checked 26 Nov 2026)
[^2]: https://github.com/haskell-unordered-containers/unordered-containers/blob/master/LICENSE (checked 26 Nov 2026)
