This is a haskell library for principled, cross-platform & extensible hashing of data and types, which includes an implementation of the FNV-1a and SipHash algorithms. It is a rewrite of the hashable library by Milan Straka and Johan Tibell, having the following goals:
Extensibility; it should be easy to implement a new hashing algorithm on any Hashable type, for instance if one needed more hash bits
Honest hashing of values, and principled hashing of algebraic data types (see e.g. hashable issues 30)
Cross-platform consistent hash values, with a versioning guarantee. Where possible we ensure morally identical data hashes to indentical values regardless of processor word size and endianness.
It is available on hackage, and can be installed with:
cabal install hashabler
Versioning: Except for instances where we specifically note that we make no
promise of consistency, changes to hash values (and consequently changes to
StableHashable values, where applicable) entail a major version number bump.