
13 Nov
2003
13 Nov
'03
1:38 p.m.
* Haskell's FFI has no way to state the constness of arguments. This is a pity and even a 80% solution would be better than nothing.
The Right Thing is to generate C wrapper functions which use const as appropriate. GreenCard can do this and I believe HDirect can too. However, the 80% solution is a lot less work. Compiling the C code generated by your Haskell compiler with -Dconst is a good way to suppress these warnings. Of course, there is a risk that some of the warnings are about a real problem... -- Alastair Reid www.haskell-consulting.com