HROOT-math-0.8: src/HROOT/Math/TRandom/RawType.hs
{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses,
FlexibleInstances, TypeSynonymInstances,
EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-}
module HROOT.Math.TRandom.RawType where
import Foreign.ForeignPtr
import FFICXX.Runtime.Cast
data RawTRandom
newtype TRandom = TRandom (ForeignPtr RawTRandom) deriving (Eq, Ord, Show)
instance FPtr TRandom where
type Raw TRandom = RawTRandom
get_fptr (TRandom fptr) = fptr
cast_fptr_to_obj = TRandom