summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-09-26 12:44:25 +0000
committerIan Lynagh <igloo@earth.li>2008-09-26 12:44:25 +0000
commit85d3c9b8acd75c9bba47246580dedee6e90e3527 (patch)
tree79faa559eab482b7333b6b0572442deeb42a3348 /docs
parent53631ec612629ad27826243d281e567c690b2051 (diff)
downloadhaskell-85d3c9b8acd75c9bba47246580dedee6e90e3527.tar.gz
Improve runghc docs; fixes trac #2477
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/runghc.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/users_guide/runghc.xml b/docs/users_guide/runghc.xml
index 352a4965e0..4a6640c708 100644
--- a/docs/users_guide/runghc.xml
+++ b/docs/users_guide/runghc.xml
@@ -11,7 +11,7 @@
<para>The runghc commandline looks like:</para>
<screen>
-runghc [runghc flags] [GHC flags] module [program flags]
+runghc [runghc flags] [GHC flags] module [program args]
</screen>
<para>The only runghc flag currently is
<literal>-f /path/to/ghc</literal>,
@@ -27,7 +27,11 @@ runghc [runghc flags] [GHC flags] module [program flags]
<literal>--</literal> flag if it doesn't get it right. For example,
<literal>runghc -- -fglasgow-exts Foo</literal> means runghc
won't try to use <literal>glasgow-exts</literal> as the path to GHC,
- but instead will pass the flag to GHC.
+ but instead will pass the flag to GHC. If a GHC flag doesn't start
+ with a dash then you need to prefix it with
+ <literal>--ghc-arg=</literal> or runghc will think that it is the
+ program to run, e.g.
+ <literal>runghc -package-conf --ghc-arg=foo.conf Main.hs</literal>.
</para>
</sect1>