{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} module OGDF.Color.RawType where import Foreign.Ptr import FFICXX.Runtime.Cast data RawColor newtype Color = Color (Ptr RawColor) deriving (Eq, Ord, Show) instance () => FPtr (Color) where type Raw Color = RawColor get_fptr (Color ptr) = ptr cast_fptr_to_obj = Color