packages feed

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

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

data RawTH1C

newtype TH1C = TH1C (Ptr RawTH1C)
             deriving (Eq, Ord, Show)

instance FPtr TH1C where
        type Raw TH1C = RawTH1C
        get_fptr (TH1C ptr) = ptr
        cast_fptr_to_obj = TH1C