[project @ 2001-02-13 18:08:44 by simonmar]
authorsimonmar <unknown>
Tue, 13 Feb 2001 18:08:44 +0000 (18:08 +0000)
committersimonmar <unknown>
Tue, 13 Feb 2001 18:08:44 +0000 (18:08 +0000)
beginnings of a documentation revamp

ghc/docs/users_guide/using.sgml

index 019e89d..9957c9b 100644 (file)
@@ -2,7 +2,7 @@
 <Title>Using GHC
 </Title>
 
-<Para>
+<para>
 <IndexTerm><Primary>GHC, using</Primary></IndexTerm>
 <IndexTerm><Primary>using GHC</Primary></IndexTerm>
 GHC is a command-line compiler: in order to compile a Haskell program,
@@ -11,43 +11,43 @@ shell.  The steps involved in compiling a program can be automated
 using the <Command>make</Command> tool (this is especially useful if the program
 consists of multiple source files which depend on each other).  This
 section describes how to use GHC from the command-line.
-</Para>
+</para>
 
 <Sect1 id="command-line-structure">
 <Title>Overall command-line structure
 </Title>
 
-<Para>
+<para>
 <IndexTerm><Primary>structure, command-line</Primary></IndexTerm>
 <IndexTerm><Primary>command-line structure</Primary></IndexTerm>
-</Para>
+</para>
 
-<Para>
+<para>
 An invocation of GHC takes the following form:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <Screen>
 ghc [argument...]
 </Screen>
 
-</Para>
+</para>
 
-<Para>
+<para>
 Command-line arguments are either options or file names.
-</Para>
+</para>
 
-<Para>
-Command-line options begin with <Literal>-</Literal>.  They may <Emphasis>not</Emphasis> be
-grouped: <Option>-vO</Option> is different from <Option>-v -O</Option>.  Options need not
+<para>
+Command-line options begin with <literal>-</literal>.  They may <Emphasis>not</Emphasis> be
+grouped: <option>-vO</option> is different from <option>-v -O</option>.  Options need not
 precede filenames: e.g., <Command>ghc *.o -o foo</Command>.  All options are
 processed and then applied to all files; you cannot, for example, invoke
 <Command>ghc -c -O1 Foo.hs -O2 Bar.hs</Command> to apply different optimisation
 levels to the files <Filename>Foo.hs</Filename> and <Filename>Bar.hs</Filename>.  For conflicting
-options, e.g., <Option>-c -S</Option>, we reserve the right to do anything we
+options, e.g., <option>-c -S</option>, we reserve the right to do anything we
 want.  (Usually, the last one applies.)
-</Para>
+</para>
 
 </Sect1>
 
@@ -55,84 +55,84 @@ want.  (Usually, the last one applies.)
 <Title>Meaningful file suffixes
 </Title>
 
-<Para>
+<para>
 <IndexTerm><Primary>suffixes, file</Primary></IndexTerm>
 <IndexTerm><Primary>file suffixes for GHC</Primary></IndexTerm>
-</Para>
+</para>
 
-<Para>
+<para>
 File names with &ldquo;meaningful&rdquo; suffixes (e.g., <Filename>.lhs</Filename> or <Filename>.o</Filename>)
 cause the &ldquo;right thing&rdquo; to happen to those files.
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
 <VarListEntry>
 <Term><Filename>.lhs</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 <IndexTerm><Primary>lhs suffix</Primary></IndexTerm>
 A &ldquo;literate Haskell&rdquo; module.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 <VarListEntry>
 <Term><Filename>.hs</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 A not-so-literate Haskell module.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 <VarListEntry>
 <Term><Filename>.hi</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 A Haskell interface file, probably compiler-generated.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 <VarListEntry>
 <Term><Filename>.hc</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 Intermediate C file produced by the Haskell compiler.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 <VarListEntry>
 <Term><Filename>.c</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 A C&nbsp;file not produced by the Haskell compiler.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 <VarListEntry>
 <Term><Filename>.s</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 An assembly-language source file, usually
 produced by the compiler.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 <VarListEntry>
 <Term><Filename>.o</Filename>:</Term>
 <ListItem>
-<Para>
+<para>
 An object file, produced by an assembler.
-</Para>
+</para>
 </ListItem>
 </VarListEntry>
 </VariableList>
-</Para>
+</para>
 
-<Para>
+<para>
 Files with other suffixes (or without suffixes) are passed straight
 to the linker.
-</Para>
+</para>
 
 </Sect1>
 
@@ -140,58 +140,231 @@ to the linker.
 <Title>Help and verbosity options
 </Title>
 
-<Para>
+<para>
 <IndexTerm><Primary>help options (GHC)</Primary></IndexTerm>
 <IndexTerm><Primary>verbose option (GHC)</Primary></IndexTerm>
-</Para>
-
-<Para>
-A good option to start with is the <Option>-help</Option> (or <Option>-?</Option>) option.
-<IndexTerm><Primary>-help option</Primary></IndexTerm>
-<IndexTerm><Primary>-? option</Primary></IndexTerm>
-GHC spews a long message to standard output and then exits.
-</Para>
-
-<Para>
-The <Option>-v</Option><IndexTerm><Primary>-v option</Primary></IndexTerm> option makes GHC <Emphasis>verbose</Emphasis>: it
-reports its version number and shows (on stderr) exactly how it invokes each
-phase of the compilation system.  Moreover, it passes
-the <Option>-v</Option> flag to most phases; each reports
-its version number (and possibly some other information).
-</Para>
-
-<Para>
-Please, oh please, use the <Option>-v</Option> option when reporting bugs!
-Knowing that you ran the right bits in the right order is always the
-first thing we want to verify.
-</Para>
-
-<Para>
-If you're just interested in the compiler version number, the
-<Option>--version</Option><IndexTerm><Primary>--version option</Primary></IndexTerm> option prints out a
-one-line string containing the requested info.
-</Para>
-
-</Sect1>
-
-<Sect1 id="options-order">
-<Title>Running the right phases in the right order
-</Title>
+</para>
+
+    <informaltable>
+      <tgroup cols=3 align=left colsep=1 rowsep=1>
+       <thead>
+         <row>
+           <entry>Flag</entry>
+           <entry>Description</entry>
+           <entry>Static/Dynamic</entry>
+           <entry>Reverse</entry>
+         </row>
+       </thead>
+       <tbody>
+       <row>
+         <entry><literal>-?</literal></entry>
+         <entry>help</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>-help</literal></entry>
+         <entry>help</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>-v</literal></entry>
+         <entry>verbose mode (equivalent to <literal>-v3</literal>)</entry>
+         <entry>dynamic</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>-v</literal><emphasis>n</emphasis></entry>
+         <entry>set verbosity level</entry>
+         <entry>dynamic</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>--version</literal></entry>
+         <entry>display GHC version</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>--numeric-version</literal></entry>
+         <entry>display GHC version (numeric only)</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       </tbody>
+      </tgroup>
+    </informaltable>
+
+
+    <variablelist>
+      <varlistentry>
+       <term><literal>-help</literal></term>
+       <term><literal>-?</literal></term>
+       <indexterm><primary><literal>-?</literal></primary></indexterm>
+       <indexterm><primary><literal>-help</literal></primary></indexterm>
+       <listitem>
+         <para>Cause GHC to spew a long usage message to standard
+          output and then exit.</para>
+       </listitem>
+      </varlistentry>
 
-<Para>
-<IndexTerm><Primary>order of passes in GHC</Primary></IndexTerm>
-<IndexTerm><Primary>pass ordering in GHC</Primary></IndexTerm>
-The basic task of the <Command>ghc</Command> driver is to run each input file
-through the right phases (compiling, linking, etc.).
-</Para>
+      <varlistentry>
+       <term><literal>-v</literal></term>
+       <indexterm><primary><literal>-v</literal></primary></indexterm>
+       <listitem>
+         <para>The <option>-v</option> option makes GHC
+          <Emphasis>verbose</Emphasis>: it reports its version number
+          and shows (on stderr) exactly how it invokes each phase of
+          the compilation system.  Moreover, it passes the
+          <option>-v</option> flag to most phases; each reports its
+          version number (and possibly some other information).</para>
+
+         <para>Please, oh please, use the <option>-v</option> option
+          when reporting bugs!  Knowing that you ran the right bits in
+          the right order is always the first thing we want to
+          verify.</para>
+       </listitem>
+      </varlistentry>
+       
+      <varlistentry>
+       <term><literal>-v</literal><emphasis>n</emphasis></term>
+       <indexterm><primary><literal>-v</literal><emphasis>n</emphasis></primary></indexterm>
+       <listitem>
+         <para>To provide more control over the compiler's verbosity,
+         the <option>-v</option> flag takes an optional numeric
+         argument.  Specifying <option>-v</option> on its own is
+         equivalent to <option>-v3</option>, and the other levels
+         have the following meanings:</para>
+         
+         <variablelist>
+           <varlistentry>
+             <term><literal>-v0</literal></term>
+             <listitem>
+               <para>Disable all non-essential messages (this is the
+               default).</para>
+             </listitem>
+           </varlistentry>
+
+           <varlistentry>
+             <term><literal>-v1</literal></term>
+             <listitem>
+               <para>Minimal verbosity: print one line per
+               compilation (this is the default when
+               <option>--make</option> or
+               <option>--interactive</option> is on).</para>
+             </listitem>
+           </varlistentry>
+
+           <varlistentry>
+             <term><literal>-v2</literal></term>
+             <listitem>
+               <para>Print the name of each compilation phase as it
+               is executed. (equivalent to
+               <option>-dshow-passes</option>).</para>
+             </listitem>
+           </varlistentry>
+
+           <varlistentry>
+             <term><literal>-v3</literal></term>
+             <listitem>
+               <para>The same as <option>-v2</option>, except that in
+                addition the full command line (if appropriate) for
+                each compilation phase is also printed.</para>
+             </listitem>
+           </varlistentry>
+
+           <varlistentry>
+             <term><literal>-v4</literal></term>
+             <listitem>
+               <para>The same as <option>-v3</option> except that the
+               intermediate program representation after each
+               compilation phase is also printed (excluding
+               preprocessed and C/assembly files).</para>
+             </listitem>
+           </varlistentry>
+         </variablelist>
+       </listitem>
+      </varlistentry>
+      
+      <varlistentry>
+       <term><literal>--version</literal></term>
+       <indexterm><primary><literal>--version</literal></primary></indexterm>
+       <listitem>
+         <para>Print a one-line string including GHC's version number.</para>
+       </listitem>
+      </varlistentry>
 
-<Para>
-The first phase to run is determined by the input-file suffix, and the
-last phase is determined by a flag.  If no relevant flag is present,
-then go all the way through linking.  This table summarises:
-</Para>
+      <varlistentry>
+       <term><literal>--numeric-version</literal></term>
+       <indexterm><primary><literal>--numeric-version</literal></primary></indexterm>
+       <listitem>
+         <para>Print GHC's numeric version number only.</para>
+       </listitem>
+      </varlistentry>
+    </variablelist>
+  </sect1>
+    
+  <Sect1 id="options-order">
+    <title>Running the right phases in the right order</title>
+
+    <indexterm><primary>order of passes in GHC</primary></indexterm>
+    <indexterm><primary>pass ordering in GHC</primary></indexterm>
+
+    <informaltable>
+      <tgroup cols=3 align=left colsep=1 rowsep=1>
+       <thead>
+         <row>
+           <entry>Flag</entry>
+           <entry>Description</entry>
+           <entry>Static/Dynamic</entry>
+           <entry>Reverse</entry>
+         </row>
+       </thead>
+       <tbody>
+         <row>
+           <entry><literal>-cpp</literal></entry>
+           <entry>Run the C pre-processor on the Haskell source</entry>
+           <entry>dynamic</entry>
+           <entry>-</entry>
+         </row>
+         <row>
+           <entry><literal>-E</literal></entry>
+           <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
+           <entry>static</entry>
+           <entry>-</entry>
+         </row>
+         <row>
+           <entry><literal>-C</literal></entry>
+           <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
+           <entry>static</entry>
+           <entry>-</entry>
+         </row>
+         <row>
+           <entry><literal>-S</literal></entry>
+           <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
+           <entry>static</entry>
+           <entry>-</entry>
+         </row>
+         <row>
+           <entry><literal>-c</literal></entry>
+           <entry>Stop after compiling to object code (<literal>.o</literal> file)</entry>
+           <entry>static</entry>
+           <entry>-</entry>
+         </row>
+       </tbody>
+      </tgroup>
+    </informaltable>
+
+    <para>The basic task of the <Command>ghc</Command> driver is to
+    run each input file through the right phases (compiling, linking,
+    etc.).</para>
+
+    <para>The first phase to run is determined by the input-file
+    suffix, and the last phase is determined by a flag.  If no
+    relevant flag is present, then go all the way through linking.
+    This table summarises:</para>
 
-<Para>
 <InformalTable>
 <TGroup Cols="4">
 <ColSpec Align="Left">
@@ -212,14 +385,14 @@ then go all the way through linking.  This table summarises:
 literate pre-processor </Entry>
 <Entry> .lhs </Entry>
 <Entry> - </Entry>
-<Entry> - </Entry>
+<Entry> .hs </Entry>
 </Row>
 <Row>
 <Entry>
 C pre-processor (opt.) </Entry>
-<Entry> - </Entry>
-<Entry> - </Entry>
-<Entry> - </Entry>
+<Entry> .hs (with <literal>-cpp</literal>) </Entry>
+<Entry> -E </Entry>
+<Entry> .hspp </Entry>
 </Row>
 <Row>
 <Entry>
@@ -256,111 +429,171 @@ linker </Entry>
 <IndexTerm><Primary>-C option</Primary></IndexTerm>
 <IndexTerm><Primary>-S option</Primary></IndexTerm>
 <IndexTerm><Primary>-c option</Primary></IndexTerm>
-</Para>
 
-<Para>
+<para>
 Thus, a common invocation would be: <Command>ghc -c Foo.hs</Command>
-</Para>
+</para>
 
-<Para>
+<para>
 Note: What the Haskell compiler proper produces depends on whether a
 native-code generator is used (producing assembly language) or not
 (producing C).
-</Para>
-
-<Para>
-The option <Option>-cpp</Option><IndexTerm><Primary>-cpp option</Primary></IndexTerm> must be given for the C
-pre-processor phase to be run, that is, the pre-processor will be run
-over your Haskell source file before continuing.
-</Para>
-
-<Para>
-The option <Option>-E</Option><IndexTerm><Primary>-E
-option</Primary></IndexTerm> runs just the pre-processing passes of
-the compiler, dumping the result in a file.  Note that this differs
-from all GHCs prior to version 4.11, in which the result was dumped to the
-standard output.  If used in conjunction with -cpp, the output is the
-code blocks of the original (literal) source after having put it
-through the grinder that is the C pre-processor. Sans
-<Option>-cpp</Option>, the output is the de-litted version of the
-original source.
-</Para>
-
-<Para>
-The option <Option>-optcpp-E</Option><IndexTerm><Primary>-optcpp-E option</Primary></IndexTerm> runs just the
-pre-processing stage of the C-compiling phase, sending the result to
-stdout.  (For debugging or obfuscation contests, usually.)
-</Para>
+</para>
+    
+    <para>NOTE: the option <option>-E</option><IndexTerm><Primary>-E
+    option</Primary></IndexTerm> runs just the pre-processing passes
+    of the compiler, dumping the result in a file.  Note that this
+    differs from all GHCs prior to version 4.11, in which the result
+    was dumped to the standard output.  If used in conjunction with
+    -cpp, the output is the code blocks of the original (literal)
+    source after having put it through the grinder that is the C
+    pre-processor. Sans <option>-cpp</option>, the output is the
+    de-litted version of the original source.</para>
 
-</Sect1>
+  </sect1>
 
-<Sect1 id="options-output">
-<Title>Re-directing the compilation output(s)
-</Title>
+  <sect1 id="options-output">
+    <title>Re-directing the compilation output(s)</title>
+
+    <indexterm><primary>output-directing options</primary></indexterm>
+    <indexterm><primary>redirecting compilation output</primary></indexterm>
+
+    <informaltable>
+      <tgroup cols=3 align=left colsep=1 rowsep=1>
+       <thead>
+         <row>
+           <entry>Flag</entry>
+           <entry>Description</entry>
+           <entry>Static/Dynamic</entry>
+           <entry>Reverse</entry>
+         </row>
+       </thead>
+       <tbody>
+       <row>
+         <entry><literal>-hisuf</literal></entry>
+         <entry>set the suffix to use for interface files</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>-o</literal></entry>
+         <entry>set output filename</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>-odir</literal></entry>
+         <entry>set output directory</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       <row>
+         <entry><literal>-ohi</literal></entry>
+         <entry>set the filename in which to put the interface</entry>
+         <entry>static</entry>
+         <entry></entry>
+       </row>
+       <row>
+         <entry><literal>-osuf</literal></entry>
+         <entry>set the output file suffix</entry>
+         <entry>static</entry>
+         <entry>-</entry>
+       </row>
+       </tbody>
+      </tgroup>
+    </informaltable>
+
+    <variablelist>
+      <varlistentry>
+       <term><literal>-o</literal></term>
+       <indexterm><primary><literal>-o</literal></primary></indexterm>
+       <listitem>
+         <para>GHC's compiled output normally goes into a
+          <Filename>.hc</Filename>, <Filename>.o</Filename>, etc.,
+          file, depending on the last-run compilation phase.  The
+          option <option>-o foo</option><IndexTerm><Primary>-o
+          option</Primary></IndexTerm> re-directs the output of that
+          last-run phase to file <Filename>foo</Filename>.</para>
+
+         <para>Note: this &ldquo;feature&rdquo; can be
+          counterintuitive: <Command>ghc -C -o foo.o foo.hs</Command>
+          will put the intermediate C code in the file
+          <Filename>foo.o</Filename>, name notwithstanding!</para>
+       </listitem>
+      </varlistentry>
 
