HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleuuid-1.3.16Haskell2010

Data.UUID.V5

This module implements Version 5 UUIDs as specified in RFC 4122.

These UUIDs identify an object within a namespace, and are deterministic.

The namespace is identified by a UUID. Several sample namespaces are enclosed.

  • 5 values
  • Packageuuid-1.3.16
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceV5.hs
valuegenerateNamed
  1. :: UUID

    Namespace

  2. -> [Word8]

    Object

  3. -> UUID
#

Generate a UUID within the specified namespace out of the given object.

Uses a SHA1 hash. The UUID is built from first 128 bits of the hash of the namespace UUID and the name (as a series of Word8).