@hackage hashable1.5.1.0
A class for types that can be converted to a hash value
Installation
Tested Compilers
Dependencies (8)
- base >=4.18.0.0 && <4.23
- bytestring >=0.11.5.3 && <0.13
- containers >=0.6.7 && <0.9
- deepseq >=1.4.8.1 && <1.6
- filepath >=1.4.200.1 && <1.6
- ghc-prim Show all…
Dependents (1286)
@hackage/greenclip, @hackage/regex-deriv, @hackage/token-search, @hackage/prometheus-effect, @hackage/data-embed, @cardano/ouroboros-network, Show all…
Package Flags
arch-native
(off by default)
Use -march=native when compiling C sources.
Portable implementation is 15-50% slower.
Consider enabling this flag if hashing performance is important.
random-initial-seed
(off by default)
Randomly initialize the initial seed on each final executable invocation This is useful for catching cases when you rely on (non-existent) stability of hashable's hash functions. This is not a security feature.
The hashable package
This package defines a class, Hashable, for types that can be
converted to a hash value. This class exists for the benefit of
hashing-based data structures. The package provides instances for
basic types and a way to combine hash values.