ConstPtr is in a wrong module
The Foreign.C.Types
module documentation has a bolded note
This module contains platform specific information about types. As such, the types presented on this page reflect the platform on which the documentation was generated and may not coincide with the types on your platform.
That is not true for ConstPtr
.
EDIT: either there should be a note that ConstPtr
is always represented as Ptr a
, or it should live in e.g. Foreign.Ptr
.
FWIW, is there doesn't seem to be a CLC proposal for addition of ConstPtr
. Ping @Bodigrim @nineonine