X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fseparate_compilation.xml;h=fc44fe66b699ba1a08e8a392005b20213350143a;hb=dde80d73a5affea82e6cd54f51120866e3175de5;hp=97fe772b2cce64ac1a327de5dfd560c6da593bce;hpb=f2e730f34ab0134391c88fe58f9f9e94b736da91;p=ghc-hetmet.git
diff --git a/ghc/docs/users_guide/separate_compilation.xml b/ghc/docs/users_guide/separate_compilation.xml
index 97fe772..fc44fe6 100644
--- a/ghc/docs/users_guide/separate_compilation.xml
+++ b/ghc/docs/users_guide/separate_compilation.xml
@@ -253,6 +253,23 @@
Main.hs, and put the resulting
executable in foo.exe (not
foo).
+
+ If you use ghc --make and you don't
+ use the , the name GHC will choose
+ for the executable will be based on the name of the file
+ containing the module Main.
+ Note that with GHC the Main module doesn't
+ have to be put in file Main.hs.
+ Thus both
+
+ ghc --make Prog
+
+ and
+
+ ghc --make Prog.hs
+
+ will produce Prog (or
+ Prog.exe if you are on Windows).
@@ -326,6 +343,23 @@ $ ghc -c parse/Foo.hs parse/Bar.hs gurgle/Bumble.hs -odir `arch`
+ dir
+
+
+
+ Redirects all generated FFI stub files into
+ dir. Stub files are generated when the
+ Haskell source contains a foreign export or
+ foreign import "&wrapper" declaration (see ). The
+ option behaves in exactly the same way as
+ and with respect to hierarchical
+ modules.
+
+
+
+
+ suffix