{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} -- module HROOT.Class.Interface where module HROOT.Class.TCutG.Interface where import Data.Word import Foreign.ForeignPtr import HROOT.TypeCast import HROOT.Class.TCutG.RawType import HROOT.Class.TGraph.Interface class (ITGraph a) => ITCutG a where instance Existable TCutG where data Exist TCutG = forall a. (FPtr a, ITCutG a) => ETCutG a upcastTCutG :: (FPtr a, ITCutG a) => a -> TCutG upcastTCutG h = let fh = get_fptr h fh2 :: ForeignPtr RawTCutG = castForeignPtr fh in cast_fptr_to_obj fh2