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