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.Murmur32

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

  • 1 type
  • 1 class
  • 5 values
newtypenewtype Hash32
#

A 32 bit hash.

Instances4Bounded, Eq, Ord, Show
  • Bounded Hash32Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur32
  • Eq Hash32Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur32
  • Ord Hash32Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur32
  • Show Hash32Defined in murmur-hash-0.1.0.11 · Data.Digest.Murmur32
classclass Hashable32 a where
#

Methods

Instances14Hashable32, …
valuehash32WithSeed :: Hashable32 a => Word32 -> a -> Hash32
#

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.