-<Para>
-<IndexTerm><Primary>output-directing options</Primary></IndexTerm>
-</Para>
-
-<Para>
-GHC's compiled output normally goes into a <Filename>.hc</Filename>, <Filename>.o</Filename>, etc., file,
-depending on the last-run compilation phase.  The option <Option>-o
-foo</Option><IndexTerm><Primary>-o option</Primary></IndexTerm> re-directs the output of that last-run
-phase to file <Filename>foo</Filename>.
-</Para>
-
-<Para>
-Note: this &ldquo;feature&rdquo; can be counterintuitive:
-<Command>ghc -C -o foo.o foo.hs</Command> will put the intermediate C code in the
-file <Filename>foo.o</Filename>, name notwithstanding!
-</Para>
-
-<Para>
-EXOTICA: But the <Option>-o</Option> option isn't of much use if you have
-<Emphasis>several</Emphasis> input files&hellip; Non-interface output files are
-normally put in the same directory as their corresponding input file
-came from.  You may specify that they be put in another directory
-using the <Option>-odir &lt;dir&gt;</Option><IndexTerm><Primary>-odir &lt;dir&gt; option</Primary></IndexTerm> (the
-&ldquo;Oh, dear&rdquo; option).  For example:
-</Para>
-
-<Para>
+      <varlistentry>
+       <term><literal>-odir</literal></term>
+       <indexterm><primary><literal>-odir</literal></primary></indexterm>
+       <listitem>
+         <para>The <option>-o</option> option isn't of much use if
+          you have <Emphasis>several</Emphasis> input files&hellip;
+          Non-interface output files are normally put in the same
+          directory as their corresponding input file came from.  You
+          may specify that they be put in another directory using the
+          <option>-odir &lt;dir&gt;</option><IndexTerm><Primary>-odir
+          &lt;dir&gt; option</Primary></IndexTerm> (the &ldquo;Oh,
+          dear&rdquo; option).  For example:</para>
 
 <Screen>
 % ghc -c parse/Foo.hs parse/Bar.hs gurgle/Bumble.hs -odir `arch`
 </Screen>
 
-</Para>
-
-<Para>
-The output files, <Filename>Foo.o</Filename>, <Filename>Bar.o</Filename>, and <Filename>Bumble.o</Filename> would be
-put into a subdirectory named after the architecture of the executing
-machine (<Filename>sun4</Filename>, <Filename>mips</Filename>, etc).  The directory must already
-exist; it won't be created.
-</Para>
-
-<Para>
-Note that the <Option>-odir</Option> option does <Emphasis>not</Emphasis> affect where the
-interface files are put.  In the above example, they would still be
-put in <Filename>parse/Foo.hi</Filename>, <Filename>parse/Bar.hi</Filename>, and <Filename>gurgle/Bumble.hi</Filename>.
-</Para>
-
-<Para>
-MORE EXOTICA: The <Option>-osuf &lt;suffix&gt;</Option><IndexTerm><Primary>-osuf &lt;suffix&gt;
-option</Primary></IndexTerm> will change the <Filename>.o</Filename> file suffix for object files to
-whatever you specify.  (We use this in compiling the prelude.).
-Similarly, the <Option>-hisuf &lt;suffix&gt;</Option><IndexTerm><Primary>-hisuf &lt;suffix&gt;
-option</Primary></IndexTerm> will change the <Filename>.hi</Filename> file suffix for non-system
-interface files (see <XRef LinkEnd="hi-options">).
-</Para>
-
-<Para>
-The <Option>-hisuf</Option>/<Option>-osuf</Option> game is useful if you want to compile a program
-with both GHC and HBC (say) in the same directory.  Let HBC use the
-standard <Filename>.hi</Filename>/<Filename>.o</Filename> suffixes; add <Option>-hisuf g&lowbar;hi -osuf g&lowbar;o</Option> to your
-<Command>make</Command> rule for GHC compiling&hellip;
-</Para>
+          <para>The output files, <Filename>Foo.o</Filename>,
+          <Filename>Bar.o</Filename>, and
+          <Filename>Bumble.o</Filename> would be put into a
+          subdirectory named after the architecture of the executing
+          machine (<Filename>sun4</Filename>,
+          <Filename>mips</Filename>, etc).  The directory must already
+          exist; it won't be created.</para>
+
+          <para>Note that the <option>-odir</option> option does
+          <Emphasis>not</Emphasis> affect where the interface files
+          are put.  In the above example, they would still be put in
+          <Filename>parse/Foo.hi</Filename>,
+          <Filename>parse/Bar.hi</Filename>, and
+          <Filename>gurgle/Bumble.hi</Filename>.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><literal>-ohi</literal></term>
+       <indexterm><primary><literal>-ohi</literal></primary></indexterm>
+       <listitem>
+         <para></para>
+       </listitem>
+      </varlistentry>
 
+      <varlistentry>
+       <term><literal>-osuf</literal></term>
+       <term><literal>-hisuf</literal></term>
+       <indexterm><primary><literal>-osuf</literal></primary></indexterm>
+       <indexterm><primary><literal>-hisuf</literal></primary></indexterm>
+       <listitem>
+         <para>EXOTICA: The <option>-osuf
+          &lt;suffix&gt;</option><IndexTerm><Primary>-osuf
+          &lt;suffix&gt; option</Primary></IndexTerm> will change the
+          <Filename>.o</Filename> file suffix for object files to
+          whatever you specify.  (We use this in compiling the
+          prelude.).</para>
+
+         <para>Similarly, the <option>-hisuf
+          &lt;suffix&gt;</option><IndexTerm><Primary>-hisuf
+          &lt;suffix&gt; option</Primary></IndexTerm> will change the
+          <Filename>.hi</Filename> file suffix for non-system
+          interface files (see <XRef LinkEnd="hi-options">).</para>
+
+         <para>The <option>-hisuf</option>/<option>-osuf</option>
+          game is useful if you want to compile a program with both
+          GHC and HBC (say) in the same directory.  Let HBC use the
+          standard <Filename>.hi</Filename>/<Filename>.o</Filename>
+          suffixes; add <option>-hisuf g&lowbar;hi -osuf
+          g&lowbar;o</option> to your <Command>make</Command> rule for
+          GHC compiling&hellip;</para>
+       </listitem>
+      </varlistentry>
+    </variablelist>
+       
     <sect2 id="keeping-intermediates">
       <title>Keeping Intermediate Files</title>
       <indexterm><primary>intermediate files, saving</primary>
@@ -370,6 +603,45 @@ standard <Filename>.hi</Filename>/<Filename>.o</Filename> suffixes; add <Option>
       <indexterm><primary><literal>.s</literal> files, saving</primary>
       </indexterm>
 
+      <informaltable>
+       <tgroup cols=3 align=left colsep=1 rowsep=1>
+         <thead>
+           <row>
+             <entry>Flag</entry>
+             <entry>Description</entry>
+             <entry>Static/Dynamic</entry>
+             <entry>Reverse</entry>
+           </row>
+         </thead>
+         <tbody>
+           <row>
+             <entry><literal>-keep-hc-file</literal></entry>
+             <entry>retain intermediate <literal>.hc</literal> files</entry>
+             <entry>static</entry>
+             <entry>-</entry>
+           </row>
+           <row>
+             <entry><literal>-keep-s-file</literal></entry>
+             <entry>retain intermediate <literal>.s</literal> files</entry>
+             <entry>static</entry>
+             <entry>-</entry>
+           </row>
+           <row>
+             <entry><literal>-keep-raw-s-file</literal></entry>
+             <entry>retain intermediate <literal>.raw_s</literal> files</entry>
+             <entry>static</entry>
+             <entry>-</entry>
+           </row>
+           <row>
+             <entry><literal>-keep-tmp-files</literal></entry>
+             <entry>retain all intermediate temporary files</entry>
+             <entry>static</entry>
+             <entry>-</entry>
+           </row>
+         </tbody>
+       </tgroup>
+      </informaltable>
+
       <para>The following options are useful for keeping certain
       intermediate files around, when normally GHC would throw these
       away after compilation:</para>
@@ -435,369 +707,522 @@ standard <Filename>.hi</Filename>/<Filename>.o</Filename> suffixes; add <Option>
       </variablelist>
     </sect2>
 
-<Sect2 id="saving-ghc-stderr">
-<Title>Saving GHC's standard error output
-</Title>
-
-<Para>
-<IndexTerm><Primary>standard error, saving</Primary></IndexTerm>
-</Para>
-
-<Para>
-Sometimes, you may cause GHC to be rather chatty on standard error;
-with <Option>-v</Option>, for example.  You can instruct GHC to <Emphasis>append</Emphasis> this
-output to a particular log file with a <Option>-odump &lt;blah&gt;</Option><IndexTerm><Primary>-odump
-&lt;blah&gt; option</Primary></IndexTerm> option.
-</Para>
-
-</Sect2>
-
-<Sect2 id="temp-files">
-<Title>Redirecting temporary files
-</Title>
+    <sect2 id="temp-files">
+      <title>Redirecting temporary files</title>
 
       <indexterm>
        <primary>temporary files</primary>
        <secondary>redirecting</secondary>
       </indexterm>
 
-<Para>
-If you have trouble because of running out of space in
-<Filename>/tmp</Filename> (or wherever your installation thinks
-temporary files should go), you may use the <Option>-tmpdir
-&lt;dir&gt;</Option><IndexTerm><Primary>-tmpdir &lt;dir&gt;
-option</Primary></IndexTerm> option to specify an alternate directory.
-For example, <Option>-tmpdir .</Option> says to put temporary files in
-the current working directory.
-</Para>
-
-<Para>
-Alternatively, use your <Constant>TMPDIR</Constant> environment
-variable.<IndexTerm><Primary>TMPDIR environment
-variable</Primary></IndexTerm> Set it to the name of the directory
-where temporary files should be put.  GCC and other programs will
-honour the <Constant>TMPDIR</Constant> variable as well.
-</Para>
-
-<Para>
-Even better idea: Set the <Constant>TMPDIR</Constant> variable when building GHC, and
-never worry about <Constant>TMPDIR</Constant> again. (see the build documentation).
-</Para>
-
-</Sect2>
+      <informaltable>
+       <tgroup cols=3 align=left colsep=1 rowsep=1>
+         <thead>
+           <row>
+             <entry>Flag</entry>
+             <entry>Description</entry>
+             <entry>Static/Dynamic</entry>
+             <entry>Reverse</entry>
+           </row>
+         </thead>
+         <tbody>
+           <row>
+             <entry><literal>-tmpdir</literal></entry>
+             <entry>set the directory for temporary files</entry>
+             <entry>static</entry>
+             <entry>-</entry>
+           </row>
+         </tbody>
+       </tgroup>
+      </informaltable>
 
-</Sect1>
+      <variablelist>
+       <varlistentry>
+         <term><literal>-tmpdir</literal></term>
+         <indexterm><primary><literal>-tmpdir</literal></primary></indexterm>
+         <listitem>
+           <para>If you have trouble because of running out of space
+            in <Filename>/tmp</Filename> (or wherever your
+            installation thinks temporary files should go), you may
+            use the <option>-tmpdir
+            &lt;dir&gt;</option><IndexTerm><Primary>-tmpdir
+            &lt;dir&gt; option</Primary></IndexTerm> option to specify
+            an alternate directory.  For example, <option>-tmpdir
+            .</option> says to put temporary files in the current
+            working directory.</para>
+
+           <para>Alternatively, use your <Constant>TMPDIR</Constant>
+            environment variable.<IndexTerm><Primary>TMPDIR
+            environment variable</Primary></IndexTerm> Set it to the
+            name of the directory where temporary files should be put.
+            GCC and other programs will honour the
+            <Constant>TMPDIR</Constant> variable as well.</para>
+
+           <para>Even better idea: Set the
+            <Constant>DEFAULT_TMPDIR</Constant> make variable when
+            building GHC, and never worry about
+            <Constant>TMPDIR</Constant> again. (see the build
+            documentation).</para>
+         </listitem>
+       </varlistentry>
+      </variablelist>
+    </sect2>
 
-<Sect1 id="options-sanity">
-<Title>Warnings and sanity-checking
-</Title>
+  </sect1>
 
-<Para>
-<IndexTerm><Primary>sanity-checking options</Primary></IndexTerm>
-<IndexTerm><Primary>warnings</Primary></IndexTerm>
-GHC has a number of options that select which types of non-fatal error
-messages, otherwise known as warnings, can be generated during
-compilation.  By default, you get a standard set of warnings which are
-generally likely to indicate bugs in your program.  These are:
-<Option>-fwarn-overlpapping-patterns</Option>, <Option>-fwarn-duplicate-exports</Option>, and
-<Option>-fwarn-missing-methods</Option>.  The following flags are simple ways to
-select standard &ldquo;packages&rdquo; of warnings:
-</Para>
-
-<Para>
-<VariableList>
+  <sect1 id="options-sanity">
+    <title>Warnings and sanity-checking</title>
+
+    <indexterm><primary>sanity-checking options</primary></indexterm>
+    <indexterm><primary>warnings</primary></indexterm>
+
+    <informaltable>
+      <tgroup cols=3 align=left colsep=1 rowsep=1>
+       <thead>
+         <row>
+           <entry>Flag</entry>
+           <entry>Description</entry>
+           <entry>Static/Dynamic</entry>
+           <entry>Reverse</entry>
+         </row>
+       </thead>
+       <tbody>
+         <row>
+           <entry><literal>-W</literal></entry>
+           <entry>enable normal warnings</entry>
+           <entry>static</entry>
+           <entry><literal>-w</literal></entry>
+         </row>
+         <row>
+           <entry><literal>-w</literal></entry>
+           <entry>disable all warnings</entry>
+           <entry>static</entry>
+           <entry>-</entry>
+         </row>
+         <row>
+           <entry><literal>-Wall</literal></entry>
+           <entry>enable all warnings</entry>
+           <entry>static</entry>
+           <entry><literal>-w</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-deprecations</literal></entry>
+           <entry>warn about uses of functions & types that are deprecated</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-deprecations</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-duplicate-exports</literal></entry>
+           <entry>warn when an entity is exported multiple times</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-duplicate-exports</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-hi-shadowing</literal></entry>
+           <entry>warn when a <literal>.hi</literal> file in the
+           current directory shadows a library</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-hi-shadowing</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-incomplete-patterns</literal></entry>
+           <entry>warn when a pattern match could fail</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-incomplete-patterns</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-missing-fields</literal></entry>
+           <entry>warn when fields of a record are uninitialised</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-missing-fields</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-missing-methods</literal></entry>
+           <entry>warn when class methods are undefined</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-missing-methods</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-missing-signatures</literal></entry>
+           <entry>warn about top-level functions without signatures</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-missing-signatures</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-name-shadowing</literal></entry>
+           <entry>warn when names are shadowed</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-name-shadowing</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-overlapping-patterns</literal></entry>
+           <entry>warn about overlapping patterns</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-overlapping-patterns</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-simple-patterns</literal></entry>
+           <entry>warn about lambda-patterns that can fail</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-simple-patterns</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-type-defaults</literal></entry>
+           <entry>warn when defaulting happens</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-type-defaults</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-unused-binds</literal></entry>
+           <entry>warn about bindings that are unused</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-unused-binds</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-unused-imports</literal></entry>
+           <entry>warn about unnecessary imports</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-unused-imports</literal></entry>
+         </row>
+
+         <row>
+           <entry><literal>-fwarn-unused-matches</literal></entry>
+           <entry>warn about variables in patterns that aren't used</entry>
+           <entry>dynamic</entry>
+           <entry><literal>-fno-warn-unused-matches</literal></entry>
+         </row>
+
+       </tbody>
+      </tgroup>
+    </informaltable>
+
+    <para>GHC has a number of options that select which types of
+    non-fatal error messages, otherwise known as warnings, can be
+    generated during compilation.  By default, you get a standard set
+    of warnings which are generally likely to indicate bugs in your
+    program.  These are:
+    <option>-fwarn-overlpapping-patterns</option>,
+    <option>-fwarn-deprecations</option>,
+    <option>-fwarn-duplicate-exports</option>,
+    <option>-fwarn-missing-fields</option>, and
+    <option>-fwarn-missing-methods</option>.  The following flags are
+    simple ways to select standard &ldquo;packages&rdquo; of warnings:
+    </para>
+
+    <VariableList>
+
+      <varlistentry>
+       <term><option>-W</option>:</term>
+       <listitem>
+         <IndexTerm><Primary>-W option</Primary></IndexTerm>
+         <para>Provides the standard warnings plus
+         <option>-fwarn-incomplete-patterns</option>,
+         <option>-fwarn-unused-matches</option>,
+         <option>-fwarn-unused-imports</option> and
+         <option>-fwarn-unused-binds</option>.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-Wnot</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-Wnot option</Primary></IndexTerm>
-Turns off all warnings, including the standard ones.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-w</option>:</term>
+       <listitem>
+         <IndexTerm><Primary>-w option</Primary></IndexTerm>
+         <para>Turns off all warnings, including the standard ones.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-w</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-w option</Primary></IndexTerm>
-Synonym for <Option>-Wnot</Option>.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-Wall</option>:</term>
+       <listitem>
+         <indexterm><primary>-Wall option</primary></indexterm>
+         <para>Turns on all warning options.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-W</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-W option</Primary></IndexTerm>
-Provides the standard warnings plus <Option>-fwarn-incomplete-patterns</Option>,
-<Option>-fwarn-unused-imports</Option> and <Option>-fwarn-unused-binds</Option>.
-</Para>
-</ListItem>
-</VarListEntry>
+    </variablelist>
 
