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