MicroHs-0.17.4.0 / lib / Foreign / C / ConstPtr.hs
module Foreign.C.ConstPtr (ConstPtr(..)) whereimport Foreign.Ptrimport Foreign.Storablenewtype ConstPtr a = ConstPtr { unConstPtr :: Ptr a } deriving (Eq, Ord) deriving newtype (Storable)-- doesn't use record syntaxinstance Show (ConstPtr a) where showsPrec d (ConstPtr p) = showParen (d > 10) $ showString "ConstPtr " . showsPrec 11 p