module Data.TypeID.V4.Unsafe
(
unsafeGenTypeID
, unsafeGenTypeID'
, unsafeParseString
, unsafeParseText
, unsafeParseByteString
, unsafeString2ID
, unsafeText2ID
, unsafeByteString2ID
) where
import Control.Monad.IO.Class
import Data.ByteString.Lazy (ByteString)
import Data.Text (Text)
import Data.TypeID.Class
import qualified Data.TypeID.Internal as TID
import Data.TypeID.V4 (TypeIDV4)
unsafeGenTypeID :: MonadIO m => Text -> m TypeIDV4
unsafeGenTypeID :: forall (m :: * -> *). MonadIO m => Text -> m TypeIDV4
unsafeGenTypeID = Text -> m TypeIDV4
forall (m :: * -> *). MonadIO m => Text -> m TypeIDV4
TID.unsafeGenTypeIDV4
{-# INLINE unsafeGenTypeID #-}
unsafeGenTypeID' :: MonadIO m => Text -> m TypeIDV4
unsafeGenTypeID' :: forall (m :: * -> *). MonadIO m => Text -> m TypeIDV4
unsafeGenTypeID' = Text -> m TypeIDV4
forall (m :: * -> *). MonadIO m => Text -> m TypeIDV4
TID.unsafeGenTypeIDV4'
{-# INLINE unsafeGenTypeID' #-}
unsafeParseString :: String -> TypeIDV4
unsafeParseString :: String -> TypeIDV4
unsafeParseString = String -> TypeIDV4
forall (version :: UUIDVersion). String -> TypeID' version
TID.unsafeParseString
{-# INLINE unsafeParseString #-}
unsafeParseText :: Text -> TypeIDV4
unsafeParseText :: Text -> TypeIDV4
unsafeParseText = Text -> TypeIDV4
forall (version :: UUIDVersion). Text -> TypeID' version
TID.unsafeParseText
{-# INLINE unsafeParseText #-}
unsafeParseByteString :: ByteString -> TypeIDV4
unsafeParseByteString :: ByteString -> TypeIDV4
unsafeParseByteString = ByteString -> TypeIDV4
forall (version :: UUIDVersion). ByteString -> TypeID' version
TID.unsafeParseByteString
{-# INLINE unsafeParseByteString #-}