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