remove docuumentation for -#include option
authorSimon Marlow <marlowsd@gmail.com>
Sat, 1 Aug 2009 22:21:18 +0000 (22:21 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Sat, 1 Aug 2009 22:21:18 +0000 (22:21 +0000)
docs/users_guide/flags.xml
docs/users_guide/phases.xml

index 65c7f8a..685dd7a 100644 (file)
     </sect2>
 
     <sect2>
-      <title>C compiler options</title>
-
-      <para><xref linkend="options-C-compiler"/></para>
-      <informaltable>
-       <tgroup cols="4" align="left" colsep="1" rowsep="1">
-         <thead>
-           <row>
-             <entry>Flag</entry>
-             <entry>Description</entry>
-             <entry>Static/Dynamic</entry>
-             <entry>Reverse</entry>
-           </row>
-         </thead>
-         <tbody>
-           <row>
-             <entry><option>-#include</option> <replaceable>file</replaceable></entry>
-             <entry>Include <replaceable>file</replaceable> when
-             compiling the <filename>.hc</filename> file</entry>
-             <entry>dynamic</entry>
-             <entry>-</entry>
-           </row>
-         </tbody>
-       </tgroup>
-      </informaltable>
-    </sect2>
-
-    <sect2>
       <title>Code generation options</title>
 
       <para><xref linkend="options-codegen"/></para>
index ec14364..1249a15 100644 (file)
@@ -543,31 +543,6 @@ $ cat foo.hspp</screen>
     </variablelist>
   </sect2>
 
-  <sect2 id="options-C-compiler">
-    <title>Options affecting the C compiler (if applicable)</title>
-
-    <indexterm><primary>include-file options</primary></indexterm>
-    <indexterm><primary>C compiler options</primary></indexterm>
-    <indexterm><primary>GCC options</primary></indexterm>
-
-    <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.  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>
-
-    <indexterm><primary><option>-#include</option></primary>
-    </indexterm>
-
-  </sect2>
-
   <sect2 id="options-codegen">
     <title>Options affecting code generation</title>