From 85d3c9b8acd75c9bba47246580dedee6e90e3527 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 26 Sep 2008 12:44:25 +0000 Subject: [PATCH] Improve runghc docs; fixes trac #2477 --- docs/users_guide/runghc.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/users_guide/runghc.xml b/docs/users_guide/runghc.xml index 352a496..4a6640c 100644 --- a/docs/users_guide/runghc.xml +++ b/docs/users_guide/runghc.xml @@ -11,7 +11,7 @@ The runghc commandline looks like: -runghc [runghc flags] [GHC flags] module [program flags] +runghc [runghc flags] [GHC flags] module [program args] The only runghc flag currently is -f /path/to/ghc, @@ -27,7 +27,11 @@ runghc [runghc flags] [GHC flags] module [program flags] -- flag if it doesn't get it right. For example, runghc -- -fglasgow-exts Foo means runghc won't try to use glasgow-exts 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 + --ghc-arg= or runghc will think that it is the + program to run, e.g. + runghc -package-conf --ghc-arg=foo.conf Main.hs. -- 1.7.10.4