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