mmzk-typeid-0.7.0.1: A TypeID and UUIDv7 implementation for Haskell
LicenseMIT
Maintainermmzk1526@outlook.com
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.UUID.Versions

Description

Supported UUID versions for TypeID'.

Synopsis

Supported UUID versions

data UUIDVersion Source #

The supported UUID versions. These constructors are used as type-level tags for TypeID'.

Constructors

V1 
V4 
V5 
V7 

Instances

Instances details
Bounded UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

Enum UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

Generic UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

Associated Types

type Rep UUIDVersion :: Type -> Type #

Show UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

Eq UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

Ord UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

type Rep UUIDVersion Source # 
Instance details

Defined in Data.UUID.Versions

type Rep UUIDVersion = D1 ('MetaData "UUIDVersion" "Data.UUID.Versions" "mmzk-typeid-0.7.0.1-inplace" 'False) ((C1 ('MetaCons "V1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "V4" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "V5" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "V7" 'PrefixI 'False) (U1 :: Type -> Type)))

Validation

validateWithVersion :: UUID -> UUIDVersion -> Bool Source #

Validate the given UUID with the given UUIDVersion.

The variant is supposed to be 0x2.