{-# LINE 1 "Data/GI/Base/GQuark.hsc" #-}
module Data.GI.Base.GQuark
( GQuark(..)
, gQuarkFromString
) where
import Data.Text (Text)
import Data.Word
import Foreign.C (CString)
import Data.GI.Base.BasicConversions (withTextCString)
newtype GQuark a = GQuark (Word32)
{-# LINE 17 "Data/GI/Base/GQuark.hsc" #-}
foreign import ccall g_quark_from_string :: CString -> IO (GQuark a)
gQuarkFromString :: Text -> IO (GQuark a)
gQuarkFromString :: Text -> IO (GQuark a)
gQuarkFromString text :: Text
text = Text -> (CString -> IO (GQuark a)) -> IO (GQuark a)
forall a. Text -> (CString -> IO a) -> IO a
withTextCString Text
text CString -> IO (GQuark a)
forall a. CString -> IO (GQuark a)
g_quark_from_string