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

RFC 4122 Version 1 UUID state machine.

The generated UUID is based on the hardware MAC address and the system clock.

If we cannot lookup the MAC address we seed the generator with a pseudo-random number.

  • 1 value
  • Packageuuid-1.3.16.1
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceV1.hs
valuenextUUID :: IO (Maybe UUID)
#

Returns a new UUID derived from the local hardware MAC address and the current system time. Is generated according to the Version 1 UUID specified in RFC 4122.

Returns Nothing if you request UUIDs too quickly.