HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulemurmur-hash-0.1.0.11Haskell2010

Data.Digest.Murmur64

Type class and primitives for constructing 64 bit hashes using the MurmurHash2 algorithm. See http://murmurhash.googlepages.com for details on MurmurHash2.

  • 1 type
  • 1 class
  • 6 values
newtypenewtype Hash64
#

A 64 bit hash.

Instances4Bounded, Eq, Ord, Show
  • Bounded Hash64Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur64
  • Eq Hash64Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur64
  • Ord Hash64Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur64
  • Show Hash64Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur64
classclass Hashable64 a where
#

Methods

Instances14Hashable64, …
valuehash64WithSeed :: Hashable64 a => Word64 -> a -> Hash64
#

Create a hash using a custom seed.

The seed should be non-zero, but other than that can be an arbitrary number. Different seeds will give different hashes, and thus (most likely) different hash collisions.