[Add some runghc docs to the users guide Ian Lynagh **20070819000258] { addfile ./docs/users_guide/runghc.xml hunk ./docs/users_guide/runghc.xml 1 + + + Using runghc + runghc + + 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] + + The only runghc flag currently is + -f /path/to/ghc, + which tells runghc which GHC to use to run the program. 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 + 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. + + + + + + + hunk ./docs/users_guide/ug-book.xml.in 14 +&runghc; hunk ./docs/users_guide/ug-ent.xml 2 + }