9189b38
.TH RUNGHC 1 "28 NOVEMBER 2007"
9189b38
.SH NAME
9189b38
runghc \- program to run Haskell programs without first having to compile them.
9189b38
.SH SYNOPSIS
9189b38
.B runghc
9189b38
.RI 
9189b38
[runghc|flags] [GHC|flags] module [program|flags]...
9189b38
.br
9189b38
.SH DESCRIPTION
9189b38
.B runghc 
9189b38
is considered a non-interactive interpreter and part of The Glasgow Haskell Compiler. 
9189b38
.B runghc
9189b38
is a compiler that automatically runs its results at the end.  
9189b38
.PP
9189b38
.SH OPTIONS
9189b38
.TP
9189b38
the flags are: 
9189b38
.TP
9189b38
.B \-f
9189b38
it 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 -f /path/to/ghc
9189b38
.TP
9189b38
.B \-- 
9189b38
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 
9189b38
means runghc won't try to use glasgow-exts as the path to GHC, but instead will pass the flag to GHC.
9189b38
9189b38
.SH EXAMPLES
9189b38
.TP 
9189b38
.B runghc foo
9189b38
.PP
9189b38
.B runghc -f /path/to/ghc foo
9189b38
.TP 
9189b38
.B runghc -- -fglasgow-exts Foo
9189b38
9189b38
.SH SEE ALSO
9189b38
.BR ghc (1),
9189b38
.BR ghci (1).
9189b38
.br
9189b38
9189b38
.SH COPYRIGHT
9189b38
Copyright 2002, The University Court of the University of Glasgow. All rights reserved.
9189b38
9189b38
.SH AUTHOR
9189b38
This manual page was written by Efrain Valles Pulgar <effie.jayx@gmail.com>. This is free documentation; see the GNU 
9189b38
General Public Licence version 2 or later for copying conditions. There is NO WARRANTY.
9189b38