FIX #1861: floating-point constants for infinity and NaN in via-C
[ghc-hetmet.git] / docs / users_guide / runghc.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <chapter id="runghc">
3   <title>Using runghc</title>
4   <indexterm><primary>runghc</primary></indexterm>
5
6   <para>runghc allows you to run Haskell programs without first having
7   to compile them.</para>
8
9   <sect1 id="runghc-introduction">
10     <title>Flags</title>
11
12     <para>The runghc commandline looks like:</para>
13 <screen>
14 runghc [runghc flags] [GHC flags] module [program flags]
15 </screen>
16     <para>The only runghc flag currently is
17     <literal>-f /path/to/ghc</literal>,
18     which tells runghc which GHC to use to run the program. If it is
19     not given then runghc will search for GHC in the directories in the
20     system search path.</para>
21
22     <para>runghc will try to work out where the boundaries between
23     <literal>[runghc flags]</literal> and
24     <literal>[GHC flags]</literal>, and
25     <literal>[GHC flags]</literal> and
26     <literal>module</literal> are, but you can use a
27     <literal>--</literal> flag if it doesn't get it right. For example,
28     <literal>runghc -- -fglasgow-exts Foo</literal> means runghc
29     won't try to use <literal>glasgow-exts</literal> as the path to GHC,
30     but instead will pass the flag to GHC.
31     </para>
32
33   </sect1>
34
35 </chapter>
36
37 <!-- Emacs stuff:
38      ;;; Local Variables: ***
39      ;;; mode: xml ***
40      ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***
41      ;;; End: ***
42  -->