| License | MIT |
|---|---|
| Maintainer | mmzk1526@outlook.com |
| Portability | GHC |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.TypeID.V4.Unsafe
Description
Unsafe TypeIDV4 functions.
Synopsis
- unsafeGenTypeID :: MonadIO m => Text -> m TypeIDV4
- unsafeGenTypeID' :: MonadIO m => Text -> m TypeIDV4
- unsafeParseString :: String -> TypeIDV4
- unsafeParseText :: Text -> TypeIDV4
- unsafeParseByteString :: ByteString -> TypeIDV4
- unsafeString2ID :: IDConv a => String -> a
- unsafeText2ID :: IDConv a => Text -> a
- unsafeByteString2ID :: IDConv a => ByteString -> a
Unsafe TypeIDV4 generation
unsafeGenTypeID :: MonadIO m => Text -> m TypeIDV4 Source #
Generate a new TypeIDV4 from a prefix, but without checking if the prefix
is valid.
Unsafe decoding (TypeIDV4-specific)
unsafeParseString :: String -> TypeIDV4 Source #
unsafeParseText :: Text -> TypeIDV4 Source #
unsafeParseByteString :: ByteString -> TypeIDV4 Source #
Parse a TypeIDV4 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.