> > But how do I
> > #include a C header into a Haskell source file?  (Doubtless there
> > is a ghc extension to help.) 
> 
> The -#include flag is for including headers in the generated C code, it just
> injects the appropriate #include directive somewhere near the top of the
> file.

Sorry to be so dense, but my question was about the syntax of the
-#include flag - where does it go (commandline? in the source? in a
pragma?), and how is the filename specified?
   -#include="filename"
   -#include "filename"
   -#include <filename>
etc.  The on-line GHC documentation (section 6.5.1) is far from clear
on how to actually use it.

Regards,
    Malcolm


Reply via email to