packages feed

HROOT-graf-0.10.0.1: src/HROOT/Graf/TBox/RawType.hs

{-# LANGUAGE ForeignFunctionInterface, TypeFamilies,
  MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances,
  EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-}
module HROOT.Graf.TBox.RawType where
import Foreign.Ptr
import FFICXX.Runtime.Cast

data RawTBox

newtype TBox = TBox (Ptr RawTBox)
                 deriving (Eq, Ord, Show)

instance () => FPtr (TBox) where
        type Raw TBox = RawTBox
        get_fptr (TBox ptr) = ptr
        cast_fptr_to_obj = TBox