packages feed

stdcxx-0.7.0.0: src/STD/CppString/RawType.hs

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

data RawCppString

newtype CppString = CppString (Ptr RawCppString)
                      deriving (Eq, Ord, Show)

instance () => FPtr (CppString) where
        type Raw CppString = RawCppString
        get_fptr (CppString ptr) = ptr
        cast_fptr_to_obj = CppString