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