-<VarListEntry>
-<Term><Option>-Wall</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-Wall option</Primary></IndexTerm>
-Turns on all warning options.
-</Para>
-</ListItem>
-</VarListEntry>
+    <para>The full set of warning options is described below.  To turn
+    off any warning, simply give the corresponding
+    <option>-fno-warn-...</option> option on the command line.</para>
 
-</VariableList>
-</Para>
+    <variablelist>
 
-<Para>
-The full set of warning options is described below.  To turn off any
-warning, simply give the corresponding <Option>-fno-warn-...</Option> option on
-the command line.
-</Para>
+      <varlistentry>
+       <term><option>-fwarn-deprecations</option>:</term>
+       <listitem>
+         <indexterm><primary><option>-fwarn-deprecations</option></primary>
+         </indexterm>
+         <indexterm><primary>deprecations</primary></indexterm>
+         <para>Causes a warning to be emitted when a deprecated
+         function or type is used.  Entities can be marked as
+         deprecated using a pragma, see <xref
+         linkend="deprecated-pragma">.</para>
+       </listitem>
+      </varlistentry>
 
-<Para>
-<VariableList>
+      <varlistentry>
+       <term><option>-fwarn-duplicate-exports</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-duplicate-exports option</primary></indexterm>
+         <indexterm><primary>duplicate exports, warning</primary></indexterm>
+         <indexterm><primary>export lists, duplicates</primary></indexterm>
 
-<VarListEntry>
-<Term><Option>-fwarn-name-shadowing</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-name-shadowing option</Primary></IndexTerm>
-<IndexTerm><Primary>shadowing, warning</Primary></IndexTerm>This option causes a warning to be emitted whenever an inner-scope
-value has the same name as an outer-scope value, i.e. the inner value
-shadows the outer one.  This can catch typographical errors that turn
-into hard-to-find bugs, e.g., in the inadvertent cyclic definition
-<Literal>let x = ... x ... in</Literal>.
-</Para>
-
-<Para>
-Consequently, this option does <Emphasis>not</Emphasis> allow cyclic recursive
-definitions.
-</Para>
-</ListItem>
-</VarListEntry>
+         <para>Have the compiler warn about duplicate entries in
+          export lists. This is useful information if you maintain
+          large export lists, and want to avoid the continued export
+          of a definition after you've deleted (one) mention of it in
+          the export list.</para>
 
-<VarListEntry>
-<Term><Option>-fwarn-overlapping-patterns</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-overlapping-patterns option</Primary></IndexTerm>
-<IndexTerm><Primary>overlapping patterns, warning</Primary></IndexTerm>
-<IndexTerm><Primary>patterns, overlapping</Primary></IndexTerm>
-By default, the compiler will warn you if a set of patterns are
-overlapping, i.e.,
-</Para>
-
-<Para>
-<ProgramListing>
+         <para>This option is on by default.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-hi-shadowing</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-hi-shadowing option</primary></indexterm>
+         <indexterm><primary>shadowing</primary>
+           <secondary>interface files</secondary></indexterm>
+
+         <para>Causes the compiler to emit a warning when a module or
+         interface file in the current directory is shadowing one
+         with the same module name in a library or other
+         directory.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-incomplete-patterns</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-incomplete-patterns option</primary></indexterm>
+         <indexterm><primary>incomplete patterns, warning</primary></indexterm>
+         <indexterm><primary>patterns, incomplete</primary></indexterm>
+
+         <para>Similarly for incomplete patterns, the function
+          <function>g</function> below will fail when applied to
+          non-empty lists, so the compiler will emit a warning about
+          this when <option>-fwarn-incomplete-patterns</option> is
+          enabled.</para>
+
+<programlisting>
+g [] = 2
+</programlisting>
+
+         <para>This option isn't enabled be default because it can be
+          a bit noisy, and it doesn't always indicate a bug in the
+          program.  However, it's generally considered good practice
+          to cover all the cases in your functions.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-missing-fields</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-missing-fields option</primary></indexterm>
+         <indexterm><primary>missing fields, warning</primary></indexterm>
+         <indexterm><primary>fields, missing</primary></indexterm>
+
+         <para>This option is on by default, and warns you whenever
+          the construction of a labelled field constructor isn't
+          complete, missing initializers for one or more fields. While
+          not an error (the missing fields are initialised with
+          bottoms), it is often an indication of a programmer error.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-missing-methods</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-missing-methods option</primary></indexterm>
+         <indexterm><primary>missing methods, warning</primary></indexterm>
+         <indexterm><primary>methods, missing</primary></indexterm>
+
+         <para>This option is on by default, and warns you whenever
+          an instance declaration is missing one or more methods, and
+          the corresponding class declaration has no default
+          declaration for them.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-missing-signatures</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-missing-signatures option</primary></indexterm>
+         <indexterm><primary>type signatures, missing</primary></indexterm>
+
+         <para>If you would like GHC to check that every top-level
+          function/value has a type signature, use the
+          <option>-fwarn-missing-signatures</option> option.  This
+          option is off by default.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-name-shadowing</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-name-shadowing option</primary></indexterm>
+         <indexterm><primary>shadowing, warning</primary></indexterm>
+         
+         <para>This option causes a warning to be emitted whenever an
+          inner-scope value has the same name as an outer-scope value,
+          i.e. the inner value shadows the outer one.  This can catch
+          typographical errors that turn into hard-to-find bugs, e.g.,
+          in the inadvertent cyclic definition <literal>let x = ... x
+          ... in</literal>.</para>
+
+         <para>Consequently, this option does
+          <emphasis>will</emphasis> complain about cyclic recursive
+          definitions.</para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term><option>-fwarn-overlapping-patterns</option>:</term>
+       <indexterm><primary>-fwarn-overlapping-patterns option</primary></indexterm>
+       <indexterm><primary>overlapping patterns, warning</primary></indexterm>
+       <indexterm><primary>patterns, overlapping</primary></indexterm>
+       <listitem>
+         <para>By default, the compiler will warn you if a set of
+          patterns are overlapping, i.e.,</para>
+
+<programlisting>
 f :: String -&#62; Int
 f []     = 0
 f (_:xs) = 1
 f "2"    = 2
-</ProgramListing>
-</Para>
-
-<Para>
-where the last pattern match in <Function>f</Function> won't ever be reached, as the
-second pattern overlaps it. More often than not, redundant patterns
-is a programmer mistake/error, so this option is enabled by default.
-</Para>
-</ListItem>
-</VarListEntry>
+</programlisting>
 
-<VarListEntry>
-<Term><Option>-fwarn-incomplete-patterns</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-incomplete-patterns option</Primary></IndexTerm>
-<IndexTerm><Primary>incomplete patterns, warning</Primary></IndexTerm>
-<IndexTerm><Primary>patterns, incomplete</Primary></IndexTerm>
-Similarly for incomplete patterns, the function <Function>g</Function> below will fail
-when applied to non-empty lists, so the compiler will emit a warning
-about this when <Option>-fwarn-incomplete-patterns</Option> is enabled.
-</Para>
-
-<Para>
-<ProgramListing>
-g [] = 2
-</ProgramListing>
-</Para>
-
-<Para>
-This option isn't enabled be default because it can be a bit noisy,
-and it doesn't always indicate a bug in the program.  However, it's
-generally considered good practice to cover all the cases in your
-functions.
-</Para>
-</ListItem>
-</VarListEntry>
+         <para>where the last pattern match in <Function>f</Function>
+          won't ever be reached, as the second pattern overlaps
+          it. More often than not, redundant patterns is a programmer
+          mistake/error, so this option is enabled by default.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-fwarn-missing-methods</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-missing-methods option</Primary></IndexTerm>
-<IndexTerm><Primary>missing methods, warning</Primary></IndexTerm>
-<IndexTerm><Primary>methods, missing</Primary></IndexTerm>
-This option is on by default, and warns you whenever an instance
-declaration is missing one or more methods, and the corresponding
-class declaration has no default declaration for them.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-fwarn-simple-patterns</option>:</term>
+       <listitem>
+         <indexterm><primary><option>-fwarn-simple-patterns</option></primary>
+         </indexterm>
+         <para>Causes the compiler to warn about lambda-bound
+         patterns that can fail, eg. <literal>\(x:xs)->...</literal>.
+         Normally, these aren't treated as incomplete patterns by
+         <option>-fwarn-incomplete-patterns</option>.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-fwarn-missing-fields</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-missing-fields option</Primary></IndexTerm>
-<IndexTerm><Primary>missing fields, warning</Primary></IndexTerm>
-<IndexTerm><Primary>fields, missing</Primary></IndexTerm>
-This option is on by default, and warns you whenever the construction
-of a labelled field constructor isn't complete, missing initializers
-for one or more fields. While not an error (the missing fields are
-initialised with bottoms), it is often an indication of a programmer
-error.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-fwarn-type-defaults</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-type-defaults option</primary></indexterm>
+         <indexterm><primary>defaulting mechanism, warning</primary></indexterm>
+         <para>Have the compiler warn/inform you where in your source
+          the Haskell defaulting mechanism for numeric types kicks
+          in. This is useful information when converting code from a
+          context that assumed one default into one with another,
+          e.g., the `default default' for Haskell 1.4 caused the
+          otherwise unconstrained value <Constant>1</Constant> to be
+          given the type <literal>Int</literal>, whereas Haskell 98
+          defaults it to <literal>Integer</literal>.  This may lead to
+          differences in performance and behaviour, hence the
+          usefulness of being non-silent about this.</para>
+
+         <para>This warning is off by default.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-fwarn-unused-imports</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-unused-imports option</Primary></IndexTerm>
-<IndexTerm><Primary>unused imports, warning</Primary></IndexTerm>
-<IndexTerm><Primary>imports, unused</Primary></IndexTerm>
-Report any objects that are explicitly imported but never used.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-fwarn-unused-binds</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-unused-binds option</primary></indexterm>
+         <indexterm><primary>unused binds, warning</primary></indexterm>
+         <indexterm><primary>binds, unused</primary></indexterm>
+         <para>Report any function definitions (and local bindings)
+          which are unused.  For top-level functions, the warning is
+          only given if the binding is not exported.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-fwarn-unused-binds</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-unused-binds option</Primary></IndexTerm>
-<IndexTerm><Primary>unused binds, warning</Primary></IndexTerm>
-<IndexTerm><Primary>binds, unused</Primary></IndexTerm>
-Report any function definitions (and local bindings) which are unused.
-For top-level functions, the warning is only given if the binding is
-not exported.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-fwarn-unused-matches</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-unused-matches option</Primary></IndexTerm>
-<IndexTerm><Primary>unused matches, warning</Primary></IndexTerm>
-<IndexTerm><Primary>matches, unused</Primary></IndexTerm>
-Report all unused variables which arise from pattern matches,
-including patterns consisting of a single variable.  For instance <Literal>f x
-y = []</Literal> would report <VarName>x</VarName> and <VarName>y</VarName> as unused.  To eliminate the warning,
-all unused variables can be replaced with wildcards.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-fwarn-unused-imports</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-unused-imports option</primary></indexterm>
+         <indexterm><primary>unused imports, warning</primary></indexterm>
+         <indexterm><primary>imports, unused</primary></indexterm>
 
-<VarListEntry>
-<Term><Option>-fwarn-duplicate-exports</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-duplicate-exports option</Primary></IndexTerm>
-<IndexTerm><Primary>duplicate exports, warning</Primary></IndexTerm>
-<IndexTerm><Primary>export lists, duplicates</Primary></IndexTerm>
-Have the compiler warn about duplicate entries in export lists. This
-is useful information if you maintain large export lists, and want to
-avoid the continued export of a definition after you've deleted (one)
-mention of it in the export list.
-</Para>
-
-<Para>
-This option is on by default.
-</Para>
-</ListItem>
-</VarListEntry>
+         <para>Report any objects that are explicitly imported but
+         never used.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-fwarn-type-defaults</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-type-defaults option</Primary></IndexTerm>
-<IndexTerm><Primary>defaulting mechanism, warning</Primary></IndexTerm>
-Have the compiler warn/inform you where in your source the Haskell
-defaulting mechanism for numeric types kicks in. This is useful
-information when converting code from a context that assumed one
-default into one with another, e.g., the `default default' for Haskell
-1.4 caused the otherwise unconstrained value <Constant>1</Constant> to be given
-the type <Literal>Int</Literal>, whereas Haskell 98 defaults it to
-<Literal>Integer</Literal>.  This may lead to differences in performance and
-behaviour, hence the usefulness of being non-silent about this.
-</Para>
-
-<Para>
-This warning is off by default.
-</Para>
-</ListItem>
-</VarListEntry>
+      <varlistentry>
+       <term><option>-fwarn-unused-matches</option>:</term>
+       <listitem>
+         <indexterm><primary>-fwarn-unused-matches option</primary></indexterm>
+         <indexterm><primary>unused matches, warning</primary></indexterm>
+         <indexterm><primary>matches, unused</primary></indexterm>
+
+         <para>Report all unused variables which arise from pattern
+          matches, including patterns consisting of a single variable.
+          For instance <literal>f x y = []</literal> would report
+          <VarName>x</VarName> and <VarName>y</VarName> as unused.  To
+          eliminate the warning, all unused variables can be replaced
+          with wildcards.</para>
+       </listitem>
+      </varlistentry>
 
-<VarListEntry>
-<Term><Option>-fwarn-missing-signatures</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fwarn-missing-signatures option</Primary></IndexTerm>
-<IndexTerm><Primary>type signatures, missing</Primary></IndexTerm>
-If you would like GHC to check that every top-level function/value has
-a type signature, use the <Option>-fwarn-missing-signatures</Option> option.  This
-option is off by default.
-</Para>
-</ListItem>
-</VarListEntry>
-</VariableList>
-</Para>
+    </VariableList>
 
