Re: WinXP, ghc-6.0.1, HOpenGL-1.05 .. problems
Alastair Reid <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.hopengl |
|---|---|
| Organization | Reid Consulting (UK) Ltd |
| Message-ID | <[email protected]> |
> * 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