{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} module HROOT.Class.TText.RawType where -- import Foreign.Ptr import Foreign.ForeignPtr -- import Foreign.Marshal.Array import HROOT.TypeCast data RawTText newtype TText = TText (ForeignPtr RawTText) deriving (Eq, Ord, Show) instance FPtr TText where type Raw TText = RawTText get_fptr (TText fptr) = fptr cast_fptr_to_obj = TText