HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleuuid-1.3.16.1Haskell2010

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.1
  • 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).