A pointer with the C const qualifier. For instance, an argument of type
ConstPtr CInt would be marshalled as const int*.
While const-ness generally does not matter for ccall imports (since
const and non-const pointers typically have equivalent calling
conventions), it does matter for capi imports. See GHC #22043.
Constructors
ConstPtrunConstPtr :: Ptr a
Instances5Eq, Data, Ord, Show, Storable
Eq (ConstPtr a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.ConstPtrData a => Data (ConstPtr a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Data.DataOrd (ConstPtr a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.ConstPtrShow (ConstPtr a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.C.ConstPtrStorable (ConstPtr a)Defined in ghc-internal-9.1003.0 · GHC.Internal.Foreign.Storable