X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fphases.xml;h=cd687a7f90df69c1387ec639cf017bed50c50853;hb=153b9cb9b11e05c4edb1b6bc0a7b972660e41f70;hp=c214c114305899d8082afc1effd8c22a1f0d98ef;hpb=ca440e06a6cb5661f10ff879c676ba22a56c4ca7;p=ghc-hetmet.git
diff --git a/ghc/docs/users_guide/phases.xml b/ghc/docs/users_guide/phases.xml
index c214c11..cd687a7 100644
--- a/ghc/docs/users_guide/phases.xml
+++ b/ghc/docs/users_guide/phases.xml
@@ -276,10 +276,8 @@
symbols are defined by your local GHC installation, the following
trick is useful:
-
- $ ghc -E -optP-dM -cpp foo.hs
- $ cat foo.hspp
-
+$ ghc -E -optP-dM -cpp foo.hs
+$ cat foo.hspp(you need a file foo.hs, but it isn't
actually used).
@@ -389,7 +387,7 @@
- os_TARGET_OS=1
+ os_OS=1This define allows conditional compilation based on
@@ -402,7 +400,7 @@
- arch_TARGET_ARCH=1
+ arch_ARCH=1This define allows conditional compilation based on
@@ -424,11 +422,9 @@
gaps vs -cpp. In other words, strings
such as the following:
-rogramlisting>
-rmod = "\
-p \
-"
-programlisting>
+strmod = "\
+\ p \
+\ "don't work with ;
/usr/bin/cpp elides the backslash-newline
@@ -508,9 +504,7 @@ programlisting>
way to do this, but you can use this hack from the
command-line:
-creen>
-ghc -c '-#include <X/Xlib.h>' Xstuff.lhs
-screen>
+% ghc -c '-#include <X/Xlib.h>' Xstuff.lhs