Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Data.BloomFilter.Hash
Description
Fast hashing of Haskell values. The hash used is XXH3 64bit.
Basic hash functionality
class Hashable a where Source #
The class of types that can be converted to a hash value.
The instances are meant to be stable, the hash values can be persisted.
Methods
Compute a 64-bit hash of a value.
Instances
Hashable ByteArray Source # | |
Defined in Data.BloomFilter.Hash | |
Hashable Word32 Source # | |
Defined in Data.BloomFilter.Hash | |
Hashable Word64 Source # | |
Defined in Data.BloomFilter.Hash | |
Hashable ByteString Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Salt -> ByteString -> Hash Source # | |
Hashable ByteString Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Salt -> ByteString -> Hash Source # | |
Hashable () Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Salt -> () -> Hash Source # | |
Hashable Char Source # | |
Defined in Data.BloomFilter.Hash | |
Hashable Int Source # | |
Defined in Data.BloomFilter.Hash | |
Hashable Word Source # | |
Defined in Data.BloomFilter.Hash | |
Hashable a => Hashable [a] Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Salt -> [a] -> Hash Source # | |
(Hashable a, Hashable b) => Hashable (a, b) Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Salt -> (a, b) -> Hash Source # |
Incremental hashing
class Incremental a where Source #
The class of types that can be incrementally hashed.