packages feed

HROOT-hist-0.10.0.1: src/HROOT/Hist/TH3D/RawType.hs

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

data RawTH3D

newtype TH3D = TH3D (Ptr RawTH3D)
                 deriving (Eq, Ord, Show)

instance () => FPtr (TH3D) where
        type Raw TH3D = RawTH3D
        get_fptr (TH3D ptr) = ptr
        cast_fptr_to_obj = TH3D