{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} module HROOT.Class.TBox.RawType where -- import Foreign.Ptr import Foreign.ForeignPtr -- import Foreign.Marshal.Array import HROOT.TypeCast data RawTBox newtype TBox = TBox (ForeignPtr RawTBox) deriving (Eq, Ord, Show) instance FPtr TBox where type Raw TBox = RawTBox get_fptr (TBox fptr) = fptr cast_fptr_to_obj = TBox