diff --git a/docs/users_guide/runghc.xml b/docs/users_guide/runghc.xml new file mode 100644 index 0000000000000000000000000000000000000000..cfd5cbe3334814f330a9e5cdc9f8080cee62a0cc --- /dev/null +++ b/docs/users_guide/runghc.xml @@ -0,0 +1,42 @@ + + + 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. + + + + + + + diff --git a/docs/users_guide/ug-book.xml.in b/docs/users_guide/ug-book.xml.in index c5710f1d77e63cc89399a978099b395849ff0f5b..c44f07f58600fcd794cc6976e3a3aca24cd64a80 100644 --- a/docs/users_guide/ug-book.xml.in +++ b/docs/users_guide/ug-book.xml.in @@ -11,6 +11,7 @@ &intro; &installing; &ghci; +&runghc; &using; &prof; &sooner; diff --git a/docs/users_guide/ug-ent.xml b/docs/users_guide/ug-ent.xml index 1700cfa4bd10366de0f7cba4450d7e14a1c7c49d..d5614e8524540f70a11cb87e46b89e9d502ceb71 100644 --- a/docs/users_guide/ug-ent.xml +++ b/docs/users_guide/ug-ent.xml @@ -1,4 +1,5 @@ +