-<Para>
-If you're feeling really paranoid, the <Option>-dcore-lint</Option>
-option<IndexTerm><Primary>-dcore-lint option</Primary></IndexTerm> is a good choice.  It turns on
-heavyweight intra-pass sanity-checking within GHC.  (It checks GHC's
-sanity, not yours.)
-</Para>
+    <para>If you're feeling really paranoid, the
+    <option>-dcore-lint</option> option<indexterm><primary>-dcore-lint
+    option</primary></indexterm> is a good choice.  It turns on
+    heavyweight intra-pass sanity-checking within GHC.  (It checks
+    GHC's sanity, not yours.)</para>
 
-</Sect1>
+  </sect1>
 
 <Sect1 id="separate-compilation">
 <Title>Separate compilation
 </Title>
 
-<Para>
-<IndexTerm><Primary>separate compilation</Primary></IndexTerm>
-<IndexTerm><Primary>recompilation checker</Primary></IndexTerm>
-<IndexTerm><Primary>make and recompilation</Primary></IndexTerm>
+<para>
+<indexterm><primary>separate compilation</primary></indexterm>
+<indexterm><primary>recompilation checker</primary></indexterm>
+<indexterm><primary>make and recompilation</primary></indexterm>
 This section describes how GHC supports separate compilation.
-</Para>
+</para>
 
 <Sect2 id="hi-files">
 <Title>Interface files
 </Title>
 
-<Para>
-<IndexTerm><Primary>interface files</Primary></IndexTerm>
-<IndexTerm><Primary>.hi files</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>interface files</primary></indexterm>
+<indexterm><primary>.hi files</primary></indexterm>
+</para>
 
-<Para>
-When GHC compiles a source file <Filename>F</Filename> which contains a module <Literal>A</Literal>, say,
+<para>
+When GHC compiles a source file <Filename>F</Filename> which contains a module <literal>A</literal>, say,
 it generates an object <Filename>F.o</Filename>, <Emphasis>and</Emphasis> a companion <Emphasis>interface
 file</Emphasis> <Filename>A.hi</Filename>.  The interface file is not intended for human
 consumption, as you'll see if you take a look at one.  It's merely
 there to help the compiler compile other modules in the same program.
-</Para>
+</para>
 
-<Para>
+<para>
 NOTE: Having the name of the interface file follow the module name and
 not the file name, means that working with tools such as <Command>make</Command>
 become harder. <Command>make</Command> implicitly assumes that any output files
@@ -805,263 +1230,263 @@ produced by processing a translation unit will have file names that
 can be derived from the file name of the translation unit.  For
 instance, pattern rules becomes unusable.  For this reason, we
 recommend you stick to using the same file name as the module name.
-</Para>
-
-<Para>
-The interface file for <Literal>A</Literal> contains information needed by the compiler
-when it compiles any module <Literal>B</Literal> that imports <Literal>A</Literal>, whether directly or
-indirectly.  When compiling <Literal>B</Literal>, GHC will read <Filename>A.hi</Filename> to find the
-details that it needs to know about things defined in <Literal>A</Literal>.
-</Para>
-
-<Para>
-Furthermore, when compiling module <Literal>C</Literal> which imports <Literal>B</Literal>, GHC may
-decide that it needs to know something about <Literal>A</Literal>&mdash;for example, <Literal>B</Literal>
-might export a function that involves a type defined in <Literal>A</Literal>.  In this
-case, GHC will go and read <Command>A.hi</Command> even though <Literal>C</Literal> does not explicitly
-import <Literal>A</Literal> at all.
-</Para>
-
-<Para>
+</para>
+
+<para>
+The interface file for <literal>A</literal> contains information needed by the compiler
+when it compiles any module <literal>B</literal> that imports <literal>A</literal>, whether directly or
+indirectly.  When compiling <literal>B</literal>, GHC will read <Filename>A.hi</Filename> to find the
+details that it needs to know about things defined in <literal>A</literal>.
+</para>
+
+<para>
+Furthermore, when compiling module <literal>C</literal> which imports <literal>B</literal>, GHC may
+decide that it needs to know something about <literal>A</literal>&mdash;for example, <literal>B</literal>
+might export a function that involves a type defined in <literal>A</literal>.  In this
+case, GHC will go and read <Command>A.hi</Command> even though <literal>C</literal> does not explicitly
+import <literal>A</literal> at all.
+</para>
+
+<para>
 The interface file may contain all sorts of things that aren't
-explicitly exported from <Literal>A</Literal> by the programmer.  For example, even
+explicitly exported from <literal>A</literal> by the programmer.  For example, even
 though a data type is exported abstractly, <Filename>A.hi</Filename> will contain the
 full data type definition.  For small function definitions, <Filename>A.hi</Filename>
 will contain the complete definition of the function.  For bigger
 functions, <Filename>A.hi</Filename> will contain strictness information about the
 function.  And so on.  GHC puts much more information into <Filename>.hi</Filename> files
-when optimisation is turned on with the <Option>-O</Option> flag.  Without <Option>-O</Option> it
-puts in just the minimum; with <Option>-O</Option> it lobs in a whole pile of stuff.
-<IndexTerm><Primary>optimsation, effect on .hi files</Primary></IndexTerm>
-</Para>
+when optimisation is turned on with the <option>-O</option> flag.  Without <option>-O</option> it
+puts in just the minimum; with <option>-O</option> it lobs in a whole pile of stuff.
+<indexterm><primary>optimsation, effect on .hi files</primary></indexterm>
+</para>
 
-<Para>
+<para>
 <Filename>A.hi</Filename> should really be thought of as a compiler-readable version of
 <Filename>A.o</Filename>.  If you use a <Filename>.hi</Filename> file that wasn't generated by the same
 compilation run that generates the <Filename>.o</Filename> file the compiler may assume
-all sorts of incorrect things about <Literal>A</Literal>, resulting in core dumps and
+all sorts of incorrect things about <literal>A</literal>, resulting in core dumps and
 other unpleasant happenings.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="options-finding-imports">
 <Title>Finding interface files
 </Title>
 
-<Para>
-<IndexTerm><Primary>interface files, finding them</Primary></IndexTerm>
-<IndexTerm><Primary>finding interface files</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>interface files, finding them</primary></indexterm>
+<indexterm><primary>finding interface files</primary></indexterm>
+</para>
 
-<Para>
-In your program, you import a module <Literal>Foo</Literal> by saying
-<Literal>import Foo</Literal>.  GHC goes looking for an interface file, <Filename>Foo.hi</Filename>.
+<para>
+In your program, you import a module <literal>Foo</literal> by saying
+<literal>import Foo</literal>.  GHC goes looking for an interface file, <Filename>Foo.hi</Filename>.
 It has a builtin list of directories (notably including <Filename>.</Filename>) where
 it looks.
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
-<VarListEntry>
-<Term><Option>-i&lt;dirs&gt;</Option></Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-i&lt;dirs&gt; option</Primary></IndexTerm>This flag
+<varlistentry>
+<term><option>-i&lt;dirs&gt;</option></term>
+<listitem>
+<para>
+<indexterm><primary>-i&lt;dirs&gt; option</primary></indexterm>This flag
 prepends a colon-separated list of <Filename>dirs</Filename> to the &ldquo;import
 directories&rdquo; list.
 See also <XRef LinkEnd="recomp"> for the significance of using
-relative and absolute pathnames in the <Option>-i</Option> list.
-</Para>
-</ListItem>
-</VarListEntry>
-
-<VarListEntry>
-<Term><Option>-i</Option></Term>
-<ListItem>
-<Para>
+relative and absolute pathnames in the <option>-i</option> list.
+</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term><option>-i</option></term>
+<listitem>
+<para>
 resets the &ldquo;import directories&rdquo; list back to nothing.
-</Para>
-</ListItem>
-</VarListEntry>
-
-<VarListEntry>
-<Term><Option>-fno-implicit-prelude</Option></Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fno-implicit-prelude option</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term><option>-fno-implicit-prelude</option></term>
+<listitem>
+<para>
+<indexterm><primary>-fno-implicit-prelude option</primary></indexterm>
 GHC normally imports <Filename>Prelude.hi</Filename> files for you.  If you'd rather it
-didn't, then give it a <Option>-fno-implicit-prelude</Option> option.  
-The idea is that you can then import a Prelude of your own.  (But don't call it <Literal>Prelude</Literal>;
+didn't, then give it a <option>-fno-implicit-prelude</option> option.  
+The idea is that you can then import a Prelude of your own.  (But don't call it <literal>Prelude</literal>;
 the Haskell module namespace is flat, and you must not conflict with any Prelude module.)
-</Para>
-<Para>
+</para>
+<para>
 Even though you have not imported the Prelude, all the built-in syntax still refers to 
 the built-in Haskell Prelude types and values, as specified by the Haskell Report.  
-For example, the type <Literal>[Int]</Literal>
-still means <Literal>Prelude.[] Int</Literal>; tuples continue to refer to the standard Prelude
-tuples; the translation for list comprehensions continues to use <Literal>Prelude.map</Literal> etc.
-</Para>
-<Para> With one group of exceptions!  You may want to define your own numeric class hierarchy.
-It completely defeats that purpose if the literal "1" means "<Literal>Prelude.fromInteger 1</Literal>",
-which is what the Haskell Report specifies.  So the <Option>-fno-implicit-prelude</Option> flag causes
+For example, the type <literal>[Int]</literal>
+still means <literal>Prelude.[] Int</literal>; tuples continue to refer to the standard Prelude
+tuples; the translation for list comprehensions continues to use <literal>Prelude.map</literal> etc.
+</para>
+<para> With one group of exceptions!  You may want to define your own numeric class hierarchy.
+It completely defeats that purpose if the literal "1" means "<literal>Prelude.fromInteger 1</literal>",
+which is what the Haskell Report specifies.  So the <option>-fno-implicit-prelude</option> flag causes
 the following pieces of built-in syntax to refer to whatever is in scope, not the Prelude versions:
 <ItemizedList>
-<ListItem>
-<Para>
-Integer and fractional literals mean "<Literal>fromInteger 1</Literal>" and "<Literal>fromRational 3.2</Literal>",
+<listitem>
+<para>
+Integer and fractional literals mean "<literal>fromInteger 1</literal>" and "<literal>fromRational 3.2</literal>",
 not the Prelude-qualified versions; both in expressions and in patterns.
-</Para>
-</ListItem>
-<ListItem>
-<Para>
-Negation (e.g. "<Literal>- (f x)</Literal>") means "<Literal>negate (f x)</Literal>" (not <Literal>Prelude.negate</Literal>).
-</Para>
-</ListItem>
-<ListItem>
-<Para>
-In an n+k pattern, the standard Prelude <Literal>Ord</Literal> class is used for comparison, but the 
+</para>
+</listitem>
+<listitem>
+<para>
+Negation (e.g. "<literal>- (f x)</literal>") means "<literal>negate (f x)</literal>" (not <literal>Prelude.negate</literal>).
+</para>
+</listitem>
+<listitem>
+<para>
+In an n+k pattern, the standard Prelude <literal>Ord</literal> class is used for comparison, but the 
 necessary subtraction uses 
-whatever "<Literal>(-)</Literal>" is in scope (not "<Literal>Prelude.(-)</Literal>").
-</Para>
-</ListItem>
+whatever "<literal>(-)</literal>" is in scope (not "<literal>Prelude.(-)</literal>").
+</para>
+</listitem>
 </ItemizedList>
-</Para>
-</ListItem>
-</VarListEntry>
-
-<VarListEntry>
-<Term><Option>-I&lt;dir&gt;</Option></Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-I&lt;dir&gt; option</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term><option>-I&lt;dir&gt;</option></term>
+<listitem>
+<para>
+<indexterm><primary>-I&lt;dir&gt; option</primary></indexterm>
 Once a Haskell module has been compiled to C (<Filename>.hc</Filename> file), you may
 wish to specify where GHC tells the C compiler to look for <Filename>.h</Filename> files.
-(Or, if you are using the <Option>-cpp</Option> option<IndexTerm><Primary>-cpp option</Primary></IndexTerm>, where
-it tells the C pre-processor to look&hellip;)  For this purpose, use a <Option>-I</Option>
+(Or, if you are using the <option>-cpp</option> option<indexterm><primary>-cpp option</primary></indexterm>, where
+it tells the C pre-processor to look&hellip;)  For this purpose, use a <option>-I</option>
 option in the usual C-ish way.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 
 </VariableList>
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="hi-options">
 <Title>Other options related to interface files
 </Title>
 
-<Para>
-<IndexTerm><Primary>interface files, options</Primary></IndexTerm>
+<para>
+<indexterm><primary>interface files, options</primary></indexterm>
 The interface output may be directed to another file
-<Filename>bar2/Wurble.iface</Filename> with the option <Option>-ohi bar2/Wurble.iface</Option><IndexTerm><Primary>-ohi
-&lt;file&gt; option</Primary></IndexTerm> (not recommended).
-</Para>
+<Filename>bar2/Wurble.iface</Filename> with the option <option>-ohi bar2/Wurble.iface</option><indexterm><primary>-ohi
+&lt;file&gt; option</primary></indexterm> (not recommended).
+</para>
 
-<Para>
-To avoid generating an interface file at all, use a <Option>-nohi</Option>
-option.<IndexTerm><Primary>-nohi option</Primary></IndexTerm>
-</Para>
+<para>
+To avoid generating an interface file at all, use a <option>-nohi</option>
+option.<indexterm><primary>-nohi option</primary></indexterm>
+</para>
 
-<Para>
+<para>
 The compiler does not overwrite an existing <Filename>.hi</Filename> interface file if
 the new one is byte-for-byte the same as the old one; this is friendly
 to <Command>make</Command>.  When an interface does change, it is often enlightening to
-be informed.  The <Option>-hi-diffs</Option><IndexTerm><Primary>-hi-diffs option</Primary></IndexTerm> option will
+be informed.  The <option>-hi-diffs</option><indexterm><primary>-hi-diffs option</primary></indexterm> option will
 make GHC run <Command>diff</Command> on the old and new <Filename>.hi</Filename> files. You can also
 record the difference in the interface file itself, the
-<Option>-keep-hi-diffs</Option><IndexTerm><Primary>-keep-hi-diffs</Primary></IndexTerm> option takes care of that.
-</Para>
+<option>-keep-hi-diffs</option><indexterm><primary>-keep-hi-diffs</primary></indexterm> option takes care of that.
+</para>
 
-<Para>
+<para>
 The <Filename>.hi</Filename> files from GHC contain &ldquo;usage&rdquo; information which changes
 often and uninterestingly.  If you really want to see these changes
 reported, you need to use the
-<Option>-hi-diffs-with-usages</Option><IndexTerm><Primary>-hi-diffs-with-usages option</Primary></IndexTerm>
+<option>-hi-diffs-with-usages</option><indexterm><primary>-hi-diffs-with-usages option</primary></indexterm>
 option.
-</Para>
+</para>
 
-<Para>
+<para>
 Interface files are normally jammed full of compiler-produced
 <Emphasis>pragmas</Emphasis>, which record arities, strictness info, etc.  If you
 think these pragmas are messing you up (or you are doing some kind of
 weird experiment), you can tell GHC to ignore them with the
-<Option>-fignore-interface-pragmas</Option><IndexTerm><Primary>-fignore-interface-pragmas
-option</Primary></IndexTerm> option.
-</Para>
+<option>-fignore-interface-pragmas</option><indexterm><primary>-fignore-interface-pragmas
+option</primary></indexterm> option.
+</para>
 
-<Para>
+<para>
 When compiling without optimisations on, the compiler is extra-careful
 about not slurping in data constructors and instance declarations that
 it will not need. If you believe it is getting it wrong and not
 importing stuff which you think it should, this optimisation can be
-turned off with <Option>-fno-prune-tydecls</Option> and <Option>-fno-prune-instdecls</Option>.
-<IndexTerm><Primary>-fno-prune-tydecls option</Primary></IndexTerm><IndexTerm><Primary>-fno-prune-instdecls
-option</Primary></IndexTerm>
-</Para>
+turned off with <option>-fno-prune-tydecls</option> and <option>-fno-prune-instdecls</option>.
+<indexterm><primary>-fno-prune-tydecls option</primary></indexterm><indexterm><primary>-fno-prune-instdecls
+option</primary></indexterm>
+</para>
 
-<Para>
+<para>
 See also <XRef LinkEnd="options-linker">, which describes how the linker finds standard
 Haskell libraries.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="recomp">
 <Title>The recompilation checker
 </Title>
 
-<IndexTerm><Primary>recompilation checker</Primary></IndexTerm>
+<indexterm><primary>recompilation checker</primary></indexterm>
 
-<Para>
+<para>
 <variablelist>
-<VarListEntry>
-<Term><Option>-recomp</Option></Term>
-<IndexTerm><Primary><option>-recomp</option> option</Primary></IndexTerm>
-<ListItem>
-<Para>
+<varlistentry>
+<term><option>-recomp</option></term>
+<indexterm><primary><option>-recomp</option> option</primary></indexterm>
+<listitem>
+<para>
 (On by default) Turn on recompilation checking.  This will stop
 compilation early, leaving an existing <filename>.o</filename> file in
 place, if it can be determined that the module does not need to be
 recompiled.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-no-recomp</Option></Term>
-<IndexTerm><Primary><option>-recomp</option> option</Primary></IndexTerm>
-<ListItem>
-<Para>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-no-recomp</option></term>
+<indexterm><primary><option>-recomp</option> option</primary></indexterm>
+<listitem>
+<para>
 Turn off recompilation checking.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-<Para>
+<para>
 In the olden days, GHC compared the newly-generated
 <Filename>.hi</Filename> file with the previous version; if they were
 identical, it left the old one alone and didn't change its
 modification date.  In consequence, importers of a module with an
 unchanged output <Filename>.hi</Filename> file were not recompiled.
-</Para>
+</para>
 
-<Para>
+<para>
 This doesn't work any more.  In our earlier example, module
-<Literal>C</Literal> does not import module <Literal>A</Literal>
+<literal>C</literal> does not import module <literal>A</literal>
 directly, yet changes to <Filename>A.hi</Filename> should force a
-recompilation of <Literal>C</Literal>.  And some changes to
-<Literal>A</Literal> (changing the definition of a function that
-appears in an inlining of a function exported by <Literal>B</Literal>,
+recompilation of <literal>C</literal>.  And some changes to
+<literal>A</literal> (changing the definition of a function that
+appears in an inlining of a function exported by <literal>B</literal>,
 say) may conceivably not change <Filename>B.hi</Filename> one jot.  So
 now&hellip;
-</Para>
+</para>
 
-<Para>
+<para>
 GHC keeps a version number on each interface file, and on each type
 signature within the interface file.  It also keeps in every interface
 file a list of the version numbers of everything it used when it last
@@ -1075,30 +1500,30 @@ time with the version numbers on the things it needed last time
 they are all the same it stops compiling rather early in the process
 saying &ldquo;Compilation IS NOT required&rdquo;.  What a beautiful
 sight!
-</Para>
+</para>
 
-<Para>
+<para>
 Patrick Sansom had a workshop paper about how all this is done (though
 the details have changed quite a bit). <ULink URL="mailto:sansom@dcs.gla.ac.uk">Ask him</ULink> if you want a copy.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 
 <Sect2 id="using-make">
 <Title>Using <Command>make</Command>
 </Title>
 
-<Para>
-<IndexTerm><Primary><literal>make</literal></Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary><literal>make</literal></primary></indexterm>
+</para>
 
-<Para>
+<para>
 It is reasonably straightforward to set up a <Filename>Makefile</Filename> to use with GHC, assuming you name your source files the same as your modules.
 Thus:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 HC      = ghc
@@ -1128,53 +1553,53 @@ Foo.o Foo.hc Foo.s    : Baz.hi          # Foo imports Baz
 Main.o Main.hc Main.s : Foo.hi Baz.hi   # Main imports Foo and Baz
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 (Sophisticated <Command>make</Command> variants may achieve some of the above more
 elegantly.  Notably, <Command>gmake</Command>'s pattern rules let you write the more
 comprehensible:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 %.o : %.lhs
         $(HC) -c $&#60; $(HC_OPTS)
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 What we've shown should work with any <Command>make</Command>.)
-</Para>
+</para>
 
-<Para>
-Note the cheesy <Literal>.o.hi</Literal> rule: It records the dependency of the
+<para>
+Note the cheesy <literal>.o.hi</literal> rule: It records the dependency of the
 interface (<Filename>.hi</Filename>) file on the source.  The rule says a <Filename>.hi</Filename> file can
 be made from a <Filename>.o</Filename> file by doing&hellip;nothing.  Which is true.
-</Para>
+</para>
 
-<Para>
+<para>
 Note the inter-module dependencies at the end of the Makefile, which
 take the form
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 Foo.o Foo.hc Foo.s    : Baz.hi          # Foo imports Baz
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
-They tell <Command>make</Command> that if any of <Literal>Foo.o</Literal>, <Literal>Foo.hc</Literal> or <Literal>Foo.s</Literal> have an
-earlier modification date than <Literal>Baz.hi</Literal>, then the out-of-date file
-must be brought up to date.  To bring it up to date, <Literal>make</Literal> looks for
+<para>
+They tell <Command>make</Command> that if any of <literal>Foo.o</literal>, <literal>Foo.hc</literal> or <literal>Foo.s</literal> have an
+earlier modification date than <literal>Baz.hi</literal>, then the out-of-date file
+must be brought up to date.  To bring it up to date, <literal>make</literal> looks for
 a rule to do so; one of the preceding suffix rules does the job
 nicely.
-</Para>
+</para>
 
     </sect2>
 
@@ -1183,8 +1608,8 @@ nicely.
       <indexterm><primary>dependencies in Makefiles</primary></indexterm>
       <indexterm><primary>Makefile dependencies</primary></indexterm>
 
-      <para>Putting inter-dependencies of the form <Literal>Foo.o :
-      Bar.hi</Literal> into your <Filename>Makefile</Filename> by hand
+      <para>Putting inter-dependencies of the form <literal>Foo.o :
+      Bar.hi</literal> into your <Filename>Makefile</Filename> by hand
       is rather error-prone.  Don't worry, GHC has support for
       automatically generating the required dependencies.  Add the
       following to your <Filename>Makefile</Filename>:</para>
@@ -1195,13 +1620,13 @@ depend :
 </ProgramListing>
 
       <para>Now, before you start compiling, and any time you change
-      the <Literal>imports</Literal> in your program, do <Command>make
+      the <literal>imports</literal> in your program, do <Command>make
       depend</Command> before you do <Command>make
       cool&lowbar;pgm</Command>.  <Command>ghc -M</Command> will append
       the needed dependencies to your
-      <Filename>Makefile</Filename>.</Para>
+      <Filename>Makefile</Filename>.</para>
 
-      <para>In general, if module <Literal>A</Literal> contains the
+      <para>In general, if module <literal>A</literal> contains the
       line
 
 <programlisting>
@@ -1237,9 +1662,9 @@ A.o : B.hi-boot
       dependencies, and then concatenates them onto the end of
       <Filename>makefile</Filename> (or <Filename>Makefile</Filename>
       if <Filename>makefile</Filename> doesn't exist) bracketed by the
-      lines "<Literal>&num; DO NOT DELETE: Beginning of Haskell
-      dependencies</Literal>" and "<Literal>&num; DO NOT DELETE: End
-      of Haskell dependencies</Literal>".  If these lines already
+      lines "<literal>&num; DO NOT DELETE: Beginning of Haskell
+      dependencies</literal>" and "<literal>&num; DO NOT DELETE: End
+      of Haskell dependencies</literal>".  If these lines already
       exist in the <Filename>makefile</Filename>, then the old
       dependencies are deleted first.</para>
 
@@ -1276,7 +1701,7 @@ ghc -M -optdep-f optdep.depend ...
             <Filename>Makefile</Filename>.  If
             <Filename>blah</Filename> doesn't exist,
             <Command>mkdependHS</Command> creates it.  We often use
-            <Option>-f .depend</Option> to put the dependencies in
+            <option>-f .depend</option> to put the dependencies in
             <Filename>.depend</Filename> and then
             <Command>include</Command> the file
             <Filename>.depend</Filename> into
@@ -1288,9 +1713,9 @@ ghc -M -optdep-f optdep.depend ...
          <term><option>-o &lt;osuf&gt;</option></term>
          <listitem>
            <para>Use <Filename>.&lt;osuf&gt;</Filename> as the
-            "target file" suffix ( default: <Literal>o</Literal>).
-            Multiple <Option>-o</Option> flags are permitted (GHC2.05
-            onwards).  Thus "<Option>-o hc -o o</Option>" will
+            "target file" suffix ( default: <literal>o</literal>).
+            Multiple <option>-o</option> flags are permitted (GHC2.05
+            onwards).  Thus "<option>-o hc -o o</option>" will
             generate dependencies for <Filename>.hc</Filename> and
             <Filename>.o</Filename> files.</para>
          </listitem>
@@ -1304,10 +1729,10 @@ ghc -M -optdep-f optdep.depend ...
             <Filename>.&lt;suf&gt;&lowbar;&lt;osuf&gt;</Filename>
             depend on interface files with suffix
             <Filename>.&lt;suf&gt;&lowbar;hi</Filename>, or (for
-            <Literal>&lcub;-&num; SOURCE &num;-&rcub;</Literal>
+            <literal>&lcub;-&num; SOURCE &num;-&rcub;</literal>
             imports) on <Filename>.hi-boot</Filename>.  Multiple
-            <Option>-s</Option> flags are permitted.  For example,
-            <Option>-o hc -s a -s b</Option> will make dependencies
+            <option>-s</option> flags are permitted.  For example,
+            <option>-o hc -s a -s b</option> will make dependencies
             for <Filename>.hc</Filename> on <Filename>.hi</Filename>,
             <Filename>.a&lowbar;hc</Filename> on
             <Filename>.a&lowbar;hi</Filename>, and
@@ -1345,7 +1770,7 @@ ghc -M -optdep-f optdep.depend ...
        <varlistentry>
          <term><option>-xdirs</option></term>
          <listitem>
-           <para>same as <Option>--exclude-directory</Option>.</para>
+           <para>same as <option>--exclude-directory</option>.</para>
          </listitem>
        </varlistentry>
 
@@ -1355,7 +1780,7 @@ ghc -M -optdep-f optdep.depend ...
            <para>Regard <Filename>&lt;file&gt;</Filename> as not
             "stable"; i.e., generate dependencies on it (if any). This
             option is normally used in conjunction with the
-            <Option>--exclude-directory</Option> option.</para>
+            <option>--exclude-directory</option> option.</para>
          </listitem>
        </varlistentry>
 
@@ -1364,31 +1789,31 @@ ghc -M -optdep-f optdep.depend ...
          <listitem>
            <para>Regard prelude libraries as unstable, i.e., generate
             dependencies on the prelude modules used (including
-            <Literal>Prelude</Literal>).  This option is normally only
+            <literal>Prelude</literal>).  This option is normally only
             used by the various system libraries. If a
-            <Option>-package</Option> option is used, dependencies will
+            <option>-package</option> option is used, dependencies will
             also be generated on the library's interfaces.</para>
          </listitem>
        </varlistentry>
       </variablelist>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="mutual-recursion">
 <Title>How to compile mutually recursive modules
 </Title>
 
-<Para>
-<IndexTerm><Primary>module system, recursion</Primary></IndexTerm>
-<IndexTerm><Primary>recursion, between modules</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>module system, recursion</primary></indexterm>
+<indexterm><primary>recursion, between modules</primary></indexterm>
+</para>
 
-<Para>
+<para>
 Currently, the compiler does not have proper support for dealing with
 mutually recursive modules:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 module A where
@@ -1410,42 +1835,42 @@ g :: TA -&#62; TB
 g (MkTA x) = MkTB x
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 When compiling either module A and B, the compiler will try (in vain)
 to look for the interface file of the other. So, to get mutually
 recursive modules off the ground, you need to hand write an interface
 file for A or B, so as to break the loop.  These hand-written
-interface files are called <Literal>hi-boot</Literal> files, and are placed in a file
-called <Filename>&lt;module&gt;.hi-boot</Filename>.  To import from an <Literal>hi-boot</Literal> file instead
+interface files are called <literal>hi-boot</literal> files, and are placed in a file
+called <Filename>&lt;module&gt;.hi-boot</Filename>.  To import from an <literal>hi-boot</literal> file instead
 of the standard <Filename>.hi</Filename> file, use the following syntax in the importing module:
-<IndexTerm><Primary>hi-boot files</Primary></IndexTerm>
-<IndexTerm><Primary>importing, hi-boot files</Primary></IndexTerm>
-</Para>
+<indexterm><primary>hi-boot files</primary></indexterm>
+<indexterm><primary>importing, hi-boot files</primary></indexterm>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 import {-# SOURCE #-} A
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 The hand-written interface need only contain the bare minimum of
 information needed to get the bootstrapping process started.  For
 example, it doesn't need to contain declarations for <Emphasis>everything</Emphasis>
-that module <Literal>A</Literal> exports, only the things required by the module that
-imports <Literal>A</Literal> recursively.
-</Para>
+that module <literal>A</literal> exports, only the things required by the module that
+imports <literal>A</literal> recursively.
+</para>
 
-<Para>
+<para>
 For the example at hand, the boot interface file for A would look like
 the following:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 __interface A 1 404 where
@@ -1453,44 +1878,44 @@ __export A TA{MkTA} ;
 1 newtype TA = MkTA PrelBase.Int ;
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 The syntax is essentially the same as a normal <Filename>.hi</Filename> file
 (unfortunately), but you can usually tailor an existing <Filename>.hi</Filename> file to
 make a <Filename>.hi-boot</Filename> file.
-</Para>
+</para>
 
-<Para>
-Notice that we only put the declaration for the newtype <Literal>TA</Literal> in the
-<Literal>hi-boot</Literal> file, not the signature for <Function>f</Function>, since <Function>f</Function> isn't used by
-<Literal>B</Literal>.
-</Para>
+<para>
+Notice that we only put the declaration for the newtype <literal>TA</literal> in the
+<literal>hi-boot</literal> file, not the signature for <Function>f</Function>, since <Function>f</Function> isn't used by
+<literal>B</literal>.
+</para>
 
-<Para>
+<para>
 The number &ldquo;1&rdquo; after &ldquo;&lowbar;&lowbar;interface A&rdquo; gives the version number of module A;
 it is incremented whenever anything in A's interface file changes.  The &ldquo;404&rdquo; is
 the version number of the interface file <Emphasis>syntax</Emphasis>; we change it when
 we change the syntax of interface files so that you get a better error message when
 you try to read an old-format file with a new-format compiler.
-</Para>
+</para>
 
-<Para>
+<para>
 The number &ldquo;1&rdquo; at the beginning of a declaration is the <Emphasis>version
 number</Emphasis> of that declaration: for the purposes of <Filename>.hi-boot</Filename> files
 these can all be set to 1.  All names must be fully qualified with the
 <Emphasis>original</Emphasis> module that an object comes from: for example, the
-reference to <Literal>Int</Literal> in the interface for <Literal>A</Literal> comes from <Literal>PrelBase</Literal>,
+reference to <literal>Int</literal> in the interface for <literal>A</literal> comes from <literal>PrelBase</literal>,
 which is a module internal to GHC's prelude.  It's a pain, but that's
 the way it is.
-</Para>
+</para>
 
-<Para>
+<para>
 If you want an hi-boot file to export a data type, but you don't want to give its constructors
 (because the constructors aren't used by the SOURCE-importing module), you can write simply:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 __interface A 1 404 where
@@ -1498,19 +1923,19 @@ __export A TA;
 1 data TA
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 (You must write all the type parameters, but leave out the '=' and everything that follows it.)
-</Para>
+</para>
 
-<Para>
+<para>
 <Emphasis>Note:</Emphasis> This is all a temporary solution, a version of the
 compiler that handles mutually recursive modules properly without the manual
 construction of interface files, is (allegedly) in the works.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 </Sect1>
 
@@ -1872,291 +2297,291 @@ construction of interface files, is (allegedly) in the works.
 <Title>Optimisation (code improvement)
 </Title>
 
-<Para>
-<IndexTerm><Primary>optimisation (GHC)</Primary></IndexTerm>
-<IndexTerm><Primary>improvement, code (GHC)</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>optimisation (GHC)</primary></indexterm>
+<indexterm><primary>improvement, code (GHC)</primary></indexterm>
+</para>
 
-<Para>
-The <Option>-O*</Option> options specify convenient &ldquo;packages&rdquo; of optimisation
-flags; the <Option>-f*</Option> options described later on specify
-<Emphasis>individual</Emphasis> optimisations to be turned on/off; the <Option>-m*</Option>
+<para>
+The <option>-O*</option> options specify convenient &ldquo;packages&rdquo; of optimisation
+flags; the <option>-f*</option> options described later on specify
+<Emphasis>individual</Emphasis> optimisations to be turned on/off; the <option>-m*</option>
 options specify <Emphasis>machine-specific</Emphasis> optimisations to be turned
 on/off.
-</Para>
+</para>
 
 <Sect2 id="optimise-pkgs">
-<Title><Option>-O*</Option>: convenient &ldquo;packages&rdquo; of optimisation flags.
+<Title><option>-O*</option>: convenient &ldquo;packages&rdquo; of optimisation flags.
 </Title>
 
-<Para>
-<IndexTerm><Primary>-O options</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>-O options</primary></indexterm>
+</para>
 
-<Para>
+<para>
 There are <Emphasis>many</Emphasis> options that affect the quality of code
 produced by GHC.  Most people only have a general goal, something like
 &ldquo;Compile quickly&rdquo; or &ldquo;Make my program run like greased lightning.&rdquo;
 The following &ldquo;packages&rdquo; of optimisations (or lack thereof) should
 suffice.
-</Para>
+</para>
 
-<Para>
-Once you choose a <Option>-O*</Option> &ldquo;package,&rdquo; stick with it&mdash;don't chop and
+<para>
+Once you choose a <option>-O*</option> &ldquo;package,&rdquo; stick with it&mdash;don't chop and
 change.  Modules' interfaces <Emphasis>will</Emphasis> change with a shift to a new
-<Option>-O*</Option> option, and you may have to recompile a large chunk of all
+<option>-O*</option> option, and you may have to recompile a large chunk of all
 importing modules before your program can again be run
 safely (see <XRef LinkEnd="recomp">).
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
-<VarListEntry>
-<Term>No <Option>-O*</Option>-type option specified:</Term>
-<IndexTerm><Primary>-O* not specified</Primary></IndexTerm>
-<ListItem>
-<Para>
+<varlistentry>
+<term>No <option>-O*</option>-type option specified:</term>
+<indexterm><primary>-O* not specified</primary></indexterm>
+<listitem>
+<para>
 This is taken to mean: &ldquo;Please compile quickly; I'm not over-bothered
 about compiled-code quality.&rdquo;  So, for example: <Command>ghc -c Foo.hs</Command>
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-O</Option> or <Option>-O1</Option>:</Term>
-<IndexTerm><Primary>-O option</Primary></IndexTerm>
-<IndexTerm><Primary>-O1 option</Primary></IndexTerm>
-<IndexTerm><Primary>optimise</Primary><secondary>normally</secondary></IndexTerm>
-<ListItem>
-<Para>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-O</option> or <option>-O1</option>:</term>
+<indexterm><primary>-O option</primary></indexterm>
+<indexterm><primary>-O1 option</primary></indexterm>
+<indexterm><primary>optimise</primary><secondary>normally</secondary></indexterm>
+<listitem>
+<para>
 Means: &ldquo;Generate good-quality code without taking too long about
 it.&rdquo; Thus, for example: <Command>ghc -c -O Main.lhs</Command>
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-O2</Option>:</Term>
-<IndexTerm><Primary>-O2 option</Primary></IndexTerm>
-<IndexTerm><Primary>optimise</Primary><secondary>aggressively</secondary></IndexTerm>
-<ListItem>
-<Para>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-O2</option>:</term>
+<indexterm><primary>-O2 option</primary></indexterm>
+<indexterm><primary>optimise</primary><secondary>aggressively</secondary></indexterm>
+<listitem>
+<para>
 Means: &ldquo;Apply every non-dangerous optimisation, even if it means
 significantly longer compile times.&rdquo;
-</Para>
+</para>
 
-<Para>
+<para>
 The avoided &ldquo;dangerous&rdquo; optimisations are those that can make
 runtime or space <Emphasis>worse</Emphasis> if you're unlucky.  They are
 normally turned on or off individually.
-</Para>
-
-<Para>
-At the moment, <Option>-O2</Option> is <Emphasis>unlikely</Emphasis> to produce
-better code than <Option>-O</Option>.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-O2-for-C</Option>:</Term>
-<IndexTerm><Primary>-O2-for-C option</Primary></IndexTerm>
-<IndexTerm><Primary>gcc, invoking with -O2</Primary></IndexTerm>
-<ListItem>
-<Para>
-Says to run GCC with <Option>-O2</Option>, which may be worth a few percent in
-execution speed.  Don't forget <Option>-fvia-C</Option>, lest you use the native-code
+</para>
+
+<para>
+At the moment, <option>-O2</option> is <Emphasis>unlikely</Emphasis> to produce
+better code than <option>-O</option>.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-O2-for-C</option>:</term>
+<indexterm><primary>-O2-for-C option</primary></indexterm>
+<indexterm><primary>gcc, invoking with -O2</primary></indexterm>
+<listitem>
+<para>
+Says to run GCC with <option>-O2</option>, which may be worth a few percent in
+execution speed.  Don't forget <option>-fvia-C</option>, lest you use the native-code
 generator and bypass GCC altogether!
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-Onot</Option>:</Term>
-<IndexTerm><Primary>-Onot option</Primary></IndexTerm>
-<IndexTerm><Primary>optimising, reset</Primary></IndexTerm>
-<ListItem>
-<Para>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-Onot</option>:</term>
+<indexterm><primary>-Onot option</primary></indexterm>
+<indexterm><primary>optimising, reset</primary></indexterm>
+<listitem>
+<para>
 This option will make GHC &ldquo;forget&rdquo; any
-<Option>-O</Option>ish options it has seen so far.  Sometimes useful;
+<option>-O</option>ish options it has seen so far.  Sometimes useful;
 for example: <Command>make all
 EXTRA&lowbar;HC&lowbar;OPTS=-Onot</Command>.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-Ofile &lt;file&gt;</Option>:</Term>
-<IndexTerm><Primary>-Ofile &lt;file&gt; option</Primary></IndexTerm>
-<IndexTerm><Primary>optimising, customised</Primary></IndexTerm>
-<ListItem>
-<Para>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-Ofile &lt;file&gt;</option>:</term>
+<indexterm><primary>-Ofile &lt;file&gt; option</primary></indexterm>
+<indexterm><primary>optimising, customised</primary></indexterm>
+<listitem>
+<para>
 For those who need <Emphasis>absolute</Emphasis> control over
 <Emphasis>exactly</Emphasis> what options are used (e.g., compiler
 writers, sometimes :-), a list of options can be put in a file and
-then slurped in with <Option>-Ofile</Option>.
-</Para>
+then slurped in with <option>-Ofile</option>.
+</para>
 
-<Para>
+<para>
 In that file, comments are of the
-<Literal>&num;</Literal>-to-end-of-line variety; blank lines and most
+<literal>&num;</literal>-to-end-of-line variety; blank lines and most
 whitespace is ignored.
-</Para>
+</para>
 
-<Para>
-Please ask if you are baffled and would like an example of <Option>-Ofile</Option>!
-</Para>
-</ListItem>
-</VarListEntry>
+<para>
+Please ask if you are baffled and would like an example of <option>-Ofile</option>!
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-<Para>
-At Glasgow, we don't use a <Option>-O*</Option> flag for day-to-day work.  We use
-<Option>-O</Option> to get respectable speed; e.g., when we want to measure
-something.  When we want to go for broke, we tend to use <Option>-O -fvia-C
--O2-for-C</Option> (and we go for lots of coffee breaks).
-</Para>
+<para>
+At Glasgow, we don't use a <option>-O*</option> flag for day-to-day work.  We use
+<option>-O</option> to get respectable speed; e.g., when we want to measure
+something.  When we want to go for broke, we tend to use <option>-O -fvia-C
+-O2-for-C</option> (and we go for lots of coffee breaks).
+</para>
 
-<Para>
-The easiest way to see what <Option>-O</Option> (etc.) &ldquo;really mean&rdquo; is to run with
-<Option>-v</Option>, then stand back in amazement.  Alternatively, just look at the
-<Literal>HsC&lowbar;minus&lt;blah&gt;</Literal> lists in the GHC driver script.
-</Para>
+<para>
+The easiest way to see what <option>-O</option> (etc.) &ldquo;really mean&rdquo; is to run with
+<option>-v</option>, then stand back in amazement.  Alternatively, just look at the
+<literal>HsC&lowbar;minus&lt;blah&gt;</literal> lists in the GHC driver script.
+</para>
 
-</Sect2>
+</sect2>
 
-<Sect2>
-<Title><Option>-f*</Option>: platform-independent flags</Title>
+<sect2>
+<Title><option>-f*</option>: platform-independent flags</Title>
 
-<Para>
-<IndexTerm><Primary>-f* options (GHC)</Primary></IndexTerm>
-<IndexTerm><Primary>-fno-* options (GHC)</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>-f* options (GHC)</primary></indexterm>
+<indexterm><primary>-fno-* options (GHC)</primary></indexterm>
+</para>
 
-<Para>
+<para>
 Flags can be turned <Emphasis>off</Emphasis> individually.  (NB: I hope you have a
-good reason for doing this&hellip;) To turn off the <Option>-ffoo</Option> flag, just use
-the <Option>-fno-foo</Option> flag.<IndexTerm><Primary>-fno-&lt;opt&gt; anti-option</Primary></IndexTerm> So, for
-example, you can say <Option>-O2 -fno-strictness</Option>, which will then drop out
+good reason for doing this&hellip;) To turn off the <option>-ffoo</option> flag, just use
+the <option>-fno-foo</option> flag.<indexterm><primary>-fno-&lt;opt&gt; anti-option</primary></indexterm> So, for
+example, you can say <option>-O2 -fno-strictness</option>, which will then drop out
 any running of the strictness analyser.
-</Para>
+</para>
 
-<Para>
+<para>
 The options you are most likely to want to turn off are:
 
 <ItemizedList>
-<ListItem>
+<listitem>
 
-<Para>
-<Option>-fno-strictness</Option><IndexTerm><Primary>-fno-strictness option</Primary></IndexTerm> (strictness
+<para>
+<option>-fno-strictness</option><indexterm><primary>-fno-strictness option</primary></indexterm> (strictness
 analyser, because it is sometimes slow),
-</Para>
-</ListItem>
-<ListItem>
+</para>
+</listitem>
+<listitem>
 
-<Para>
-<Option>-fno-specialise</Option><IndexTerm><Primary>-fno-specialise option</Primary></IndexTerm> (automatic
+<para>
+<option>-fno-specialise</option><indexterm><primary>-fno-specialise option</primary></indexterm> (automatic
 specialisation of overloaded functions, because it can make your code
 bigger) (US spelling also accepted), and
-</Para>
-</ListItem>
-<ListItem>
+</para>
+</listitem>
+<listitem>
 
-<Para>
-<Option>-fno-cpr-analyse</Option><IndexTerm><Primary>-fno-cpr-analyse option</Primary></IndexTerm> switches off the CPR (constructed product
+<para>
+<option>-fno-cpr-analyse</option><indexterm><primary>-fno-cpr-analyse option</primary></indexterm> switches off the CPR (constructed product
 result) analyser.
-</Para>
-</ListItem>
+</para>
+</listitem>
 
 </ItemizedList>
 
-</Para>
+</para>
 
-<Para>
+<para>
 Should you wish to turn individual flags <Emphasis>on</Emphasis>, you are advised
-to use the <Option>-Ofile</Option> option, described above.  Because the order in
+to use the <option>-Ofile</option> option, described above.  Because the order in
 which optimisation passes are run is sometimes crucial, it's quite
 hard to do with command-line options.
-</Para>
+</para>
 
-<Para>
+<para>
 Here are some &ldquo;dangerous&rdquo; optimisations you <Emphasis>might</Emphasis> want to try:
 <VariableList>
 
-<VarListEntry>
-<Term><Option>-fvia-C</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-fvia-C option</Primary></IndexTerm>
-<IndexTerm><Primary>native code generator, turning off</Primary></IndexTerm>
-</Para>
+<varlistentry>
+<term><option>-fvia-C</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-fvia-C option</primary></indexterm>
+<indexterm><primary>native code generator, turning off</primary></indexterm>
+</para>
 
-<Para>
+<para>
 Compile via C, and don't use the native-code generator.  (There are many
 cases when GHC does this on its own.) You might pick up a little bit of
 speed by compiling via C (e.g. for floating-point intensive code on Intel).
 If you use <Function>&lowbar;casm&lowbar;</Function>s (which are utterly
 deprecated), you probably <Emphasis>have</Emphasis> to use
-<Option>-fvia-C</Option>.
-</Para>
+<option>-fvia-C</option>.
+</para>
 
-<Para>
-The lower-case incantation, <Option>-fvia-c</Option>, is synonymous.
-</Para>
+<para>
+The lower-case incantation, <option>-fvia-c</option>, is synonymous.
+</para>
 
-<Para>
+<para>
 Compiling via C will probably be slower (in compilation time) than
 using GHC's native code generator.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-funfolding-interface-threshold&lt;n&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-funfolding-interface-threshold option</Primary></IndexTerm>
-<IndexTerm><Primary>inlining, controlling</Primary></IndexTerm>
-<IndexTerm><Primary>unfolding, controlling</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-funfolding-interface-threshold&lt;n&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-funfolding-interface-threshold option</primary></indexterm>
+<indexterm><primary>inlining, controlling</primary></indexterm>
+<indexterm><primary>unfolding, controlling</primary></indexterm>
 (Default: 30) By raising or lowering this number, you can raise or
 lower the amount of pragmatic junk that gets spewed into interface
 files.  (An unfolding has a &ldquo;size&rdquo; that reflects the cost in terms
 of &ldquo;code bloat&rdquo; of expanding that unfolding in another module.  A
 bigger function would be assigned a bigger cost.)
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-funfolding-creation-threshold&lt;n&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-funfolding-creation-threshold option</Primary></IndexTerm>
-<IndexTerm><Primary>inlining, controlling</Primary></IndexTerm>
-<IndexTerm><Primary>unfolding, controlling</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-funfolding-creation-threshold&lt;n&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-funfolding-creation-threshold option</primary></indexterm>
+<indexterm><primary>inlining, controlling</primary></indexterm>
+<indexterm><primary>unfolding, controlling</primary></indexterm>
 (Default: 30) This option is similar to
-<Option>-funfolding-interface-threshold</Option>, except that it governs unfoldings
+<option>-funfolding-interface-threshold</option>, except that it governs unfoldings
 within a single module.  Increasing this figure is more likely to
 result in longer compile times than faster code.  The next option is
 more useful:
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-funfolding-use-threshold&lt;n&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-funfolding-use-threshold option</Primary></IndexTerm>
-<IndexTerm><Primary>inlining, controlling</Primary></IndexTerm>
-<IndexTerm><Primary>unfolding, controlling</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-funfolding-use-threshold&lt;n&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-funfolding-use-threshold option</primary></indexterm>
+<indexterm><primary>inlining, controlling</primary></indexterm>
+<indexterm><primary>unfolding, controlling</primary></indexterm>
 (Default: 8) This is the magic cut-off figure for unfolding: below
 this size, a function definition will be unfolded at the call-site,
 any bigger and it won't.  The size computed for a function depends on
 two things: the actual size of the expression minus any discounts that
-apply (see <Option>-funfolding-con-discount</Option>).
-</Para>
-</ListItem>
-</VarListEntry>
-
-<VarListEntry>
-<Term><Option>-funfolding-update-in-place&lt;n&gt;</Option>:</Term>
-<ListItem>
-<Para>
+apply (see <option>-funfolding-con-discount</option>).
+</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term><option>-funfolding-update-in-place&lt;n&gt;</option>:</term>
+<listitem>
+<para>
 Switches on an experimental "optimisation".  Switching it on makes the compiler
 a little keener to inline a function that returns a constructor, if the context is
 that of a thunk.
@@ -2165,166 +2590,166 @@ that of a thunk.
 </ProgramListing>
 If we inlined plusInt we might get an opportunity to use update-in-place for
 the thunk 'x'.
-</Para>
-</ListItem>
-</VarListEntry>
-
-<VarListEntry>
-<Term><Option>-funbox-strict-fields</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-funbox-strict-fields option</Primary></IndexTerm>
-<IndexTerm><Primary>strict constructor fields</Primary></IndexTerm>
-<IndexTerm><Primary>constructor fields, strict</Primary></IndexTerm>
-</Para>
-
-<Para>
+</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term><option>-funbox-strict-fields</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-funbox-strict-fields option</primary></indexterm>
+<indexterm><primary>strict constructor fields</primary></indexterm>
+<indexterm><primary>constructor fields, strict</primary></indexterm>
+</para>
+
+<para>
 This option causes all constructor fields which are marked strict
 (i.e. &ldquo;!&rdquo;) to be unboxed or unpacked if possible.  For example:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 data T = T !Float !Float
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
-will create a constructor <Literal>T</Literal> containing two unboxed floats if the
-<Option>-funbox-strict-fields</Option> flag is given.  This may not always be an
+<para>
+will create a constructor <literal>T</literal> containing two unboxed floats if the
+<option>-funbox-strict-fields</option> flag is given.  This may not always be an
 optimisation: if the <Function>T</Function> constructor is scrutinised and the floats
 passed to a non-strict function for example, they will have to be
 reboxed (this is done automatically by the compiler).
-</Para>
+</para>
 
-<Para>
-This option should only be used in conjunction with <Option>-O</Option>, in order to
+<para>
+This option should only be used in conjunction with <option>-O</option>, in order to
 expose unfoldings to the compiler so the reboxing can be removed as
 often as possible.  For example:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 f :: T -&#62; Float
 f (T f1 f2) = f1 + f2
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 The compiler will avoid reboxing <Function>f1</Function> and <Function>f2</Function> by inlining <Function>+</Function> on
-floats, but only when <Option>-O</Option> is on.
-</Para>
+floats, but only when <option>-O</option> is on.
+</para>
 
-<Para>
+<para>
 Any single-constructor data is eligible for unpacking; for example
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 data T = T !(Int,Int)
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
-will store the two <Literal>Int</Literal>s directly in the <Function>T</Function> constructor, by flattening
+<para>
+will store the two <literal>Int</literal>s directly in the <Function>T</Function> constructor, by flattening
 the pair.  Multi-level unpacking is also supported:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 data T = T !S
 data S = S !Int !Int
 </ProgramListing>
 
-</Para>
-
-<Para>
-will store two unboxed <Literal>Int&num;</Literal>s directly in the <Function>T</Function> constructor.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-fsemi-tagging</Option>:</Term>
-<ListItem>
-<Para>
+</para>
+
+<para>
+will store two unboxed <literal>Int&num;</literal>s directly in the <Function>T</Function> constructor.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-fsemi-tagging</option>:</term>
+<listitem>
+<para>
 This option (which <Emphasis>does not work</Emphasis> with the native-code generator)
 tells the compiler to add extra code to test for already-evaluated
 values.  You win if you have lots of such values during a run of your
 program, you lose otherwise.  (And you pay in extra code space.)
-</Para>
+</para>
 
-<Para>
-We have not played with <Option>-fsemi-tagging</Option> enough to recommend it.
+<para>
+We have not played with <option>-fsemi-tagging</option> enough to recommend it.
 (For all we know, it doesn't even work anymore&hellip; Sigh.)
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-fexcess-precision</Option>:</Term>
-<ListItem>
-<Para>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-fexcess-precision</option>:</term>
+<listitem>
+<para>
 When this option is given, intermediate floating point values can have
 a <Emphasis>greater</Emphasis> precision/range than the final type.
 Generally this is a good thing, but some programs may rely on the
-exact precision/range of <Literal>Float</Literal>/<Literal>Double</Literal>
+exact precision/range of <literal>Float</literal>/<literal>Double</literal>
 values and should not use this option for their compilation.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
-<Sect2>
-<Title><Option>-m*</Option>: platform-specific flags</Title>
+<sect2>
+<Title><option>-m*</option>: platform-specific flags</Title>
 
-<Para>
-<IndexTerm><Primary>-m* options (GHC)</Primary></IndexTerm>
-<IndexTerm><Primary>platform-specific options</Primary></IndexTerm>
-<IndexTerm><Primary>machine-specific options</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>-m* options (GHC)</primary></indexterm>
+<indexterm><primary>platform-specific options</primary></indexterm>
+<indexterm><primary>machine-specific options</primary></indexterm>
+</para>
 
-<Para>
+<para>
 Some flags only make sense for particular target platforms.
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
-<VarListEntry>
-<Term><Option>-mv8</Option>:</Term>
-<ListItem>
-<Para>
-(SPARC machines)<IndexTerm><Primary>-mv8 option (SPARC only)</Primary></IndexTerm>
+<varlistentry>
+<term><option>-mv8</option>:</term>
+<listitem>
+<para>
+(SPARC machines)<indexterm><primary>-mv8 option (SPARC only)</primary></indexterm>
 Means to pass the like-named option to GCC; it says to use the
 Version 8 SPARC instructions, notably integer multiply and divide.
-The similiar <Option>-m*</Option> GCC options for SPARC also work, actually.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-mlong-calls</Option>:</Term>
-<ListItem>
-<Para>
-(HPPA machines)<IndexTerm><Primary>-mlong-calls option (HPPA only)</Primary></IndexTerm>
+The similiar <option>-m*</option> GCC options for SPARC also work, actually.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-mlong-calls</option>:</term>
+<listitem>
+<para>
+(HPPA machines)<indexterm><primary>-mlong-calls option (HPPA only)</primary></indexterm>
 Means to pass the like-named option to GCC.  Required for Very Big
 modules, maybe.  (Probably means you're in trouble&hellip;)
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-monly-[32]-regs</Option>:</Term>
-<ListItem>
-<Para>
-(iX86 machines)<IndexTerm><Primary>-monly-N-regs option (iX86 only)</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-monly-[32]-regs</option>:</term>
+<listitem>
+<para>
+(iX86 machines)<indexterm><primary>-monly-N-regs option (iX86 only)</primary></indexterm>
 GHC tries to &ldquo;steal&rdquo; four registers from GCC, for performance
 reasons; it almost always works.  However, when GCC is compiling some
 modules with four stolen registers, it will crash, probably saying:
@@ -2335,37 +2760,37 @@ This may be due to a compiler bug or to impossible asm
 statements or clauses.
 </Screen>
 
-Just give some registers back with <Option>-monly-N-regs</Option>.  Try `3' first,
+Just give some registers back with <option>-monly-N-regs</option>.  Try `3' first,
 then `2'.  If `2' doesn't work, please report the bug to us.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="optimise-C-compiler">
 <Title>Code improvement by the C compiler.
 </Title>
 
-<Para>
-<IndexTerm><Primary>optimisation by GCC</Primary></IndexTerm>
-<IndexTerm><Primary>GCC optimisation</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>optimisation by GCC</primary></indexterm>
+<indexterm><primary>GCC optimisation</primary></indexterm>
+</para>
 
-<Para>
-The C&nbsp;compiler (GCC) is run with <Option>-O</Option> turned on.  (It has
+<para>
+The C&nbsp;compiler (GCC) is run with <option>-O</option> turned on.  (It has
 to be, actually).
-</Para>
+</para>
 
-<Para>
-If you want to run GCC with <Option>-O2</Option>&mdash;which may be worth a few
+<para>
+If you want to run GCC with <option>-O2</option>&mdash;which may be worth a few
 percent in execution speed&mdash;you can give a
-<Option>-O2-for-C</Option><IndexTerm><Primary>-O2-for-C option</Primary></IndexTerm> option.
-</Para>
+<option>-O2-for-C</option><indexterm><primary>-O2-for-C option</primary></indexterm> option.
+</para>
 
-</Sect2>
+</sect2>
 
 </Sect1>
 
@@ -2377,154 +2802,154 @@ percent in execution speed&mdash;you can give a
 <Title>The C pre-processor
 </Title>
 
-<Para>
-<IndexTerm><Primary>pre-processing: cpp</Primary></IndexTerm>
-<IndexTerm><Primary>C pre-processor options</Primary></IndexTerm>
-<IndexTerm><Primary>cpp, pre-processing with</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>pre-processing: cpp</primary></indexterm>
+<indexterm><primary>C pre-processor options</primary></indexterm>
+<indexterm><primary>cpp, pre-processing with</primary></indexterm>
+</para>
 
-<Para>
+<para>
 The C pre-processor <Command>cpp</Command> is run over your Haskell code only if the
-<Option>-cpp</Option> option <IndexTerm><Primary>-cpp option</Primary></IndexTerm> is given.  Unless you are
+<option>-cpp</option> option <indexterm><primary>-cpp option</primary></indexterm> is given.  Unless you are
 building a large system with significant doses of conditional
 compilation, you really shouldn't need it.
 <VariableList>
 
-<VarListEntry>
-<Term><Option>-D&lt;foo&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-D&lt;name&gt; option</Primary></IndexTerm>
+<varlistentry>
+<term><option>-D&lt;foo&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-D&lt;name&gt; option</primary></indexterm>
 Define macro <Constant>&lt;foo&gt;</Constant> in the usual way.  NB: does <Emphasis>not</Emphasis> affect
-<Option>-D</Option> macros passed to the C&nbsp;compiler when compiling via C!  For those,
-use the <Option>-optc-Dfoo</Option> hack&hellip; (see <XRef LinkEnd="forcing-options-through">).
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-U&lt;foo&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-U&lt;name&gt; option</Primary></IndexTerm>
+<option>-D</option> macros passed to the C&nbsp;compiler when compiling via C!  For those,
+use the <option>-optc-Dfoo</option> hack&hellip; (see <XRef LinkEnd="forcing-options-through">).
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-U&lt;foo&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-U&lt;name&gt; option</primary></indexterm>
 Undefine macro <Command>&lt;foo&gt;</Command> in the usual way.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-I&lt;dir&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-I&lt;dir&gt; option</Primary></IndexTerm>
-Specify a directory in which to look for <Literal>&num;include</Literal> files, in
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-I&lt;dir&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-I&lt;dir&gt; option</primary></indexterm>
+Specify a directory in which to look for <literal>&num;include</literal> files, in
 the usual C way.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-<Para>
+<para>
 The GHC driver pre-defines several macros when processing Haskell
 source code (<Filename>.hs</Filename> or <Filename>.lhs</Filename> files):
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
-<VarListEntry>
-<Term><Constant>&lowbar;&lowbar;HASKELL98&lowbar;&lowbar;</Constant>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>&lowbar;&lowbar;HASKELL98&lowbar;&lowbar;</Primary></IndexTerm>
+<varlistentry>
+<term><Constant>&lowbar;&lowbar;HASKELL98&lowbar;&lowbar;</Constant>:</term>
+<listitem>
+<para>
+<indexterm><primary>&lowbar;&lowbar;HASKELL98&lowbar;&lowbar;</primary></indexterm>
 If defined, this means that GHC supports the language defined by the
 Haskell 98 report.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Constant>&lowbar;&lowbar;HASKELL&lowbar;&lowbar;=98</Constant>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>&lowbar;&lowbar;HASKELL&lowbar;&lowbar;</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><Constant>&lowbar;&lowbar;HASKELL&lowbar;&lowbar;=98</Constant>:</term>
+<listitem>
+<para>
+<indexterm><primary>&lowbar;&lowbar;HASKELL&lowbar;&lowbar;</primary></indexterm>
 In GHC 4.04 and later, the <Constant>&lowbar;&lowbar;HASKELL&lowbar;&lowbar;</Constant> macro is defined as having
 the value <Constant>98</Constant>.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Constant>&lowbar;&lowbar;HASKELL1&lowbar;&lowbar;</Constant>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>&lowbar;&lowbar;HASKELL1&lowbar;&lowbar; macro</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><Constant>&lowbar;&lowbar;HASKELL1&lowbar;&lowbar;</Constant>:</term>
+<listitem>
+<para>
+<indexterm><primary>&lowbar;&lowbar;HASKELL1&lowbar;&lowbar; macro</primary></indexterm>
 If defined to <Emphasis>n</Emphasis>, that means GHC supports the Haskell language
 defined in the Haskell report version <Emphasis>1.n</Emphasis>.  Currently 5.  This
 macro is deprecated, and will probably disappear in future versions.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Constant>&lowbar;&lowbar;GLASGOW&lowbar;HASKELL&lowbar;&lowbar;</Constant>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>&lowbar;&lowbar;GLASGOW&lowbar;HASKELL&lowbar;&lowbar; macro</Primary></IndexTerm>
-For version <Emphasis>n</Emphasis> of the GHC system, this will be <Literal>&num;define</Literal>d to
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><Constant>&lowbar;&lowbar;GLASGOW&lowbar;HASKELL&lowbar;&lowbar;</Constant>:</term>
+<listitem>
+<para>
+<indexterm><primary>&lowbar;&lowbar;GLASGOW&lowbar;HASKELL&lowbar;&lowbar; macro</primary></indexterm>
+For version <Emphasis>n</Emphasis> of the GHC system, this will be <literal>&num;define</literal>d to
 <Emphasis>100n</Emphasis>.  So, for version 4.00, it is 400.
-</Para>
+</para>
 
-<Para>
+<para>
 With any luck, <Constant>&lowbar;&lowbar;GLASGOW&lowbar;HASKELL&lowbar;&lowbar;</Constant> will be undefined in all other
 implementations that support C-style pre-processing.
-</Para>
+</para>
 
-<Para>
+<para>
 (For reference: the comparable symbols for other systems are:
 <Constant>&lowbar;&lowbar;HUGS&lowbar;&lowbar;</Constant> for Hugs and <Constant>&lowbar;&lowbar;HBC&lowbar;&lowbar;</Constant> for Chalmers.)
-</Para>
+</para>
 
-<Para>
+<para>
 NB. This macro is set when pre-processing both Haskell source and C
 source, including the C source generated from a Haskell module
 (i.e. <Filename>.hs</Filename>, <Filename>.lhs</Filename>, <Filename>.c</Filename> and <Filename>.hc</Filename> files).
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Constant>&lowbar;&lowbar;CONCURRENT&lowbar;HASKELL&lowbar;&lowbar;</Constant>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>&lowbar;&lowbar;CONCURRENT&lowbar;HASKELL&lowbar;&lowbar; macro</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><Constant>&lowbar;&lowbar;CONCURRENT&lowbar;HASKELL&lowbar;&lowbar;</Constant>:</term>
+<listitem>
+<para>
+<indexterm><primary>&lowbar;&lowbar;CONCURRENT&lowbar;HASKELL&lowbar;&lowbar; macro</primary></indexterm>
 This symbol is defined when pre-processing Haskell (input) and
 pre-processing C (GHC output).  Since GHC from verion 4.00 now
 supports concurrent haskell by default, this symbol is always defined.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Constant>&lowbar;&lowbar;PARALLEL&lowbar;HASKELL&lowbar;&lowbar;</Constant>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>&lowbar;&lowbar;PARALLEL&lowbar;HASKELL&lowbar;&lowbar; macro</Primary></IndexTerm>
-Only defined when <Option>-parallel</Option> is in use!  This symbol is defined when
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><Constant>&lowbar;&lowbar;PARALLEL&lowbar;HASKELL&lowbar;&lowbar;</Constant>:</term>
+<listitem>
+<para>
+<indexterm><primary>&lowbar;&lowbar;PARALLEL&lowbar;HASKELL&lowbar;&lowbar; macro</primary></indexterm>
+Only defined when <option>-parallel</option> is in use!  This symbol is defined when
 pre-processing Haskell (input) and pre-processing C (GHC output).
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-<Para>
+<para>
 Options other than the above can be forced through to the C
-pre-processor with the <Option>-opt</Option> flags (see
+pre-processor with the <option>-opt</option> flags (see
 <XRef LinkEnd="forcing-options-through">).
-</Para>
+</para>
 
-<Para>
-A small word of warning: <Option>-cpp</Option> is not friendly to &ldquo;string
-gaps&rdquo;.<IndexTerm><Primary>-cpp vs string gaps</Primary></IndexTerm><IndexTerm><Primary>string gaps vs
--cpp</Primary></IndexTerm>.  In other words, strings such as the following:
-</Para>
+<para>
+A small word of warning: <option>-cpp</option> is not friendly to &ldquo;string
+gaps&rdquo;.<indexterm><primary>-cpp vs string gaps</primary></indexterm><indexterm><primary>string gaps vs
+-cpp</primary></indexterm>.  In other words, strings such as the following:
+</para>
 
-<Para>
+<para>
 
 <ProgramListing>
 strmod = "\
@@ -2532,39 +2957,39 @@ strmod = "\
 \ "
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
-don't work with <Option>-cpp</Option>; <Filename>/usr/bin/cpp</Filename> elides the
+<para>
+don't work with <option>-cpp</option>; <Filename>/usr/bin/cpp</Filename> elides the
 backslash-newline pairs.
-</Para>
+</para>
 
-<Para>
+<para>
 However, it appears that if you add a space at the end of the line,
 then <Command>cpp</Command> (at least GNU <Command>cpp</Command> and possibly other <Command>cpp</Command>s)
 leaves the backslash-space pairs alone and the string gap works as
 expected.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="options-C-compiler">
 <Title>Options affecting the C compiler (if applicable)
 </Title>
 
-<Para>
-<IndexTerm><Primary>include-file options</Primary></IndexTerm>
-<IndexTerm><Primary>C compiler options</Primary></IndexTerm>
-<IndexTerm><Primary>GCC options</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>include-file options</primary></indexterm>
+<indexterm><primary>C compiler options</primary></indexterm>
+<indexterm><primary>GCC options</primary></indexterm>
+</para>
 
-<Para>
+<para>
 At the moment, quite a few common C-compiler options are passed on
 quietly to the C compilation of Haskell-compiler-generated C files.
 THIS MAY CHANGE.  Meanwhile, options so sent are:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <InformalTable>
 <TGroup Cols="2">
@@ -2572,17 +2997,17 @@ THIS MAY CHANGE.  Meanwhile, options so sent are:
 <ColSpec Align="Left" Colsep="0">
 <TBody>
 <Row>
-<Entry><Option>-ansi</Option> </Entry>
+<Entry><option>-ansi</option> </Entry>
 <Entry> do ANSI C (not K&amp;R) </Entry>
 </Row>
 <Row>
 <Entry>
-<Option>-pedantic</Option> </Entry>
+<option>-pedantic</option> </Entry>
 <Entry> be so</Entry>
 </Row>
 <Row>
 <Entry>
-<Option>-dgcc-lint</Option> </Entry>
+<option>-dgcc-lint</option> </Entry>
 <Entry> (hack) short for &ldquo;make GCC very paranoid&rdquo;</Entry>
 </Row>
 
@@ -2591,69 +3016,69 @@ THIS MAY CHANGE.  Meanwhile, options so sent are:
 </TGroup>
 </InformalTable>
 
-<IndexTerm><Primary>-ansi option (for GCC)</Primary></IndexTerm>
-<IndexTerm><Primary>-pedantic option (for GCC)</Primary></IndexTerm>
-<IndexTerm><Primary>-dgcc-lint option (GCC paranoia)</Primary></IndexTerm>
-</Para>
+<indexterm><primary>-ansi option (for GCC)</primary></indexterm>
+<indexterm><primary>-pedantic option (for GCC)</primary></indexterm>
+<indexterm><primary>-dgcc-lint option (GCC paranoia)</primary></indexterm>
+</para>
 
-<Para>
+<para>
 If you are compiling with lots of foreign calls, you may need to
-tell the C&nbsp;compiler about some <Literal>&num;include</Literal> files.  There is no real
+tell the C&nbsp;compiler about some <literal>&num;include</literal> files.  There is no real
 pretty way to do this, but you can use this hack from the
 command-line:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <Screen>
 % ghc -c '-#include &#60;X/Xlib.h&#62;' Xstuff.lhs
 </Screen>
 
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="options-linker">
 <Title>Linking and consistency-checking
 </Title>
 
-<Para>
-<IndexTerm><Primary>linker options</Primary></IndexTerm>
-<IndexTerm><Primary>ld options</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>linker options</primary></indexterm>
+<indexterm><primary>ld options</primary></indexterm>
+</para>
 
-<Para>
+<para>
 GHC has to link your code with various libraries, possibly including:
-user-supplied, GHC-supplied, and system-supplied (<Option>-lm</Option> math
+user-supplied, GHC-supplied, and system-supplied (<option>-lm</option> math
 library, for example).
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
-<VarListEntry>
-<Term><Option>-l&lt;FOO&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-l&lt;lib&gt; option</Primary></IndexTerm>
+<varlistentry>
+<term><option>-l&lt;FOO&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-l&lt;lib&gt; option</primary></indexterm>
 Link in a library named <Filename>lib&lt;FOO&gt;.a</Filename> which resides somewhere on the
 library directories path.
-</Para>
+</para>
 
-<Para>
+<para>
 Because of the sad state of most UNIX linkers, the order of such
 options does matter.  Thus: <Command>ghc -lbar *.o</Command> is almost certainly
 wrong, because it will search <Filename>libbar.a</Filename> <Emphasis>before</Emphasis> it has
 collected unresolved symbols from the <Filename>*.o</Filename> files.
 <Command>ghc *.o -lbar</Command> is probably better.
-</Para>
+</para>
 
-<Para>
+<para>
 The linker will of course be informed about some GHC-supplied
 libraries automatically; these are:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <InformalTable>
 <TGroup Cols="2">
@@ -2667,22 +3092,22 @@ libraries automatically; these are:
 
 <Row>
 <Entry>
-<Option>-lHSrts,-lHSclib</Option> </Entry>
+<option>-lHSrts,-lHSclib</option> </Entry>
 <Entry> basic runtime libraries </Entry>
 </Row>
 <Row>
 <Entry>
-<Option>-lHS</Option> </Entry>
+<option>-lHS</option> </Entry>
 <Entry> standard Prelude library </Entry>
 </Row>
 <Row>
 <Entry>
-<Option>-lHS&lowbar;cbits</Option> </Entry>
+<option>-lHS&lowbar;cbits</option> </Entry>
 <Entry> C support code for standard Prelude library </Entry>
 </Row>
 <Row>
 <Entry>
-<Option>-lgmp</Option> </Entry>
+<option>-lgmp</option> </Entry>
 <Entry> GNU multi-precision library (for Integers)</Entry>
 </Row>
 
@@ -2691,169 +3116,169 @@ libraries automatically; these are:
 </TGroup>
 </InformalTable>
 
-</Para>
-
-<Para>
-<IndexTerm><Primary>-lHS library</Primary></IndexTerm>
-<IndexTerm><Primary>-lHS&lowbar;cbits library</Primary></IndexTerm>
-<IndexTerm><Primary>-lHSrts library</Primary></IndexTerm>
-<IndexTerm><Primary>-lgmp library</Primary></IndexTerm>
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-package &lt;name&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-package &lt;name&gt; option</Primary></IndexTerm>
-</Para>
-
-<Para>
+</para>
+
+<para>
+<indexterm><primary>-lHS library</primary></indexterm>
+<indexterm><primary>-lHS&lowbar;cbits library</primary></indexterm>
+<indexterm><primary>-lHSrts library</primary></indexterm>
+<indexterm><primary>-lgmp library</primary></indexterm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-package &lt;name&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-package &lt;name&gt; option</primary></indexterm>
+</para>
+
+<para>
 If you are using a Haskell &ldquo;package&rdquo; (e.g., the POSIX
-library), just use the <Option>-package posix</Option> option, and the
+library), just use the <option>-package posix</option> option, and the
 correct code should be linked in.  See <xref linkend="packages"> for
 more details.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-L&lt;dir&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-L&lt;dir&gt; option</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-L&lt;dir&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-L&lt;dir&gt; option</primary></indexterm>
 Where to find user-supplied libraries&hellip;  Prepend the directory
 <Filename>&lt;dir&gt;</Filename> to the library directories path.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-static</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-static option</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-static</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-static option</primary></indexterm>
 Tell the linker to avoid shared libraries.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-no-link-chk</Option> and <Option>-link-chk</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-no-link-chk option</Primary></IndexTerm>
-<IndexTerm><Primary>-link-chk option</Primary></IndexTerm>
-<IndexTerm><Primary>consistency checking of executables</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-no-link-chk</option> and <option>-link-chk</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-no-link-chk option</primary></indexterm>
+<indexterm><primary>-link-chk option</primary></indexterm>
+<indexterm><primary>consistency checking of executables</primary></indexterm>
 By default, immediately after linking an executable, GHC verifies that
 the pieces that went into it were compiled with compatible flags; a
 &ldquo;consistency check&rdquo;.
 (This is to avoid mysterious failures caused by non-meshing of
 incompatibly-compiled programs; e.g., if one <Filename>.o</Filename> file was compiled
 for a parallel machine and the others weren't.)  You may turn off this
-check with <Option>-no-link-chk</Option>.  You can turn it (back) on with
-<Option>-link-chk</Option> (the default).
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-no-hs-main</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-no-hs-main option</Primary></IndexTerm>
-<IndexTerm><Primary>linking Haskell libraries with foreign code</Primary></IndexTerm>
-</Para>
-
-<Para>
+check with <option>-no-link-chk</option>.  You can turn it (back) on with
+<option>-link-chk</option> (the default).
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-no-hs-main</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-no-hs-main option</primary></indexterm>
+<indexterm><primary>linking Haskell libraries with foreign code</primary></indexterm>
+</para>
+
+<para>
 In the event you want to include ghc-compiled code as part of another
 (non-Haskell) program, the RTS will not be supplying its definition of
 <Function>main()</Function> at link-time, you will have to. To signal that to the
-driver script when linking, use <Option>-no-hs-main</Option>.
-</Para>
+driver script when linking, use <option>-no-hs-main</option>.
+</para>
 
-<Para>
+<para>
 Notice that since the command-line passed to the linker is rather
 involved, you probably want to use the ghc driver script to do the
 final link of your `mixed-language' application. This is not a
-requirement though, just try linking once with <Option>-v</Option> on to see what
+requirement though, just try linking once with <option>-v</option> on to see what
 options the driver passes through to the linker.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 </Sect1>
 
 <Sect1 id="sec-using-concurrent">
 <Title>Using Concurrent Haskell</Title>
 
-<Para>
-<IndexTerm><Primary>Concurrent Haskell&mdash;use</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>Concurrent Haskell&mdash;use</primary></indexterm>
+</para>
 
-<Para>
+<para>
 GHC (as of version 4.00) supports Concurrent Haskell by default,
 without requiring a special option or libraries compiled in a certain
 way.  To get access to the support libraries for Concurrent Haskell
-(i.e. <Literal>Concurrent</Literal> and friends), use the
-<Option>-package concurrent</Option> option.
-</Para>
+(i.e. <literal>Concurrent</literal> and friends), use the
+<option>-package concurrent</option> option.
+</para>
 
-<Para>
+<para>
 Three RTS options are provided for modifying the behaviour of the
 threaded runtime system.  See the descriptions of
-<Option>-C[&lt;us&gt;]</Option>, <Option>-q</Option>, and
-<Option>-t&lt;num&gt;</Option> in <XRef LinkEnd="parallel-rts-opts">.
-</Para>
+<option>-C[&lt;us&gt;]</option>, <option>-q</option>, and
+<option>-t&lt;num&gt;</option> in <XRef LinkEnd="parallel-rts-opts">.
+</para>
 
-<Para>
+<para>
 Concurrent Haskell is described in more detail in <XRef
 LinkEnd="sec-Concurrent">.
-</Para>
+</para>
 
 </Sect1>
 
 <Sect1 id="sec-using-parallel">
 <Title>Using Parallel Haskell</Title>
 
-<Para>
-<IndexTerm><Primary>Parallel Haskell&mdash;use</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>Parallel Haskell&mdash;use</primary></indexterm>
+</para>
 
-<Para>
+<para>
 &lsqb;You won't be able to execute parallel Haskell programs unless PVM3
 (Parallel Virtual Machine, version 3) is installed at your site.]
-</Para>
+</para>
 
-<Para>
+<para>
 To compile a Haskell program for parallel execution under PVM, use the
-<Option>-parallel</Option> option,<IndexTerm><Primary>-parallel
-option</Primary></IndexTerm> both when compiling <Emphasis>and
-linking</Emphasis>.  You will probably want to <Literal>import
-Parallel</Literal> into your Haskell modules.
-</Para>
+<option>-parallel</option> option,<indexterm><primary>-parallel
+option</primary></indexterm> both when compiling <Emphasis>and
+linking</Emphasis>.  You will probably want to <literal>import
+Parallel</literal> into your Haskell modules.
+</para>
 
-<Para>
+<para>
 To run your parallel program, once PVM is going, just invoke it
 &ldquo;as normal&rdquo;.  The main extra RTS option is
-<Option>-N&lt;n&gt;</Option>, to say how many PVM
+<option>-N&lt;n&gt;</option>, to say how many PVM
 &ldquo;processors&rdquo; your program to run on.  (For more details of
 all relevant RTS options, please see <XRef
 LinkEnd="parallel-rts-opts">.)
-</Para>
+</para>
 
-<Para>
+<para>
 In truth, running Parallel Haskell programs and getting information
 out of them (e.g., parallelism profiles) is a battle with the vagaries of
 PVM, detailed in the following sections.
-</Para>
+</para>
 
-<Sect2>
+<sect2>
 <Title>Dummy's guide to using PVM</Title>
 
-<Para>
-<IndexTerm><Primary>PVM, how to use</Primary></IndexTerm>
-<IndexTerm><Primary>Parallel Haskell&mdash;PVM use</Primary></IndexTerm>
+<para>
+<indexterm><primary>PVM, how to use</primary></indexterm>
+<indexterm><primary>Parallel Haskell&mdash;PVM use</primary></indexterm>
 Before you can run a parallel program under PVM, you must set the
 required environment variables (PVM's idea, not ours); something like,
 probably in your <Filename>.cshrc</Filename> or equivalent:
@@ -2864,20 +3289,20 @@ setenv PVM_ARCH `$PVM_ROOT/lib/pvmgetarch`
 setenv PVM_DPATH $PVM_ROOT/lib/pvmd
 </ProgramListing>
 
-</Para>
+</para>
 
-<Para>
+<para>
 Creating and/or controlling your &ldquo;parallel machine&rdquo; is a purely-PVM
 business; nothing specific to Parallel Haskell.
-</Para>
+</para>
 
-<Para>
-You use the <Command>pvm</Command><IndexTerm><Primary>pvm command</Primary></IndexTerm> command to start PVM on your
+<para>
+You use the <Command>pvm</Command><indexterm><primary>pvm command</primary></indexterm> command to start PVM on your
 machine.  You can then do various things to control/monitor your
 &ldquo;parallel machine;&rdquo; the most useful being:
-</Para>
+</para>
 
-<Para>
+<para>
 <InformalTable>
 <TGroup Cols=2>
 <ColSpec Align="Left">
@@ -2926,38 +3351,38 @@ machine.  You can then do various things to control/monitor your
 </TBody>
 </TGroup>
 </InformalTable>
-</Para>
+</para>
 
-<Para>
+<para>
 The PVM documentation can tell you much, much more about <Command>pvm</Command>!
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
-<Sect2>
+<sect2>
 <Title>Parallelism profiles</Title>
 
-<Para>
-<IndexTerm><Primary>parallelism profiles</Primary></IndexTerm>
-<IndexTerm><Primary>profiles, parallelism</Primary></IndexTerm>
-<IndexTerm><Primary>visualisation tools</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>parallelism profiles</primary></indexterm>
+<indexterm><primary>profiles, parallelism</primary></indexterm>
+<indexterm><primary>visualisation tools</primary></indexterm>
+</para>
 
-<Para>
+<para>
 With Parallel Haskell programs, we usually don't care about the
 results&mdash;only with &ldquo;how parallel&rdquo; it was!  We want pretty pictures.
-</Para>
+</para>
 
-<Para>
+<para>
 Parallelism profiles (&agrave; la <Command>hbcpp</Command>) can be generated with the
-<Option>-q</Option><IndexTerm><Primary>-q RTS option (concurrent, parallel)</Primary></IndexTerm> RTS option.  The
+<option>-q</option><indexterm><primary>-q RTS option (concurrent, parallel)</primary></indexterm> RTS option.  The
 per-processor profiling info is dumped into files named
 <Filename>&lt;full-path&gt;&lt;program&gt;.gr</Filename>.  These are then munged into a PostScript picture,
 which you can then display.  For example, to run your program
 <Filename>a.out</Filename> on 8 processors, then view the parallelism profile, do:
-</Para>
+</para>
 
-<Para>
+<para>
 
 <Screen>
 % ./a.out +RTS -N8 -q
@@ -2966,151 +3391,151 @@ which you can then display.  For example, to run your program
 % ghostview -seascape temp.ps   # look at it!
 </Screen>
 
-</Para>
+</para>
 
-<Para>
+<para>
 The scripts for processing the parallelism profiles are distributed
 in <Filename>ghc/utils/parallel/</Filename>.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
-<Sect2>
+<sect2>
 <Title>Other useful info about running parallel programs</Title>
 
-<Para>
+<para>
 The &ldquo;garbage-collection statistics&rdquo; RTS options can be useful for
 seeing what parallel programs are doing.  If you do either
-<Option>+RTS -Sstderr</Option><IndexTerm><Primary>-Sstderr RTS option</Primary></IndexTerm> or <Option>+RTS -sstderr</Option>, then
+<option>+RTS -Sstderr</option><indexterm><primary>-Sstderr RTS option</primary></indexterm> or <option>+RTS -sstderr</option>, then
 you'll get mutator, garbage-collection, etc., times on standard
 error. The standard error of all PE's other than the `main thread'
 appears in <Filename>/tmp/pvml.nnn</Filename>, courtesy of PVM.
-</Para>
+</para>
 
-<Para>
-Whether doing <Option>+RTS -Sstderr</Option> or not, a handy way to watch
+<para>
+Whether doing <option>+RTS -Sstderr</option> or not, a handy way to watch
 what's happening overall is: <Command>tail -f /tmp/pvml.nnn</Command>.
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 <Sect2 id="parallel-rts-opts">
 <Title>RTS options for Concurrent/Parallel Haskell
 </Title>
 
-<Para>
-<IndexTerm><Primary>RTS options, concurrent</Primary></IndexTerm>
-<IndexTerm><Primary>RTS options, parallel</Primary></IndexTerm>
-<IndexTerm><Primary>Concurrent Haskell&mdash;RTS options</Primary></IndexTerm>
-<IndexTerm><Primary>Parallel Haskell&mdash;RTS options</Primary></IndexTerm>
-</Para>
+<para>
+<indexterm><primary>RTS options, concurrent</primary></indexterm>
+<indexterm><primary>RTS options, parallel</primary></indexterm>
+<indexterm><primary>Concurrent Haskell&mdash;RTS options</primary></indexterm>
+<indexterm><primary>Parallel Haskell&mdash;RTS options</primary></indexterm>
+</para>
 
-<Para>
+<para>
 Besides the usual runtime system (RTS) options
 (<XRef LinkEnd="runtime-control">), there are a few options particularly
 for concurrent/parallel execution.
-</Para>
+</para>
 
-<Para>
+<para>
 <VariableList>
 
-<VarListEntry>
-<Term><Option>-N&lt;N&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-N&lt;N&gt; RTS option (parallel)</Primary></IndexTerm>
-(PARALLEL ONLY) Use <Literal>&lt;N&gt;</Literal> PVM processors to run this program;
+<varlistentry>
+<term><option>-N&lt;N&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-N&lt;N&gt; RTS option (parallel)</primary></indexterm>
+(PARALLEL ONLY) Use <literal>&lt;N&gt;</literal> PVM processors to run this program;
 the default is 2.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-C[&lt;us&gt;]</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-C&lt;us&gt; RTS option</Primary></IndexTerm> Sets
-the context switch interval to <Literal>&lt;s&gt;</Literal> seconds.
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-C[&lt;us&gt;]</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-C&lt;us&gt; RTS option</primary></indexterm> Sets
+the context switch interval to <literal>&lt;s&gt;</literal> seconds.
 A context switch will occur at the next heap block allocation after
 the timer expires (a heap block allocation occurs every 4k of
-allocation).  With <Option>-C0</Option> or <Option>-C</Option>,
+allocation).  With <option>-C0</option> or <option>-C</option>,
 context switches will occur as often as possible (at every heap block
 allocation).  By default, context switches occur every 20ms
 milliseconds.  Note that GHC's internal timer ticks every 20ms, and
 the context switch timer is always a multiple of this timer, so 20ms
 is the maximum granularity available for timed context switches.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-q[v]</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-q RTS option</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-q[v]</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-q RTS option</primary></indexterm>
 (PARALLEL ONLY) Produce a quasi-parallel profile of thread activity,
 in the file <FIlename>&lt;program&gt;.qp</FIlename>.  In the style of <Command>hbcpp</Command>, this profile
 records the movement of threads between the green (runnable) and red
-(blocked) queues.  If you specify the verbose suboption (<Option>-qv</Option>), the
+(blocked) queues.  If you specify the verbose suboption (<option>-qv</option>), the
 green queue is split into green (for the currently running thread
 only) and amber (for other runnable threads).  We do not recommend
 that you use the verbose suboption if you are planning to use the
 <Command>hbcpp</Command> profiling tools or if you are context switching at every heap
-check (with <Option>-C</Option>).
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-t&lt;num&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-t&lt;num&gt; RTS option</Primary></IndexTerm>
+check (with <option>-C</option>).
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-t&lt;num&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-t&lt;num&gt; RTS option</primary></indexterm>
 (PARALLEL ONLY) Limit the number of concurrent threads per processor
-to <Literal>&lt;num&gt;</Literal>.  The default is 32.  Each thread requires slightly over 1K
+to <literal>&lt;num&gt;</literal>.  The default is 32.  Each thread requires slightly over 1K
 <Emphasis>words</Emphasis> in the heap for thread state and stack objects.  (For
 32-bit machines, this translates to 4K bytes, and for 64-bit machines,
 8K bytes.)
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-d</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-d RTS option (parallel)</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-d</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-d RTS option (parallel)</primary></indexterm>
 (PARALLEL ONLY) Turn on debugging.  It pops up one xterm (or GDB, or
 something&hellip;) per PVM processor.  We use the standard <Command>debugger</Command>
 script that comes with PVM3, but we sometimes meddle with the
 <Command>debugger2</Command> script.  We include ours in the GHC distribution,
 in <Filename>ghc/utils/pvm/</Filename>.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-e&lt;num&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-e&lt;num&gt; RTS option (parallel)</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-e&lt;num&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-e&lt;num&gt; RTS option (parallel)</primary></indexterm>
 (PARALLEL ONLY) Limit the number of pending sparks per processor to
-<Literal>&lt;num&gt;</Literal>. The default is 100. A larger number may be appropriate if
+<literal>&lt;num&gt;</literal>. The default is 100. A larger number may be appropriate if
 your program generates large amounts of parallelism initially.
-</Para>
-</ListItem>
-</VarListEntry>
-<VarListEntry>
-<Term><Option>-Q&lt;num&gt;</Option>:</Term>
-<ListItem>
-<Para>
-<IndexTerm><Primary>-Q&lt;num&gt; RTS option (parallel)</Primary></IndexTerm>
+</para>
+</listitem>
+</varlistentry>
+<varlistentry>
+<term><option>-Q&lt;num&gt;</option>:</term>
+<listitem>
+<para>
+<indexterm><primary>-Q&lt;num&gt; RTS option (parallel)</primary></indexterm>
 (PARALLEL ONLY) Set the size of packets transmitted between processors
-to <Literal>&lt;num&gt;</Literal>. The default is 1024 words. A larger number may be
+to <literal>&lt;num&gt;</literal>. The default is 1024 words. A larger number may be
 appropriate if your machine has a high communication cost relative to
 computation speed.
-</Para>
-</ListItem>
-</VarListEntry>
+</para>
+</listitem>
+</varlistentry>
 </VariableList>
-</Para>
+</para>
 
-</Sect2>
+</sect2>
 
 </Sect1>