[project @ 2004-08-18 16:42:51 by panne]
[ghc-hetmet.git] / ghc / docs / users_guide / phases.xml
index c214c11..62d7b9e 100644 (file)
     symbols are defined by your local GHC installation, the following
     trick is useful:</para>
 
-<screen>
-  $ ghc -E -optP-dM -cpp foo.hs
-  $ cat foo.hspp
-</screen>
+<screen>$ ghc -E -optP-dM -cpp foo.hs
+$ cat foo.hspp</screen>
 
     <para>(you need a file <filename>foo.hs</filename>, but it isn't
     actually used).</para>
       gaps vs -cpp</primary></indexterm>.  In other words, strings
       such as the following:</para>
 
-rogramlisting>
-rmod = "\
-p \
-"
-programlisting>
+<programlisting>strmod = "\
+\ p \
+\ "</programlisting>
       
       <para>don't work with <option>-cpp</option>;
       <filename>/usr/bin/cpp</filename> elides the backslash-newline
@@ -508,9 +504,7 @@ programlisting>
     way to do this, but you can use this hack from the
     command-line:</para>
 
-creen>
-ghc -c '-#include &lt;X/Xlib.h&gt;' Xstuff.lhs
-screen>
+<screen>% ghc -c '-#include &lt;X/Xlib.h&gt;' Xstuff.lhs</screen>
 
   </sect2>