Commit b220cc67 authored by simonmar's avatar simonmar
Browse files

[project @ 2005-01-28 14:41:23 by simonmar]

x-ref INCLUDE pragmas
parent da6eff29
......@@ -500,12 +500,20 @@ $ cat foo.hspp</screen>
<para>If you are compiling with lots of foreign calls, you may
need to tell the C&nbsp;compiler about some
<literal>&num;include</literal> files. There is no real pretty
way to do this, but you can use this hack from the
<literal>&num;include</literal> files. The Right Way to do this is to
add an <literal>INCLUDE</literal> pragma to the top of your source file
(<xref linkend="include-pragma" />):</para>
<programlisting>{-# INCLUDE &lt;X/Xlib.h&gt; #-}</programlisting>
<para>Sometimes this isn't convenient. In those cases there's an
equivalent command-line option:</para>
<screen>% ghc -c '-#include &lt;X/Xlib.h&gt;' Xstuff.lhs</screen>
<sect2 id="options-codegen">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment