packages feed

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

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

data RawOstream

newtype Ostream = Ostream (Ptr RawOstream)
                    deriving (Eq, Ord, Show)

instance () => FPtr (Ostream) where
        type Raw Ostream = RawOstream
        get_fptr (Ostream ptr) = ptr
        cast_fptr_to_obj = Ostream