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

Data.TypeID.V5.Unsafe

Description

Unsafe TypeIDV5 functions.

Synopsis

Unsafe TypeIDV5 generation

unsafeGenTypeID :: Text -> UUID -> [Word8] -> TypeIDV5 Source #

Generate a new TypeIDV5 from a prefix, but without checking if the prefix is valid.

Unsafe decoding (TypeIDV5-specific)

unsafeParseString :: String -> TypeIDV5 Source #

Parse a TypeIDV5 from its String representation, but crashes when parsing fails.

unsafeParseText :: Text -> TypeIDV5 Source #

Parse a TypeIDV5 from its string representation as a strict Text, but crashes when parsing fails.

unsafeParseByteString :: ByteString -> TypeIDV5 Source #

Parse a TypeIDV5 from its string representation as a lazy ByteString, but crashes when parsing fails.

Unsafe decoding (class methods)

unsafeString2ID :: IDConv a => String -> a Source #

Parse the identifier from its String representation, but crashes when the parsing fails.

unsafeText2ID :: IDConv a => Text -> a Source #

Parse the identifier from its string representation as a strict Text, but crashes when the parsing fails.

unsafeByteString2ID :: IDConv a => ByteString -> a Source #

Parse the identifier from its string representation as a lazy ByteString, but crashes when the parsing fails.