{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} module HROOT.Core.TKey.RawType where import Foreign.ForeignPtr import FFICXX.Runtime.Cast data RawTKey newtype TKey = TKey (ForeignPtr RawTKey) deriving (Eq, Ord, Show) instance FPtr TKey where type Raw TKey = RawTKey get_fptr (TKey fptr) = fptr cast_fptr_to_obj = TKey