packages feed

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

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

data RawTView

newtype TView = TView (Ptr RawTView)
                  deriving (Eq, Ord, Show)

instance () => FPtr (TView) where
        type Raw TView = RawTView
        get_fptr (TView ptr) = ptr
        cast_fptr_to_obj = TView