1RUNGHC(1) General Commands Manual RUNGHC(1)
2
3
4
6 runghc - program to run Haskell programs without first having to com‐
7 pile them.
8
10 runghc [runghc|flags] [GHC|flags] module [program|flags]...
11
13 runghc is considered a non-interactive interpreter and part of The
14 Glasgow Haskell Compiler. runghc is a compiler that automatically runs
15 its results at the end.
16
18 the flags are:
19
20 -f it tells runghc which GHC to use to run the program. If it is
21 not given then runghc will search for GHC in the directories in
22 the system search path. runghc -f /path/to/ghc
23
24 -- runghc will try to work out where the boundaries between [runghc
25 flags] and [GHC flags], and [GHC flags] and module are, but you
26 can use a -- flag if it doesn't get it right. For example,
27 runghc -- -fglasgow-exts Foo means runghc won't try to use glas‐
28 gow-exts as the path to GHC, but instead will pass the flag to
29 GHC.
30
31
33 runghc foo
34
35 runghc -f /path/to/ghc foo
36
37 runghc -- -fglasgow-exts Foo
38
39
41 ghc(1), ghci(1).
42
43
45 Copyright 2002, The University Court of the University of Glasgow. All
46 rights reserved.
47
48
50 This manual page was written by Efrain Valles Pulgar
51 <effie.jayx@gmail.com>. This is free documentation; see the GNU General
52 Public Licence version 2 or later for copying conditions. There is NO
53 WARRANTY.
54
55
56
57
58 28 NOVEMBER 2007 RUNGHC(1)