packages feed

HROOT-hist-0.9: src/HROOT/Hist/TH2C/RawType.hs

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

data RawTH2C

newtype TH2C = TH2C (Ptr RawTH2C)
             deriving (Eq, Ord, Show)

instance FPtr TH2C where
        type Raw TH2C = RawTH2C
        get_fptr (TH2C ptr) = ptr
        cast_fptr_to_obj = TH2C