packages feed

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

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

data RawTH2

newtype TH2 = TH2 (Ptr RawTH2)
            deriving (Eq, Ord, Show)

instance FPtr TH2 where
        type Raw TH2 = RawTH2
        get_fptr (TH2 ptr) = ptr
        cast_fptr_to_obj = TH2