X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Frunghc.xml;h=ec55a4311eb18408aa6d749c369ccc10993bed2e;hb=dacc1aa41699ee6c8f4c49ef6061c95ea5e70017;hp=8355fa5320d87c2b94b0bcecee96a208c6803520;hpb=bcf84370d520d4cfe3fe55173464c5de110e5b83;p=ghc-hetmet.git diff --git a/docs/users_guide/runghc.xml b/docs/users_guide/runghc.xml index 8355fa5..ec55a43 100644 --- a/docs/users_guide/runghc.xml +++ b/docs/users_guide/runghc.xml @@ -6,28 +6,33 @@ runghc allows you to run Haskell programs without first having to compile them. - + Flags 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 + The runghc flags are -f /path/to/ghc, - which tells runghc which GHC to use to run the program. If it is + which tells runghc which GHC to use to run the program, + and --help, which prints usage information. If it is not given then runghc will search for GHC in the directories in the system search path. runghc will try to work out where the boundaries between [runghc flags] and [GHC flags], and - [GHC flags] and + [program args] and module are, but you can use a -- 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.