[project @ 2001-08-22 09:47:37 by rrt]
authorrrt <unknown>
Wed, 22 Aug 2001 09:47:37 +0000 (09:47 +0000)
committerrrt <unknown>
Wed, 22 Aug 2001 09:47:37 +0000 (09:47 +0000)
Point out that -no-hs-main doesn't have any effect unless you're
building DLLs.

ghc/docs/users_guide/phases.sgml

index e78f34a..8542eaf 100644 (file)
@@ -358,7 +358,11 @@ strmod = "\
             be supplying its definition of <function>main()</function>
             at link-time, you will have to. To signal that to the
             driver script when linking, use
-            <option>-no-hs-main</option>.</para>
+            <option>-no-hs-main</option>. In fact, this only has an
+            effect when the Haskell code is compiled into a DLL; the
+            rest of the time, static linking allows the RTS's
+            <function>main()</function> to be overridden in the same
+            way as any other library routine.</para>
 
            <para>Notice that since the command-line passed to the
             linker is rather involved, you probably want to use