From 764018106c4b9f63edf637c077a50751da68bb5f Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 19 Aug 2007 00:02:58 +0000 Subject: [PATCH] Add some runghc docs to the users guide --- docs/users_guide/runghc.xml | 42 +++++++++++++++++++++++++++++++++++++++ docs/users_guide/ug-book.xml.in | 1 + docs/users_guide/ug-ent.xml | 1 + 3 files changed, 44 insertions(+) create mode 100644 docs/users_guide/runghc.xml diff --git a/docs/users_guide/runghc.xml b/docs/users_guide/runghc.xml new file mode 100644 index 0000000..cfd5cbe --- /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 c5710f1..c44f07f 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 1700cfa..d5614e8 100644 --- a/docs/users_guide/ug-ent.xml +++ b/docs/users_guide/ug-ent.xml @@ -1,4 +1,5 @@ + -- 1.7.10.4