FFI breaking with -O?

Alastair Reid alastair@reid-consulting-uk.ltd.uk
10 Sep 2002 14:50:01 +0100


> Are you including the right header files using the -#include option?

Of course, if you want portable code, you will favour the FFI-standard
mechanism

  foreign import ccall "stdio.h putchar" putCHar :: Char -> IO ()

over the GHC-specific -#include stdio.h option.

--
Alastair