module Data.KindID.V1.Unsafe
(
unsafeParseString
, unsafeParseText
, unsafeParseByteString
, unsafeString2ID
, unsafeText2ID
, unsafeByteString2ID
, unsafeFromTypeID
) where
import Data.ByteString.Lazy (ByteString)
import Data.KindID.Class
import qualified Data.KindID.Internal as KID
import Data.KindID.V1 (KindIDV1)
import Data.TypeID.V1 (TypeIDV1)
import Data.Text (Text)
import Data.TypeID.Class
unsafeParseString :: (ToPrefix prefix, ValidPrefix (PrefixSymbol prefix))
=> String -> KindIDV1 prefix
unsafeParseString :: forall {k} (prefix :: k).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
String -> KindIDV1 prefix
unsafeParseString = String -> KindID' 'V1 prefix
forall {k} (prefix :: k) (version :: UUIDVersion).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
String -> KindID' version prefix
KID.unsafeParseString
{-# INLINE unsafeParseString #-}
unsafeParseText :: (ToPrefix prefix, ValidPrefix (PrefixSymbol prefix))
=> Text -> KindIDV1 prefix
unsafeParseText :: forall {k} (prefix :: k).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
Text -> KindIDV1 prefix
unsafeParseText = Text -> KindID' 'V1 prefix
forall {k} (prefix :: k) (version :: UUIDVersion).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
Text -> KindID' version prefix
KID.unsafeParseText
{-# INLINE unsafeParseText #-}
unsafeParseByteString :: (ToPrefix prefix, ValidPrefix (PrefixSymbol prefix))
=> ByteString -> KindIDV1 prefix
unsafeParseByteString :: forall {k} (prefix :: k).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
ByteString -> KindIDV1 prefix
unsafeParseByteString = ByteString -> KindID' 'V1 prefix
forall {k} (prefix :: k) (version :: UUIDVersion).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
ByteString -> KindID' version prefix
KID.unsafeParseByteString
{-# INLINE unsafeParseByteString #-}
unsafeFromTypeID :: (ToPrefix prefix, ValidPrefix (PrefixSymbol prefix))
=> TypeIDV1 -> KindIDV1 prefix
unsafeFromTypeID :: forall {k} (prefix :: k).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
TypeIDV1 -> KindIDV1 prefix
unsafeFromTypeID = TypeIDV1 -> KindID' 'V1 prefix
forall {k} (prefix :: k) (version :: UUIDVersion).
(ToPrefix prefix, ValidPrefix (PrefixSymbol prefix)) =>
TypeID' version -> KindID' version prefix
KID.unsafeFromTypeID
{-# INLINE unsafeFromTypeID #-}