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

Data.TypeID.Error

Contents

Description

TypeID Error type.

Synopsis

Data type

data TypeIDError Source #

Errors from parsing TypeIDs.

Should NOT rely on "grepping" the output produced by show since the exact output format may differ across library versions.

Constructors

TypeIDErrorPrefixTooLong Text

The prefix is longer than 63 characters.

TypeIDExtraSeparator

The ID contains an extra underscore separator.

TypeIDStartWithUnderscore Text

The ID starts with an underscore separator.

TypeIDEndWithUnderscore Text

The ID ends with an underscore separator.

TypeIDErrorPrefixInvalidChar Text Char

The prefix contains an invalid character, namely not lowercase Latin.

TypeIDErrorPrefixMismatch Text Text

From a V7KindID conversion. The prefix doesn't match with the expected.

TypeIDErrorUUIDError

The UUID suffix has errors.