scope of header files

Ross Paterson ross at
Sat Mar 15 08:56:33 EDT 2008

On Sat, Mar 15, 2008 at 12:32:29AM -0700, Jason Dusek wrote:
> Simon Marlow <simonmarhaskell at> wrote:
> > GHC...can't guarantee to generate a prototype that is exactly
> > the same as the C prototype given in the header file (e.g. it
> > doesn't know about const)...
>   Why doesn't GHC know about const?

Because the Ptr type doesn't indicate const-ness (perhaps it should).

More information about the Glasgow-haskell-users mailing list