# hashable

> A Haskell class for types that can be hashed

Source: https://talira.ai/catalog/hashable-hwp3n560
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / hashing](https://talira.ai/categories/libraries/hashing), [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: [Oleg Grenrus](https://talira.ai/orgs/oleg-grenrus.md)

hashable is the Haskell package that defines the Hashable class, for types that can be converted to a hash value, for the benefit of hashing-based data structures such as [unordered-containers](https://talira.ai/catalog/unordered-containers-wckjn3zn.md)' HashMap and HashSet. It provides instances for the basic types and a way to combine hash values. It is meant only for in-memory data structures: its hashes have no fixed standard and can change between versions. BSD-3-Clause licensed, maintained by Oleg Grenrus.

## Links

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

## Problems it solves

- use my own Haskell data type as a key in a HashMap
- derive or write a hash function for a Haskell record
- hash values for an in-memory hash table in Haskell

## Features

- Hashable type class for Haskell
- instances for base types
- combine hash values for your own types
- used by HashMap and HashSet

## Trust

Overall: 0.29 out of 1.
Signals: maintenance 0.27, adoption 0.41, momentum 0.06, community 0.65, backing 0.30, extensibility 0.00.

- 106 GitHub stars
- 40 contributors
- backed by Oleg Grenrus

Warnings:

- last commit 11 months ago

## Related

- Works with [unordered-containers](https://talira.ai/catalog/unordered-containers-wckjn3zn.md)

## Alternatives

- [cryptohash-sha256](https://talira.ai/catalog/cryptohash-sha256-t8mtg448.md): Fast, pure and practical SHA-256 for Haskell

## Sources

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