<?xml version="1.0" encoding="iso-8859-1"?>
<sect1 id="flag-reference">
  <title>Flag reference</title>

  <para>This section is a quick-reference for GHC's command-line
    flags.  For each flag, we also list its static/dynamic status (see
    <xref linkend="static-dynamic-flags"/>), and the flag's opposite
    (if available).</para>

  <sect2>
    <title>Verbosity options</title>

    <para>More details in <xref linkend="options-help"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-v</option></entry>
            <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-v</option><replaceable>n</replaceable></entry>
            <entry>set verbosity level</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fprint-explicit-foralls</option></entry>
            <entry>print explicit <literal>forall</literal> quantification in types</entry>
            <entry>dynamic</entry>
            <entry>-fno-print-explicit-foralls</entry>
          </row>
          <row>
            <entry><option>-fprint-explicit-kinds</option></entry>
            <entry>print explicit kind foralls and kind arguments in types</entry>
            <entry>dynamic</entry>
            <entry>-fno-print-explicit-kinds</entry>
          </row>
          <row>
            <entry><option>-ferror-spans</option></entry>
            <entry>output full span in error messages</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-H</option><replaceable>size</replaceable></entry>
            <entry>Set the minimum heap size to <replaceable>size</replaceable></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-Rghc-timing</option></entry>
            <entry>Summarise timing stats for GHC (same as <literal>+RTS -tstderr</literal>)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>

  </sect2>
  <sect2>
    <title>Alternative modes of operation</title>

    <para>More details in <xref linkend="modes"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>--help</option>,<option>-?</option></entry>
            <entry>Disply help</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>--interactive</option></entry>
            <entry>Interactive mode - normally used by just running <command>ghci</command>;
              see <xref linkend="ghci"/> for details.</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--make</option></entry>
            <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>;
              see <xref linkend="make-mode"/> for details..</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-e <replaceable>expr</replaceable></option></entry>
            <entry>Evaluate <replaceable>expr</replaceable>;
              see <xref linkend="eval-mode"/> for details.</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>--show-iface</option></entry>
            <entry>Display the contents of an interface file.</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-M</option></entry>
            <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>;
              see <xref linkend="makefile-dependencies"/> for details.</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>


          <row>
            <entry><option>--supported-extensions</option>, <option>--supported-languages</option></entry>
            <entry>display the supported language extensions</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--show-options</option></entry>
            <entry>display the supported command line options</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--info</option></entry>
            <entry>display information about the compiler</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--version, -V</option></entry>
            <entry>display GHC version</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--numeric-version</option></entry>
            <entry>display GHC version (numeric only)</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--print-libdir</option></entry>
            <entry>display GHC library directory</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>

        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Which phases to run</title>

    <para><xref linkend="options-order"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-E</option></entry>
            <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-C</option></entry>
            <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-S</option></entry>
            <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-c</option></entry>
            <entry>Stop after generating object (<literal>.o</literal>) file</entry>
            <entry>mode</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
            <entry>Override default behaviour for source files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Redirecting output</title>

    <para><xref linkend="options-output"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
            <entry>set the suffix to use for intermediate C files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
            <entry>set directory for interface files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
            <entry>set the suffix to use for interface files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-o</option> <replaceable>filename</replaceable></entry>
            <entry>set output filename</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
            <entry>set directory for object files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
            <entry>set the filename in which to put the interface</entry>
            <entry>dynamic</entry>
            <entry></entry>
          </row>
          <row>
            <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
            <entry>set the output file suffix</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
            <entry>redirect FFI stub files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dumpdir</option> <replaceable>dir</replaceable></entry>
            <entry>redirect dump files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-outputdir</option> <replaceable>dir</replaceable></entry>
            <entry>set output directory</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Keeping intermediate files</title>

    <para><xref linkend="keeping-intermediates"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-keep-hc-file</option> or
              <option>-keep-hc-files</option></entry>
            <entry>retain intermediate <literal>.hc</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-keep-llvm-file</option> or
              <option>-keep-llvm-files</option></entry>
            <entry>retain intermediate LLVM <literal>.ll</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-keep-s-file</option> or
              <option>-keep-s-files</option></entry>
            <entry>retain intermediate <literal>.s</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-keep-tmp-files</option></entry>
            <entry>retain all intermediate temporary files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Temporary files</title>

    <para><xref linkend="temp-files"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-tmpdir</option></entry>
            <entry>set the directory for temporary files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Finding imports</title>

    <para><xref linkend="search-path"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
            <entry>add <replaceable>dir</replaceable>,
              <replaceable>dir2</replaceable>, etc. to import path</entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-i</option></entry>
            <entry>Empty the import directory list</entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Interface file options</title>

    <para><xref linkend="hi-options"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-ddump-hi</option></entry>
            <entry>Dump the new interface to stdout</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-hi-diffs</option></entry>
            <entry>Show the differences vs. the old interface</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-minimal-imports</option></entry>
            <entry>Dump a minimal set of imports</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
            <entry>See <xref linkend="modes"/>.</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Recompilation checking</title>

    <para><xref linkend="recomp"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-fforce-recomp</option></entry>
            <entry>Turn off recompilation checking. This is implied by any
              <option>-ddump-X</option> option when compiling a single
              file (i.e. when using <literal>-c</literal>).</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-force-recomp</option></entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2 id="interactive-mode-options">
    <title>Interactive-mode options</title>

    <para><xref linkend="ghci-dot-files"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-ignore-dot-ghci</option></entry>
            <entry>Disable reading of <filename>.ghci</filename> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ghci-script</option></entry>
            <entry>Read additional <filename>.ghci</filename> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fbreak-on-error</option></entry>
            <entry><link linkend="ghci-debugger-exceptions">Break on uncaught exceptions and errors</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-break-on-error</option></entry>
          </row>
          <row>
            <entry><option>-fbreak-on-exception</option></entry>
            <entry><link linkend="ghci-debugger-exceptions">Break on any exception thrown</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-break-on-exception</option></entry>
          </row>
          <row>
            <entry><option>-fghci-hist-size=<replaceable>n</replaceable></option></entry>
            <entry><link linkend="ghci-debugger">Set the number of entries GHCi keeps for <literal>:history</literal></link></entry>
            <entry>dynamic</entry>
            <entry><option>(default is 50)</option></entry>
          </row>
          <row>
            <entry><option>-fprint-evld-with-show</option></entry>
            <entry><link linkend="breakpoints">Enable usage of Show instances in <literal>:print</literal></link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-print-evld-with-show</option></entry>
          </row>
          <row>
            <entry><option>-fprint-bind-result</option></entry>
            <entry><link linkend="ghci-stmts">Turn on printing of binding results in GHCi</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-print-bind-result</option></entry>
          </row>
          <row>
            <entry><option>-fno-print-bind-contents</option></entry>
            <entry><link linkend="breakpoints">Turn off printing of binding contents in GHCi</link></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-implicit-import-qualified</option></entry>
            <entry><link linkend="ghci-import-qualified">Turn off
                implicit qualified import of everything in GHCi</link></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-interactive-print</option></entry>
            <entry><link linkend="ghci-interactive-print">Select the function
                    to use for printing evaluated expressions in GHCi</link></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Packages</title>

    <para><xref linkend="packages"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-this-package-key</option> <replaceable>P</replaceable></entry>
            <entry>Compile to be part of package <replaceable>P</replaceable></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-package</option> <replaceable>P</replaceable></entry>
            <entry>Expose package <replaceable>P</replaceable></entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hide-all-packages</option></entry>
            <entry>Hide all packages by default</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
            <entry>Hide package <replaceable>P</replaceable></entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
            <entry>Ignore package <replaceable>P</replaceable></entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-package-db</option> <replaceable>file</replaceable></entry>
            <entry>Add <replaceable>file</replaceable> to the package db stack.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-clear-package-db</option></entry>
            <entry>Clear the package db stack.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-global-package-db</option></entry>
            <entry>Remove the global package db from the stack.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-global-package-db</option></entry>
            <entry>Add the global package db to the stack.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-user-package-db</option></entry>
            <entry>Remove the user's package db from the stack.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-user-package-db</option></entry>
            <entry>Add the user's package db to the stack.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-auto-link-packages</option></entry>
            <entry>Don't automatically link in the base and rts packages.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-trust</option> <replaceable>P</replaceable></entry>
            <entry>Expose package <replaceable>P</replaceable> and set it to be
              trusted</entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-distrust</option> <replaceable>P</replaceable></entry>
            <entry>Expose package <replaceable>P</replaceable> and set it to be
              distrusted</entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-distrust-all</option> </entry>
            <entry>Distrust all packages by default</entry>
            <entry>dynamic/<literal>:set</literal></entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Language options</title>

    <para>Language options can be enabled either by a command-line option
      <option>-Xblah</option>, or by a <literal>{-# LANGUAGE blah #-}</literal>
      pragma in the file itself.  See <xref linkend="options-language"/>. Some
      options are enabled using <option>-f*</option> flags.</para>

    <informaltable>
      <tgroup cols="4" 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><option>-fcontext-stack=</option><replaceable>n</replaceable></entry>
            <entry>set the <link linkend="undecidable-instances">limit for type-class context reduction</link>. Default is 100.</entry>
            <entry>dynamic</entry>
            <entry></entry>
          </row>
          <row>
            <entry><option>-fglasgow-exts</option></entry>
            <entry>Deprecated. Enable most language extensions; see <xref linkend="options-language"/> for exactly which ones.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-glasgow-exts</option></entry>
          </row>
          <row>
            <entry><option>-firrefutable-tuples</option></entry>
            <entry>Make tuple pattern matching irrefutable</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-irrefutable-tuples</option></entry>
          </row>
          <row>
            <entry><option>-fpackage-trust</option></entry>
            <entry>Enable <link linkend="safe-haskell">Safe Haskell</link> trusted package requirement for trustworthy modules.</entry>
            <entry>dynamic</entry>
            <entry><option>-</option></entry>
          </row>
          <row>
            <entry><option>-ftype-function-depth=</option><replaceable>n</replaceable></entry>
            <entry>set the <link linkend="type-families">limit for type function reductions</link>. Default is 200.</entry>
            <entry>dynamic</entry>
            <entry></entry>
          </row>
          <row>
            <entry><option>-XAllowAmbiguousTypes</option></entry>
            <entry>Allow the user to write <link linkend="ambiguity">ambiguous types</link>,
                   and the type inference engine to infer them.
                </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoAllowAmbiguousTypes</option></entry>
          </row>
          <row>
            <entry><option>-XArrows</option></entry>
            <entry>Enable <link linkend="arrow-notation">arrow
                notation</link> extension</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoArrows</option></entry>
          </row>
          <row>
            <entry><option>-XAutoDeriveTypeable</option></entry>
            <entry>As of GHC 7.10, this option is not needed, and should
                   not be used.  Automatically <link linkend="deriving-typeable">derive Typeable instances for every datatype and type class declaration</link>.
            Implies <option>-XDeriveDataTypeable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoAutoDeriveTypeable</option></entry>
          </row>
          <row>
            <entry><option>-XBangPatterns</option></entry>
            <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoBangPatterns</option></entry>
          </row>
          <row>
            <entry><option>-XBinaryLiterals</option></entry>
            <entry>Enable support for <link linkend="binary-literals">binary literals</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoBinaryLiterals</option></entry>
          </row>
          <row>
            <entry><option>-XCApiFFI</option></entry>
            <entry>Enable <link linkend="ffi-capi">the CAPI calling convention</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoCAPIFFI</option></entry>
          </row>
          <row>
            <entry><option>-XConstrainedClassMethods</option></entry>
            <entry>Enable <link linkend="class-method-types">constrained class methods</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoConstrainedClassMethods</option></entry>
          </row>
          <row>
            <entry><option>-XConstraintKinds</option></entry>
            <entry>Enable a <link linkend="constraint-kind">kind of constraints</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoConstraintKinds</option></entry>
          </row>
          <row>
            <entry><option>-XCPP</option></entry>
            <entry>Enable the <link linkend="c-pre-processor">C preprocessor</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoCPP</option></entry>
          </row>
          <row>
            <entry><option>-XDataKinds</option></entry>
            <entry>Enable <link linkend="promotion">datatype promotion</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDataKinds</option></entry>
          </row>
          <row>
            <entry><option>-XDefaultSignatures</option></entry>
            <entry>Enable <link linkend="class-default-signatures">default signatures</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDefaultSignatures</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveAnyClass</option></entry>
            <entry>Enable <link linkend="derive-any-class">deriving for any
                   class</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveAnyClass</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveDataTypeable</option></entry>
            <entry>Enable <link linkend="deriving-typeable">deriving for the Data class</link>.
              Implied by <option>-XAutoDeriveTypeable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveDataTypeable</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveFunctor</option></entry>
            <entry>Enable <link linkend="deriving-extra">deriving for the Functor class</link>.
              Implied by <option>-XDeriveTraversable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveFunctor</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveFoldable</option></entry>
            <entry>Enable <link linkend="deriving-extra">deriving for the Foldable class</link>.
              Implied by <option>-XDeriveTraversable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveFoldable</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveGeneric</option></entry>
            <entry>Enable <link linkend="deriving-typeable">deriving for the Generic class</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveGeneric</option></entry>
          </row>
          <row>
            <entry><option>-XDeriveTraversable</option></entry>
            <entry>Enable <link linkend="deriving-extra">deriving for the Traversable class</link>.
              Implies <option>-XDeriveFunctor</option> and <option>-XDeriveFoldable</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDeriveTraversable</option></entry>
          </row>
          <row>
            <entry><option>-XDisambiguateRecordFields</option></entry>
            <entry>Enable <link linkend="disambiguate-fields">record field disambiguation</link>.
              Implied by <option>-XRecordWildCards</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoDisambiguateRecordFields</option></entry>
          </row>
          <row>
            <entry><option>-XEmptyCase</option></entry>
            <entry>Allow <link linkend="empty-case">empty case alternatives</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoEmptyCase</option></entry>
          </row>
          <row>
            <entry><option>-XEmptyDataDecls</option></entry>
            <entry>Enable empty data declarations.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoEmptyDataDecls</option></entry>
          </row>
          <row>
            <entry><option>-XExistentialQuantification</option></entry>
            <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExistentialQuantification</option></entry>
          </row>
          <row>
            <entry><option>-XExplicitForAll</option></entry>
            <entry>Enable <link linkend="explicit-foralls">explicit universal quantification</link>.
              Implied by <option>-XScopedTypeVariables</option>,
              <option>-XLiberalTypeSynonyms</option>,
              <option>-XRankNTypes</option> and
              <option>-XExistentialQuantification</option>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExplicitForAll</option></entry>
          </row>
          <row>
            <entry><option>-XExplicitNamespaces</option></entry>
            <entry>Enable using the keyword <literal>type</literal> to specify the namespace of
                   entries in imports and exports (<xref linkend="explicit-namespaces"/>).
                   Implied by <option>-XTypeOperators</option> and <option>-XTypeFamilies</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExplicitNamespaces</option></entry>
          </row>
          <row>
            <entry><option>-XExtendedDefaultRules</option></entry>
            <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoExtendedDefaultRules</option></entry>
          </row>
          <row>
            <entry><option>-XFlexibleContexts</option></entry>
            <entry>Enable <link linkend="flexible-contexts">flexible contexts</link>.
              Implied by <option>-XImplicitParams</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoFlexibleContexts</option></entry>
          </row>
          <row>
            <entry><option>-XFlexibleInstances</option></entry>
            <entry>Enable <link linkend="instance-rules">flexible instances</link>.
              Implies <option>-XTypeSynonymInstances</option>. Implied by <option>-XImplicitParams</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoFlexibleInstances</option></entry>
          </row>
          <row>
            <entry><option>-XForeignFunctionInterface</option></entry>
            <entry>Enable <link linkend="ffi">foreign function interface</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoForeignFunctionInterface</option></entry>
          </row>
          <row>
            <entry><option>-XFunctionalDependencies</option></entry>
            <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.
              Implies <option>-XMultiParamTypeClasses</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoFunctionalDependencies</option></entry>
          </row>
          <row>
            <entry><option>-XGADTs</option></entry>
            <entry>Enable <link linkend="gadt">generalised algebraic data types</link>.
              Implies <option>-XGADTSyntax</option> and <option>-XMonoLocalBinds</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGADTs</option></entry>
          </row>
          <row>
            <entry><option>-XGADTSyntax</option></entry>
            <entry>Enable <link linkend="gadt-style">generalised algebraic data type syntax</link>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGADTSyntax</option></entry>
          </row>
          <row>
            <entry><option>-XGeneralizedNewtypeDeriving</option></entry>
            <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGeneralizedNewtypeDeriving</option></entry>
          </row>
          <row>
            <entry><option>-XGenerics</option></entry>
            <entry>Deprecated, does nothing. No longer enables <link linkend="generic-classes">generic classes</link>.
              See also GHC's support for
              <link linkend="generic-programming">generic programming</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoGenerics</option></entry>
          </row>
          <row>
            <entry><option>-XImplicitParams</option></entry>
            <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
              Implies <option>-XFlexibleContexts</option> and <option>-XFlexibleInstances</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoImplicitParams</option></entry>
          </row>
          <row>
            <entry><option>-XNoImplicitPrelude</option></entry>
            <entry>Don't implicitly <literal>import Prelude</literal>.
              Implied by <option>-XRebindableSyntax</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XImplicitPrelude</option></entry>
          </row>
          <row>
            <entry><option>-XImpredicativeTypes</option></entry>
            <entry>Enable <link linkend="impredicative-polymorphism">impredicative types</link>.
              Implies <option>-XRankNTypes</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoImpredicativeTypes</option></entry>
          </row>
          <row>
            <entry><option>-XIncoherentInstances</option></entry>
            <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
              Implies <option>-XOverlappingInstances</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoIncoherentInstances</option></entry>
          </row>
          <row>
            <entry><option>-XInstanceSigs</option></entry>
            <entry>Enable <link linkend="instance-sigs">instance signatures</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoInstanceSigs</option></entry>
          </row>
          <row>
            <entry><option>-XInterruptibleFFI</option></entry>
            <entry>Enable interruptible FFI.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoInterruptibleFFI</option></entry>
          </row>
          <row>
            <entry><option>-XKindSignatures</option></entry>
            <entry>Enable <link linkend="kinding">kind signatures</link>.
              Implied by <option>-XTypeFamilies</option> and <option>-XPolyKinds</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoKindSignatures</option></entry>
          </row>
          <row>
            <entry><option>-XLambdaCase</option></entry>
            <entry>Enable <link linkend="lambda-case">lambda-case expressions</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoLambdaCase</option></entry>
          </row>
          <row>
            <entry><option>-XLiberalTypeSynonyms</option></entry>
            <entry>Enable <link linkend="type-synonyms">liberalised type synonyms</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoLiberalTypeSynonyms</option></entry>
          </row>
          <row>
            <entry><option>-XMagicHash</option></entry>
            <entry>Allow "#" as a <link linkend="magic-hash">postfix modifier on identifiers</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoMagicHash</option></entry>
          </row>
          <row>
            <entry><option>-XMonadComprehensions</option></entry>
            <entry>Enable <link linkend="monad-comprehensions">monad comprehensions</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoMonadComprehensions</option></entry>
          </row>
          <row>
            <entry><option>-XMonoLocalBinds</option></entry>
            <entry>Enable <link linkend="mono-local-binds">do not generalise local bindings</link>.
              Implied by <option>-XTypeFamilies</option> and <option>-XGADTs</option>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoMonoLocalBinds</option></entry>
          </row>
          <row>
            <entry><option>-XNoMonomorphismRestriction</option></entry>
            <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XMonomorphismRestriction</option></entry>
          </row>
          <row>
            <entry><option>-XMultiParamTypeClasses</option></entry>
            <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.
              Implied by <option>-XFunctionalDependencies</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoMultiParamTypeClasses</option></entry>
          </row>
          <row>
            <entry><option>-XMultiWayIf</option></entry>
            <entry>Enable <link linkend="multi-way-if">multi-way if-expressions</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoMultiWayIf</option></entry>
          </row>
          <row>
            <entry><option>-XNamedFieldPuns</option></entry>
            <entry>Enable <link linkend="record-puns">record puns</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoNamedFieldPuns</option></entry>
          </row>
          <row>
            <entry><option>-XNamedWildCards</option></entry>
            <entry>Enable <link linkend="named-wildcards">named wildcards</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoNamedWildCards</option></entry>
          </row>
          <row>
            <entry><option>-XNegativeLiterals</option></entry>
            <entry>Enable support for <link linkend="negative-literals">negative literals</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoNegativeLiterals</option></entry>
          </row>
          <row>
            <entry><option>-XNoNPlusKPatterns</option></entry>
            <entry>Disable support for <literal>n+k</literal> patterns.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNPlusKPatterns</option></entry>
          </row>
          <row>
            <entry><option>-XNullaryTypeClasses</option></entry>
            <entry>Deprecated, does nothing. <link linkend="nullary-type-classes">nullary (no parameter) type classes</link> are now enabled using <option>-XMultiParamTypeClasses</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoNullaryTypeClasses</option></entry>
          </row>
          <row>
            <entry><option>-XNumDecimals</option></entry>
            <entry>Enable support for 'fractional' integer literals.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoNumDecimals</option></entry>
          </row>
          <row>
            <entry><option>-XOverlappingInstances</option></entry>
            <entry>Enable <link linkend="instance-overlap">overlapping instances</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoOverlappingInstances</option></entry>
          </row>
          <row>
            <entry><option>-XOverloadedLists</option></entry>
            <entry>Enable <link linkend="overloaded-lists">overloaded lists</link>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoOverloadedLists</option></entry>
          </row>
          <row>
            <entry><option>-XOverloadedStrings</option></entry>
            <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoOverloadedStrings</option></entry>
          </row>
          <row>
            <entry><option>-XPackageImports</option></entry>
            <entry>Enable <link linkend="package-imports">package-qualified imports</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPackageImports</option></entry>
          </row>
          <row>
            <entry><option>-XParallelArrays</option></entry>
            <entry>Enable parallel arrays.
              Implies <option>-XParallelListComp</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoParallelArrays</option></entry>
          </row>
          <row>
            <entry><option>-XParallelListComp</option></entry>
            <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.
              Implied by <option>-XParallelArrays</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoParallelListComp</option></entry>
          </row>
          <row>
            <entry><option>-XPartialTypeSignatures</option></entry>
            <entry>Enable <link linkend="partial-type-signatures">partial type signatures</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPartialTypeSignatures</option></entry>
          </row>
          <row>
            <entry><option>-XPatternGuards</option></entry>
            <entry>Enable <link linkend="pattern-guards">pattern guards</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPatternGuards</option></entry>
          </row>
          <row>
            <entry><option>-XPatternSynonyms</option></entry>
            <entry>Enable <link linkend="pattern-synonyms">pattern synonyms</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPatternSynonyms</option></entry>
          </row>
          <row>
            <entry><option>-XPolyKinds</option></entry>
            <entry>Enable <link linkend="kind-polymorphism">kind polymorphism</link>.
                   Implies <option>-XKindSignatures</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPolyKinds</option></entry>
          </row>
          <row>
            <entry><option>-XPolymorphicComponents</option></entry>
            <entry>Enable <link linkend="universal-quantification">polymorphic components for data constructors</link>.</entry>
            <entry>dynamic, synonym for <option>-XRankNTypes</option></entry>
            <entry><option>-XNoPolymorphicComponents</option></entry>
          </row>
          <row>
            <entry><option>-XPostfixOperators</option></entry>
            <entry>Enable <link linkend="postfix-operators">postfix operators</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoPostfixOperators</option></entry>
          </row>
          <row>
            <entry><option>-XQuasiQuotes</option></entry>
            <entry>Enable <link linkend="th-quasiquotation">quasiquotation</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoQuasiQuotes</option></entry>
          </row>
          <row>
            <entry><option>-XRank2Types</option></entry>
            <entry>Enable <link linkend="universal-quantification">rank-2 types</link>.</entry>
            <entry>dynamic, synonym for <option>-XRankNTypes</option></entry>
            <entry><option>-XNoRank2Types</option></entry>
          </row>
          <row>
            <entry><option>-XRankNTypes</option></entry>
            <entry>Enable <link linkend="universal-quantification">rank-N types</link>.
              Implied by <option>-XImpredicativeTypes</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoRankNTypes</option></entry>
          </row>
          <row>
            <entry><option>-XRebindableSyntax</option></entry>
            <entry>Employ <link linkend="rebindable-syntax">rebindable syntax</link>.
              Implies <option>-XNoImplicitPrelude</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoRebindableSyntax</option></entry>
          </row>
          <row>
            <entry><option>-XRecordWildCards</option></entry>
            <entry>Enable <link linkend="record-wildcards">record wildcards</link>.
              Implies <option>-XDisambiguateRecordFields</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoRecordWildCards</option></entry>
          </row>
          <row>
            <entry><option>-XRecursiveDo</option></entry>
            <entry>Enable <link linkend="recursive-do-notation">recursive do (mdo) notation</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoRecursiveDo</option></entry>
          </row>
          <row>
            <entry><option>-XRelaxedPolyRec</option></entry>
            <entry><emphasis>(deprecated)</emphasis> Relaxed checking for 
              <link linkend="typing-binds">mutually-recursive polymorphic functions</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoRelaxedPolyRec</option></entry>
          </row>
          <row>
            <entry><option>-XRoleAnnotations</option></entry>
            <entry>Enable <link linkend="role-annotations">role annotations</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoRoleAnnotations</option></entry>
          </row>
          <row>
            <entry><option>-XSafe</option></entry>
            <entry>Enable the <link linkend="safe-haskell">Safe Haskell</link> Safe mode.</entry>
            <entry>dynamic</entry>
            <entry><option>-</option></entry>
          </row>
          <row>
            <entry><option>-XScopedTypeVariables</option></entry>
            <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
              </entry>
            <entry>dynamic</entry>
            <entry><option>-XNoScopedTypeVariables</option></entry>
          </row>
          <row>
            <entry><option>-XStandaloneDeriving</option></entry>
            <entry>Enable <link linkend="stand-alone-deriving">standalone deriving</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoStandaloneDeriving</option></entry>
          </row>
          <row>
            <entry><option>-XTemplateHaskell</option></entry>
            <entry>Enable <link linkend="template-haskell">Template Haskell</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoTemplateHaskell</option></entry>
          </row>
          <row>
            <entry><option>-XNoTraditionalRecordSyntax</option></entry>
            <entry>Disable support for traditional record syntax (as supported by Haskell 98) <literal>C {f = x}</literal></entry>
            <entry>dynamic</entry>
            <entry><option>-XTraditionalRecordSyntax</option></entry>
          </row>
          <row>
            <entry><option>-XTransformListComp</option></entry>
            <entry>Enable <link linkend="generalised-list-comprehensions">generalised list comprehensions</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoTransformListComp</option></entry>
          </row>
          <row>
            <entry><option>-XTrustworthy</option></entry>
            <entry>Enable the <link linkend="safe-haskell">Safe Haskell</link> Trustworthy mode.</entry>
            <entry>dynamic</entry>
            <entry><option>-</option></entry>
          </row>
          <row>
            <entry><option>-XTupleSections</option></entry>
            <entry>Enable <link linkend="tuple-sections">tuple sections</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoTupleSections</option></entry>
          </row>
          <row>
            <entry><option>-XTypeFamilies</option></entry>
            <entry>Enable <link linkend="type-families">type families</link>.
              Implies <option>-XExplicitNamespaces</option>, <option>-XKindSignatures</option>
              and <option>-XMonoLocalBinds</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoTypeFamilies</option></entry>
          </row>
          <row>
            <entry><option>-XTypeOperators</option></entry>
            <entry>Enable <link linkend="type-operators">type operators</link>.
              Implies <option>-XExplicitNamespaces</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoTypeOperators</option></entry>
          </row>
          <row>
            <entry><option>-XTypeSynonymInstances</option></entry>
            <entry>Enable <link linkend="flexible-instance-head">type synonyms in instance heads</link>.
              Implied by <option>-XFlexibleInstances</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoTypeSynonymInstances</option></entry>
          </row>
          <row>
            <entry><option>-XUnboxedTuples</option></entry>
            <entry>Enable <link linkend="unboxed-tuples">unboxed tuples</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoUnboxedTuples</option></entry>
          </row>
          <row>
            <entry><option>-XUndecidableInstances</option></entry>
            <entry>Enable <link linkend="undecidable-instances">undecidable instances</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoUndecidableInstances</option></entry>
          </row>
          <row>
            <entry><option>-XUnicodeSyntax</option></entry>
            <entry>Enable <link linkend="unicode-syntax">unicode syntax</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoUnicodeSyntax</option></entry>
          </row>
          <row>
            <entry><option>-XUnliftedFFITypes</option></entry>
            <entry>Enable unlifted FFI types.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoUnliftedFFITypes</option></entry>
          </row>
          <row>
            <entry><option>-XUnsafe</option></entry>
            <entry>Enable <link linkend="safe-haskell">Safe Haskell</link> Unsafe mode.</entry>
            <entry>dynamic</entry>
            <entry><option>-</option></entry>
          </row>
          <row>
            <entry><option>-XViewPatterns</option></entry>
            <entry>Enable <link linkend="view-patterns">view patterns</link>.</entry>
            <entry>dynamic</entry>
            <entry><option>-XNoViewPatterns</option></entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Warnings</title>

    <para><xref linkend="options-sanity"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-W</option></entry>
            <entry>enable normal warnings</entry>
            <entry>dynamic</entry>
            <entry><option>-w</option></entry>
          </row>
          <row>
            <entry><option>-w</option></entry>
            <entry>disable all warnings</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-Wall</option></entry>
            <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
            <entry>dynamic</entry>
            <entry><option>-w</option></entry>
          </row>
          <row>
            <entry><option>-Werror</option></entry>
            <entry>make warnings fatal</entry>
            <entry>dynamic</entry>
            <entry>-Wwarn</entry>
          </row>
          <row>
            <entry><option>-Wwarn</option></entry>
            <entry>make warnings non-fatal</entry>
            <entry>dynamic</entry>
            <entry>-Werror</entry>
          </row>

          <row>
            <entry><option>-fdefer-type-errors</option></entry>
            <entry>
                Turn type errors into warnings, <link linkend="defer-type-errors">
                deferring the error until runtime</link>. Implies
                <option>-fdefer-typed-holes</option>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-defer-type-errors</option></entry>
          </row>

          <row>
            <entry><option>-fdefer-typed-holes</option></entry>
            <entry>
                Convert <link linkend="typed-holes">typed hole</link> errors
                into warnings, <link linkend="defer-type-errors">deferring the
                error until runtime</link>. Implied by
                <option>-fdefer-type-errors</option>. See also
                <option>-fwarn-typed-holes</option>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-defer-typed-holes</option></entry>
          </row>

          <row>
            <entry><option>-fhelpful-errors</option></entry>
            <entry>Make suggestions for mis-spelled names.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-helpful-errors</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-deprecated-flags</option></entry>
            <entry>warn about uses of commandline flags that are deprecated</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-deprecated-flags</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-duplicate-constraints</option></entry>
            <entry>warn when a constraint appears duplicated in a type signature</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-duplicate-constraints</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-duplicate-exports</option></entry>
            <entry>warn when an entity is exported multiple times</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-duplicate-exports</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-hi-shadowing</option></entry>
            <entry>warn when a <literal>.hi</literal> file in the
              current directory shadows a library</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-hi-shadowing</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-identities</option></entry>
            <entry>warn about uses of Prelude numeric conversions that are probably
              the identity (and hence could be omitted)</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-identities</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-implicit-prelude</option></entry>
            <entry>warn when the Prelude is implicitly imported</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-implicit-prelude</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-incomplete-patterns</option></entry>
            <entry>warn when a pattern match could fail</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-incomplete-patterns</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-incomplete-uni-patterns</option></entry>
            <entry>warn when a pattern match in a lambda expression or pattern binding could fail</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-incomplete-uni-patterns</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-incomplete-record-updates</option></entry>
            <entry>warn when a record update could fail</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-incomplete-record-updates</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-lazy-unlifted-bindings</option></entry>
            <entry><emphasis>(deprecated)</emphasis> warn when a pattern binding looks lazy but must be strict</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-lazy-unlifted-bindings</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-missing-fields</option></entry>
            <entry>warn when fields of a record are uninitialised</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-missing-fields</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-missing-import-lists</option></entry>
            <entry>warn when an import declaration does not explicitly
              list all the names brought into scope</entry>
            <entry>dynamic</entry>
            <entry><option>-fnowarn-missing-import-lists</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-missing-methods</option></entry>
            <entry>warn when class methods are undefined</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-missing-methods</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-missing-signatures</option></entry>
            <entry>warn about top-level functions without signatures</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-missing-signatures</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-missing-exported-sigs</option></entry>
            <entry>warn about top-level functions without signatures, only if they are exported. takes precedence over -fwarn-missing-signatures</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-missing-exported-sigs</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-missing-local-sigs</option></entry>
            <entry>warn about polymorphic local bindings without signatures</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-missing-local-sigs</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-monomorphism-restriction</option></entry>
            <entry>warn when the Monomorphism Restriction is applied</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-monomorphism-restriction</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-name-shadowing</option></entry>
            <entry>warn when names are shadowed</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-name-shadowing</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-orphans, -fwarn-auto-orphans</option></entry>
            <entry>warn when the module contains <link linkend="orphan-modules">orphan instance declarations
                or rewrite rules</link></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-orphans, -fno-warn-auto-orphans</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-overlapping-patterns</option></entry>
            <entry>warn about overlapping patterns</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-overlapping-patterns</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-tabs</option></entry>
            <entry>warn if there are tabs in the source file</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-tabs</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-type-defaults</option></entry>
            <entry>warn when defaulting happens</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-type-defaults</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unrecognised-pragmas</option></entry>
            <entry>warn about uses of pragmas that GHC doesn't recognise</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unrecognised-pragmas</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unticked-promoted-constructors</option></entry>
            <entry>warn if promoted constructors are not ticked </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unticked-promoted-constructors</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unused-binds</option></entry>
            <entry>warn about bindings that are unused</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unused-binds</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unused-imports</option></entry>
            <entry>warn about unnecessary imports</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unused-imports</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unused-matches</option></entry>
            <entry>warn about variables in patterns that aren't used</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unused-matches</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unused-do-bind</option></entry>
            <entry>warn about do bindings that appear to throw away values of types other than <literal>()</literal></entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unused-do-bind</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-wrong-do-bind</option></entry>
            <entry>warn about do bindings that appear to throw away monadic values that you should have bound instead</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-wrong-do-bind</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-unsafe</option></entry>
            <entry>warn if the module being compiled is regarded to be unsafe.
              Should be used to check the safety status of modules when using safe
              inference. Works on all module types, even those using explicit
              <link linkend="safe-haskell">Safe Haskell</link> modes (such as
              <option>-XTrustworthy</option>) and so can be used to have the
              compiler check any assumptions made.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-unsafe</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-safe</option></entry>
            <entry>warn if the module being compiled is regarded to be safe.
              Should be used to check the safety status of modules when using safe
              inference. Works on all module types, even those using explicit
              <link linkend="safe-haskell">Safe Haskell</link> modes (such as
              <option>-XTrustworthy</option>) and so can be used to have the
              compiler check any assumptions made.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-safe</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-trustworthy-safe</option></entry>
            <entry>warn if the module being compiled is marked as
              <option>-XTrustworthy</option> but it could instead be marked as
              <option>-XSafe</option>, a more informative bound. Can be used to
              detect once a Safe Haskell bound can be improved as dependencies
              are updated.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-safe</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-warnings-deprecations</option></entry>
            <entry>warn about uses of functions &amp; types that have warnings or deprecated pragmas</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-warnings-deprecations</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-amp</option></entry>
            <entry><emphasis>(deprecated)</emphasis> warn on definitions conflicting with the Applicative-Monad Proposal (AMP)</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-amp</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-typed-holes</option></entry>
            <entry>
                Report warnings when <link linkend="typed-holes">typed hole</link>
                errors are <link linkend="defer-type-errors">deferred until
                runtime</link>. See <option>-fdefer-typed-holes</option>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-typed-holes</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-partial-type-signatures</option></entry>
            <entry>
              warn about holes in partial type signatures when
              <option>-XPartialTypesignatures</option> is enabled. Not
              applicable when <option>-XPartialTypesignatures</option> is not
              enabled, in which case errors are generated for such holes.
              See <xref linkend="partial-type-signatures"/>.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-partial-type-signatures</option></entry>
          </row>

          <row>
            <entry><option>-fwarn-deriving-typeable</option></entry>
            <entry>
              warn when encountering a request to derive an instance of
              class <literal>Typeable</literal>. As of GHC 7.10, such
              declarations are unnecessary and are ignored by the compiler
              because GHC has a custom solver for discharging this type of
              constraint.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-warn-deriving-typeable</option></entry>
          </row>


        </tbody>
      </tgroup>
    </informaltable>

  </sect2>
  <sect2>
    <title>Optimisation levels</title>

    <para>These options are described in more detail in <xref linkend="options-optimise"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-O0</option></entry>
            <entry>Disable optimisations (default)</entry>
            <entry>dynamic</entry>
            <entry><option>-O</option></entry>
          </row>
          <row>
            <entry><option>-O</option> or <option>-O1</option></entry>
            <entry>Enable level 1 optimisations</entry>
            <entry>dynamic</entry>
            <entry><option>-O0</option></entry>
          </row>
          <row>
            <entry><option>-O2</option></entry>
            <entry>Enable level 2 optimisations</entry>
            <entry>dynamic</entry>
            <entry><option>-O0</option></entry>
          </row>
          <row>
            <entry><option>-Odph</option></entry>
            <entry>Enable level 2 optimisations, set <option>-fmax-simplifier-iterations=20</option>
                   and <option>-fsimplifier-phases=3</option>.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>

    <para>See <xref linkend="options-f-compact"/> for a list of optimisations enabled on level 1 and level 2.</para>

  </sect2>
  <sect2 id="options-f-compact">
    <title>Individual optimisations</title>

    <para>These options are described in more detail in <xref linkend="options-f"/>.
          If a flag is implied by <option>-O</option> then it is also implied by
          <option>-O2</option> (unless flag description explicitly says otherwise).
          If a flag is implied by <option>-O0</option> only then the flag is not
          implied by <option>-O</option> and <option>-O2</option>.
    </para>

    <informaltable>
      <tgroup cols="4" 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><option>-fcall-arity</option></entry>
            <entry>Enable call-arity optimisation. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-call-arity</option></entry>
          </row>

          <row>
            <entry><option>-fcase-merge</option></entry>
            <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-case-merge</option></entry>
          </row>

          <row>
            <entry><option>-fcmm-elim-common-blocks</option></entry>
            <entry>Enable Cmm common block elimination. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-cmm-elim-common-blocks</option></entry>
          </row>

          <row>
            <entry><option>-fcmm-sink</option></entry>
            <entry>Enable Cmm sinking. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-cmm-sink</option></entry>
          </row>

          <row>
            <entry><option>-fcpr-off</option></entry>
            <entry>Switch off CPR analysis in the demand analyser.</entry>
            <entry>static</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fcse</option></entry>
            <entry>Enable common sub-expression elimination. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-cse</option></entry>
          </row>

          <row>
            <entry><option>-fdicts-cheap</option></entry>
            <entry>Make dictionary-valued expressions seem cheap to the optimiser.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-dicts-cheap</option></entry>
          </row>

          <row>
            <entry><option>-fdicts-strict</option></entry>
            <entry>Make dictionaries strict</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-dicts-strict</option></entry>
          </row>

          <row>
            <entry><option>-fdmd-tx-dict-sel</option>
            </entry>
            <entry>Use a special demand transformer for dictionary selectors.
                   Always enabled by default.
            </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-dmd-tx-dict-sel</option></entry>
          </row>

          <row>
            <entry><option>-fdo-eta-reduction</option></entry>
            <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-do-eta-reduction</option></entry>
          </row>

          <row>
            <entry><option>-fdo-lambda-eta-expansion</option></entry>
            <entry>Enable lambda eta-expansion. Always enabled by default.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-do-lambda-eta-expansion</option></entry>
          </row>

          <row>
            <entry><option>-feager-blackholing</option></entry>
            <entry>Turn on <link linkend="parallel-compile-options">eager blackholing</link></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fenable-rewrite-rules</option></entry>
            <entry>Switch on all rewrite rules (including rules
              generated by automatic specialisation of overloaded functions).
              Implied by <option>-O</option>. </entry>
            <entry>dynamic</entry>
            <entry><option>-fno-enable-rewrite-rules</option></entry>
          </row>

          <row>
            <entry><option>-fexcess-precision</option></entry>
            <entry>Enable excess intermediate precision</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-excess-precision</option></entry>
          </row>

          <row>
            <entry><option>-fexpose-all-unfoldings</option></entry>
            <entry>Expose all unfoldings, even for very large or recursive functions.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-expose-all-unfoldings</option></entry>
          </row>

          <row>
            <entry><option>-ffloat-in</option></entry>
            <entry>Turn on the float-in transformation. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-float-in</option></entry>
          </row>

          <row>
            <entry><option>-ffull-laziness</option></entry>
            <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-full-laziness</option></entry>
          </row>

          <row>
            <entry><option>-ffun-to-thunk</option></entry>
            <entry>Allow worker-wrapper to convert a function closure into a
            thunk if the function does not use any of its arguments. Off by
            default.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-fun-to-thunk</option></entry>
          </row>

          <row>
            <entry><option>-fignore-asserts</option></entry>
            <entry>Ignore assertions in the source. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-ignore-asserts</option></entry>
          </row>

          <row>
            <entry><option>-fignore-interface-pragmas</option></entry>
            <entry>Ignore pragmas in interface files. Implied by <option>-O0</option> only.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-ignore-interface-pragmas</option></entry>
          </row>

          <row>
            <entry><option>-flate-dmd-anal</option></entry>
            <entry>Run demand analysis again, at the end of the simplification
            pipeline</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-late-dmd-anal</option></entry>
          </row>

          <row>
            <entry><option>-fliberate-case</option></entry>
            <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
            <entry>dynamic</entry>
            <entry>-fno-liberate-case</entry>
          </row>

          <row>
            <entry><option>-fliberate-case-threshold</option>=<replaceable>n</replaceable></entry>
            <entry>Set the size threshold for the liberate-case transformation to <replaceable>n</replaceable> (default: 2000)</entry>
            <entry>dynamis</entry>
            <entry><option>-fno-liberate-case-threshold</option></entry>
          </row>

          <row>
            <entry><option>-floopification</option></entry>
            <entry>Turn saturated self-recursive tail-calls into local jumps in the generated assembly.
                   Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-loopification</option></entry>
          </row>

          <row>
            <entry><option>-fmax-inline-alloc-size</option>=<replaceable>n</replaceable></entry>
            <entry>Set the maximum size of inline array allocations to
            <replaceable>n</replaceable> bytes (default: 128). GHC
            will allocate non-pinned arrays of statically known size
            in the current nursery block if they're no bigger than
            <replaceable>n</replaceable> bytes, ignoring GC overheap.
            This value should be quite a bit smaller than the block
            size (typically: 4096).</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry>
            <option>-fmax-inline-memcpy-insns</option>=<replaceable>n</replaceable>
            </entry>
            <entry>Inline memcpy calls if they would generate no more
            than <replaceable>n</replaceable> pseudo instructions
            (default: 32).
            </entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry>
            <option>-fmax-inline-memset-insns</option>=<replaceable>n</replaceable>
            </entry>
            <entry>Inline memset calls if they would generate no more
            than <replaceable>n</replaceable> pseudo instructions
            (default: 32).
            </entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fmax-relevant-binds=<replaceable>n</replaceable></option></entry>
            <entry>Set the maximum number of bindings to display in type error messages (default 6).</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-max-relevant-bindings</option></entry>
          </row>

          <row>
            <entry><option>-fmax-simplifier-iterations=<replaceable>n</replaceable></option></entry>
            <entry>Set the max iterations for the simplifier (default 4).</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fmax-worker-args=<replaceable>n</replaceable></option></entry>
            <entry>If a worker has that many arguments, none will be
              unpacked anymore (default: 10)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fno-opt-coercion</option></entry>
            <entry>Turn off the coercion optimiser</entry>
            <entry>static</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fno-pre-inlining</option></entry>
            <entry>Turn off pre-inlining</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fno-state-hack</option></entry>
            <entry>Turn off the "state hack" whereby any lambda with a real-world state token
              as argument is considered to be single-entry.  Hence OK to inline things inside it.</entry>
            <entry>static</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fomit-interface-pragmas</option></entry>
            <entry>Don't generate interface pragmas. Implied by <option>-O0</option> only.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-omit-interface-pragmas</option></entry>
          </row>

          <row>
            <entry><option>-fomit-yields</option></entry>
            <entry>Omit heap checks when no allocation is being performed.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-omit-yields</option></entry>
          </row>

          <row>
            <entry><option>-fpedantic-bottoms</option></entry>
            <entry>Make GHC be more precise about its treatment of bottom (but see also
              <option>-fno-state-hack</option>). In particular, GHC will not
              eta-expand through a case expression.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-pedantic-bottoms</option></entry>
          </row>

          <row>
            <entry><option>-fregs-graph</option></entry>
            <entry>Use the graph colouring register allocator for register allocation
                   in the native code generator. Implied by <option>-O2</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-regs-graph</option></entry>
          </row>

          <row>
            <entry><option>-fregs-iterative</option></entry>
            <entry>Use the iterative coalescing graph colouring register allocator
                   in the native code generator.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-regs-iterative</option></entry>
          </row>

          <row>
            <entry><option>-fsimplifier-phases=<replaceable>n</replaceable></option></entry>
            <entry>Set the number of phases for the simplifier (default 2).
              Ignored with <option>-O0</option>.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fsimpl-tick-factor=<replaceable>n</replaceable></option></entry>
            <entry>Set the percentage factor for simplifier ticks (default 100)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fspec-constr</option></entry>
            <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-spec-constr</option></entry>
          </row>

          <row>
            <entry><option>-fspec-constr-count</option>=<replaceable>n</replaceable></entry>
            <entry>Set to <replaceable>n</replaceable> (default: 3) the maximum number of
              specialisations that will be created for any one function
              by the SpecConstr transformation</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-spec-constr-count</option></entry>
          </row>

          <row>
            <entry><option>-fspec-constr-threshold</option>=<replaceable>n</replaceable></entry>
            <entry>Set the size threshold for the SpecConstr transformation
                   to <replaceable>n</replaceable> (default: 2000)</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-spec-constr-threshold</option></entry>
          </row>

          <row>
            <entry><option>-fspecialise</option></entry>
            <entry>Turn on specialisation of overloaded functions. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-specialise</option></entry>
          </row>

          <row>
            <entry><option>-fstatic-argument-transformation</option></entry>
            <entry>Turn on the static argument transformation.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-static-argument-transformation</option></entry>
          </row>

          <row>
            <entry><option>-fstrictness</option></entry>
            <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-strictness</option></entry>
          </row>

          <row>
            <entry><option>-fstrictness-before</option>=<replaceable>n</replaceable></entry>
            <entry>Run an additional strictness analysis before simplifier
              phase <replaceable>n</replaceable></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-funbox-small-strict-fields</option></entry>
            <entry>Flatten strict constructor fields with a
              pointer-sized representation.  Implied by <option>-O</option>.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-unbox-small-strict-fields</option></entry>
          </row>

          <row>
            <entry><option>-funbox-strict-fields</option></entry>
            <entry>Flatten strict constructor fields</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-unbox-strict-fields</option></entry>
          </row>

          <row>
            <entry><option>-funfolding-creation-threshold=<replaceable>n</replaceable></option></entry>
            <entry>Tweak unfolding settings. Default: 750</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-funfolding-dict-discount=<replaceable>n</replaceable></option></entry>
            <entry>Tweak unfolding settings. Default: 30</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-funfolding-fun-discount=<replaceable>n</replaceable></option></entry>
            <entry>Tweak unfolding settings. Default: 60</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-funfolding-keeness-factor=<replaceable>n</replaceable></option></entry>
            <entry>Tweak unfolding settings. Default: 1.5</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-funfolding-use-threshold=<replaceable>n</replaceable></option></entry>
            <entry>Tweak unfolding settings. Default: 60</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>

          <row>
            <entry><option>-fvectorisation-avoidance</option></entry>
            <entry>Enable vectorisation avoidance. Always enabled by default.</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-vectorisation-avoidance</option></entry>
          </row>

          <row>
            <entry><option>-fvectorise</option></entry>
            <entry>Enable vectorisation of nested data parallelism</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-vectorise</option></entry>
          </row>

        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Profiling options</title>

    <para><xref linkend="profiling"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-prof</option></entry>
            <entry>Turn on profiling</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fprof-auto</option></entry>
            <entry>Auto-add <literal>SCC</literal>s to all bindings
              not marked INLINE</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-prof-auto</option></entry>
          </row>
          <row>
            <entry><option>-fprof-auto-top</option></entry>
            <entry>Auto-add <literal>SCC</literal>s to all top-level
              bindings not marked INLINE</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-prof-auto</option></entry>
          </row>
          <row>
            <entry><option>-fprof-auto-exported</option></entry>
            <entry>Auto-add <literal>SCC</literal>s to all exported
              bindings not marked INLINE</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-prof-auto</option></entry>
          </row>
          <row>
            <entry><option>-fprof-cafs</option></entry>
            <entry>Auto-add <literal>SCC</literal>s to all CAFs</entry>
            <entry>dynamic</entry>
            <entry><option>-fno-prof-cafs</option></entry>
          </row>
          <row>
            <entry><option>-fno-prof-count-entries</option></entry>
            <entry>Do not collect entry counts</entry>
            <entry>dynamic</entry>
            <entry><option>-fprof-count-entries</option></entry>
          </row>
          <row>
            <entry><option>-ticky</option></entry>
            <entry><link linkend="ticky-ticky">Turn on ticky-ticky profiling</link></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Program coverage options</title>

    <para><xref linkend="hpc"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-fhpc</option></entry>
            <entry>Turn on Haskell program coverage instrumentation</entry>
            <entry>dynamic</entry>
            <entry><option>-</option></entry>
          </row>
          <row>
            <entry><option>-hpcdir dir</option></entry>
            <entry>Directory to deposit .mix files during compilation (default is .hpc)</entry>
            <entry>dynamic</entry>
            <entry><option>-</option></entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Haskell pre-processor options</title>

    <para><xref linkend="pre-processor"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-F</option></entry>
            <entry>
              Enable the use of a pre-processor
              (set with <option>-pgmF</option>)
            </entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>C pre-processor options</title>

    <para><xref linkend="c-pre-processor"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-cpp</option></entry>
            <entry>Run the C pre-processor on Haskell source files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
            <entry>Define a symbol in the C pre-processor</entry>
            <entry>dynamic</entry>
            <entry><option>-U</option><replaceable>symbol</replaceable></entry>
          </row>
          <row>
            <entry><option>-U</option><replaceable>symbol</replaceable></entry>
            <entry>Undefine a symbol in the C pre-processor</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-I</option><replaceable>dir</replaceable></entry>
            <entry>Add <replaceable>dir</replaceable> to the
              directory search list for <literal>#include</literal> files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Code generation options</title>

    <para><xref linkend="options-codegen"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-fasm</option></entry>
            <entry>Use the <link linkend="native-code-gen">native code
                generator</link></entry>
            <entry>dynamic</entry>
            <entry>-fllvm</entry>
          </row>
          <row>
            <entry><option>-fllvm</option></entry>
            <entry>Compile using the <link linkend="llvm-code-gen">LLVM code
                generator</link></entry>
            <entry>dynamic</entry>
            <entry>-fasm</entry>
          </row>
          <row>
            <entry><option>-fno-code</option></entry>
            <entry>Omit code generation</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fwrite-interface</option></entry>
            <entry>Always write interface files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fbyte-code</option></entry>
            <entry>Generate byte-code</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fobject-code</option></entry>
            <entry>Generate object code</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Linking options</title>

    <para><xref linkend="options-linker"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-shared</option></entry>
            <entry>Generate a shared library (as opposed to an executable)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-staticlib</option></entry>
            <entry>On Darwin/OS X/iOS only, generate a standalone static library
              (as opposed to an executable).
              This is the usual way to compile for iOS.
              </entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fPIC</option></entry>
            <entry>Generate position-independent code (where available)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dynamic</option></entry>
            <entry>Use dynamic Haskell libraries (if available)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dynamic-too</option></entry>
            <entry>Build dynamic object files <emphasis>as well as</emphasis> static object files during compilation</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dyno</option></entry>
            <entry>Set the output path for the <emphasis>dynamically</emphasis> linked objects</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dynosuf</option></entry>
            <entry>Set the output suffix for dynamic object files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dynload</option></entry>
            <entry>Selects one of a number of modes for finding shared
              libraries at runtime.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-framework</option> <replaceable>name</replaceable></entry>
            <entry>On Darwin/OS X/iOS only, link in the framework <replaceable>name</replaceable>.
              This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
            <entry>On Darwin/OS X/iOS only, add <replaceable>dir</replaceable> to the list of
              directories searched for frameworks.
              This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-l</option><replaceable>lib</replaceable></entry>
            <entry>Link in library <replaceable>lib</replaceable></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-L</option><replaceable>dir</replaceable></entry>
            <entry>Add <replaceable>dir</replaceable> to the list of
              directories searched for libraries</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-main-is</option></entry>
            <entry>Set main module and function</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>--mk-dll</option></entry>
            <entry>DLL-creation mode (Windows only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-hs-main</option></entry>
            <entry>Don't assume this program contains <literal>main</literal></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-rtsopts</option>, <option>-rtsopts={none,some,all}</option></entry>
            <entry>Control whether the RTS behaviour can be tweaked via command-line
              flags and the <literal>GHCRTS</literal> environment
              variable. Using <literal>none</literal> means no RTS flags can be given; <literal>some</literal> means only a minimum of safe options can be given (the default), and <literal>all</literal> (or no argument at all) means that all RTS flags are permitted.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-with-rtsopts=<replaceable>opts</replaceable></option></entry>
            <entry>Set the default RTS options to
              <replaceable>opts</replaceable>.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-no-link</option></entry>
            <entry>Omit linking</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-split-objs</option></entry>
            <entry>Split objects (for libraries)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-static</option></entry>
            <entry>Use static Haskell libraries</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-threaded</option></entry>
            <entry>Use the threaded runtime</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-debug</option></entry>
            <entry>Use the debugging runtime</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ticky</option></entry>
            <entry>For linking, this simply implies <option>-debug</option>;
            see <xref linkend="ticky-ticky"/>.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-eventlog</option></entry>
            <entry>Enable runtime event tracing</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-gen-manifest</option></entry>
            <entry>Do not generate a manifest file (Windows only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-embed-manifest</option></entry>
            <entry>Do not embed the manifest in the executable (Windows only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-shared-implib</option></entry>
            <entry>Don't generate an import library for a DLL (Windows only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dylib-install-name</option> <replaceable>path</replaceable></entry>
            <entry>Set the install name (via <literal>-install_name</literal> passed to Apple's
              linker), specifying the full install path of the library file. Any libraries
              or executables that link with it later will pick up that path as their
              runtime search location for it. (Darwin/OS X only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-rdynamic</option></entry>
            <entry>This instructs the linker to add all symbols, not only used ones, to the
              dynamic symbol table. Currently Linux and Windows/MinGW32 only.
              This is equivalent to using <literal>-optl -rdynamic</literal> on Linux,
              and <literal>-optl -export-all-symbols</literal> on Windows.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Plugin options</title>

    <para><xref linkend="compiler-plugins"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-fplugin</option>=<replaceable>module</replaceable></entry>
            <entry>Load a plugin exported by a given module</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fplugin-opt</option>=<replaceable>module:args</replaceable></entry>
            <entry>Give arguments to a plugin module; module must be specified with <option>-fplugin</option></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>


  <sect2>
    <title>Replacing phases</title>

    <para><xref linkend="replacing-phases"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the C
              pre-processor (with <option>-cpp</option> only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
            <row>
              <entry><option>-pgmlo</option> <replaceable>cmd</replaceable></entry>
              <entry>Use <replaceable>cmd</replaceable> as the LLVM optimiser</entry>
              <entry>dynamic</entry>
              <entry>-</entry>
            </row>
            <row>
              <entry><option>-pgmlc</option> <replaceable>cmd</replaceable></entry>
              <entry>Use <replaceable>cmd</replaceable> as the LLVM compiler</entry>
              <entry>dynamic</entry>
              <entry>-</entry>
            </row>
          <row>
            <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the pre-processor
              (with <option>-F</option> only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgmwindres</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the program for
              embedding manifests on Windows.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-pgmlibtool</option> <replaceable>cmd</replaceable></entry>
            <entry>Use <replaceable>cmd</replaceable> as the command for libtool
              (with <option>-staticlib</option> only).</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
    <indexterm><primary><option>-pgmL</option></primary></indexterm>
    <indexterm><primary><option>-pgmP</option></primary></indexterm>
    <indexterm><primary><option>-pgmc</option></primary></indexterm>
    <indexterm><primary><option>-pgmlo</option></primary></indexterm>
    <indexterm><primary><option>-pgmlc</option></primary></indexterm>
    <indexterm><primary><option>-pgma</option></primary></indexterm>
    <indexterm><primary><option>-pgml</option></primary></indexterm>
    <indexterm><primary><option>-pgmdll</option></primary></indexterm>
    <indexterm><primary><option>-pgmF</option></primary></indexterm>

  </sect2>

  <sect2>
    <title>Forcing options to particular phases</title>

    <para><xref linkend="forcing-options-through"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-optL</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optP</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to cpp (with
              <option>-cpp</option> only)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optF</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the
              custom pre-processor</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optc</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optlo</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the LLVM optimiser</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optlc</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the LLVM compiler</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-opta</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the assembler</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optl</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the linker</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-optwindres</option> <replaceable>option</replaceable></entry>
            <entry>pass <replaceable>option</replaceable> to <literal>windres</literal>.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Platform-specific options</title>

    <para><xref linkend="options-platform"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-msse2</option></entry>
            <entry>(x86 only) Use SSE2 for floating point</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>


  <sect2>
    <title>Compiler debugging options</title>

    <para><xref linkend="options-debugging"/></para>

    <informaltable>
      <tgroup cols="4" 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><option>-dcore-lint</option></entry>
            <entry>Turn on internal sanity checking</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-to-file</option></entry>
            <entry>Dump to files instead of stdout</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-asm</option></entry>
            <entry>Dump assembly</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-bcos</option></entry>
            <entry>Dump interpreter byte code</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-cmm</option></entry>
            <entry>Dump C-- output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-core-stats</option></entry>
            <entry>Print a one-line summary of the size of the Core program
              at the end of the optimisation pipeline </entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-cse</option></entry>
            <entry>Dump CSE output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-deriv</option></entry>
            <entry>Dump deriving output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-ds</option></entry>
            <entry>Dump desugarer output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-foreign</option></entry>
            <entry>Dump <literal>foreign export</literal> stubs</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-hpc</option></entry>
            <entry>Dump after instrumentation for program coverage</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-inlinings</option></entry>
            <entry>Dump inlining info</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-llvm</option></entry>
            <entry>Dump LLVM intermediate code</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-occur-anal</option></entry>
            <entry>Dump occurrence analysis output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-opt-cmm</option></entry>
            <entry>Dump the results of C-- to C-- optimising passes</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-parsed</option></entry>
            <entry>Dump parse tree</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-prep</option></entry>
            <entry>Dump prepared core</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-rn</option></entry>
            <entry>Dump renamer output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-rule-firings</option></entry>
            <entry>Dump rule firing info</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-rule-rewrites</option></entry>
            <entry>Dump detailed rule firing info</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-rules</option></entry>
            <entry>Dump rules</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-vect</option></entry>
            <entry>Dump vectoriser input and output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-simpl</option></entry>
            <entry>Dump final simplifier output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-simpl-iterations</option></entry>
            <entry>Dump output from each simplifier iteration</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-spec</option></entry>
            <entry>Dump specialiser output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-splices</option></entry>
            <entry>Dump TH spliced expressions, and what they evaluate to</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-stg</option></entry>
            <entry>Dump final STG</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-stranal</option></entry>
            <entry>Dump strictness analyser output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-strsigs</option></entry>
            <entry>Dump strictness signatures</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-tc</option></entry>
            <entry>Dump typechecker output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dth-dec-file</option></entry>
            <entry>Show evaluated TH declarations in a .th.hs file</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-types</option></entry>
            <entry>Dump type signatures</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-worker-wrapper</option></entry>
            <entry>Dump worker-wrapper output</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-if-trace</option></entry>
            <entry>Trace interface files</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-tc-trace</option></entry>
            <entry>Trace typechecker</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-vt-trace</option></entry>
            <entry>Trace vectoriser</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-rn-trace</option></entry>
            <entry>Trace renamer</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-rn-stats</option></entry>
            <entry>Renamer stats</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-ddump-simpl-stats</option></entry>
            <entry>Dump simplifier stats</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dno-debug-output</option></entry>
            <entry>Suppress unsolicited debugging output</entry>
            <entry>static</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dppr-debug</option></entry>
            <entry>Turn on debug printing (more verbose)</entry>
            <entry>static</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dppr-user-length</option></entry>
            <entry>Set the depth for printing expressions in error msgs</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dppr-colsNNN</option></entry>
            <entry>Set the width of debugging output. For example <option>-dppr-cols200</option></entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dppr-case-as-let</option></entry>
            <entry>Print single alternative case expressions as strict lets.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-all</option></entry>
            <entry>In core dumps, suppress everything (except for uniques) that is suppressible.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-uniques</option></entry>
            <entry>Suppress the printing of uniques in debug output (easier to use <command>diff</command>)</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-idinfo</option></entry>
            <entry>Suppress extended information about identifiers where they are bound</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-module-prefixes</option></entry>
            <entry>Suppress the printing of module qualification prefixes</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-type-signatures</option></entry>
            <entry>Suppress type signatures</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-type-applications</option></entry>
            <entry>Suppress type applications</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsuppress-coercions</option></entry>
            <entry>Suppress the printing of coercions in Core dumps to make them shorter</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dsource-stats</option></entry>
            <entry>Dump haskell source stats</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dcmm-lint</option></entry>
            <entry>C-- pass sanity checking</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dstg-lint</option></entry>
            <entry>STG pass sanity checking</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dstg-stats</option></entry>
            <entry>Dump STG stats</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dverbose-core2core</option></entry>
            <entry>Show output from each core-to-core pass</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dverbose-stg2stg</option></entry>
            <entry>Show output from each STG-to-STG pass</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dshow-passes</option></entry>
            <entry>Print out each pass name as it happens</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-dfaststring-stats</option></entry>
            <entry>Show statistics for fast string usage when finished</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-frule-check</option></entry>
            <entry>Report sites with rules that could have fired but didn't.
                   Takes a string argument.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>

  <sect2>
    <title>Misc compiler options</title>

    <informaltable>
      <tgroup cols="4" 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><option>-j<replaceable>N</replaceable></option></entry>
            <entry>When compiling with <literal>--make</literal>, compile <replaceable>N</replaceable> modules in parallel.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-hi-version-check</option></entry>
            <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fhistory-size</option></entry>
            <entry>Set simplification history size</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-ghci-history</option></entry>
            <entry>Do not use the load/store the GHCi command history from/to <literal>ghci_history</literal>.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
          <row>
            <entry><option>-fno-ghci-sandbox</option></entry>
            <entry>Turn off the GHCi sandbox. Means computations are run in the main thread, rather than a forked thread.</entry>
            <entry>dynamic</entry>
            <entry>-</entry>
          </row>
        </tbody>
      </tgroup>
    </informaltable>
  </sect2>
</sect1>


<!--
Still to document:

Misc:
  ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )

  -Bdir
-->

<!-- Emacs stuff:
     ;;; Local Variables: ***
     ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***
     ;;; End: ***
 -->
