HROOT-hist-0.9: src/HROOT/Hist/TFitResult/Cast.hs
{-# LANGUAGE FlexibleInstances, FlexibleContexts, TypeFamilies,
MultiParamTypeClasses, OverlappingInstances, IncoherentInstances
#-}
module HROOT.Hist.TFitResult.Cast where
import Foreign.Ptr
import FFICXX.Runtime.Cast
import System.IO.Unsafe
import HROOT.Hist.TFitResult.RawType
import HROOT.Hist.TFitResult.Interface
instance (ITFitResult a, FPtr a) => Castable a (Ptr RawTFitResult)
where
cast x f = f (castPtr (get_fptr x))
uncast x f = f (cast_fptr_to_obj (castPtr x))
instance Castable TFitResult (Ptr RawTFitResult) where
cast x f = f (castPtr (get_fptr x))
uncast x f = f (cast_fptr_to_obj (castPtr x))