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 :: Word64 -> ByteString -> Word64 Source # | |
Hashable ByteString Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Word64 -> ByteString -> Word64 Source # | |
Hashable () Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Word64 -> () -> Word64 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 :: Word64 -> [a] -> Word64 Source # | |
(Hashable a, Hashable b) => Hashable (a, b) Source # | |
Defined in Data.BloomFilter.Hash Methods hashSalt64 :: Word64 -> (a, b) -> Word64 Source # |
Incremental hashing
class Incremental a where Source #
The class of types that can be incrementally hashed.