<entry>mode</entry>
<entry>-</entry>
</row>
- <row>
- <entry><option>-n</option></entry>
- <entry>do a dry run</entry>
- <entry>dynamic</entry>
- <entry>-</entry>
- </row>
- <row>
+ <row>
<entry><option>-v</option></entry>
<entry>verbose mode (equivalent to <option>-v3</option>)</entry>
<entry>dynamic</entry>
</sect2>
<sect2>
<title>Which phases to run</title>
-
+
<para><xref linkend="options-order"/></para>
<informaltable>
<sect2>
<title>Alternative modes of operation</title>
-
+
<para><xref linkend="modes"/></para>
<informaltable>
<sect2>
<title>Redirecting output</title>
-
+
<para><xref linkend="options-output"/></para>
<informaltable>
<sect2>
<title>Keeping intermediate files</title>
-
+
<para><xref linkend="keeping-intermediates"/></para>
-
+
<informaltable>
<tgroup cols="4" align="left" colsep="1" rowsep="1">
<thead>
<sect2>
<title>Temporary files</title>
-
+
<para><xref linkend="temp-files"/></para>
<informaltable>
</tgroup>
</informaltable>
</sect2>
-
+
<sect2>
<title>Recompilation checking</title>
<sect2 id="interactive-mode-options">
<title>Interactive-mode options</title>
-
+
<para><xref linkend="ghci-dot-files"/></para>
<informaltable>
<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>
<row>
<entry><option>-fprint-bind-result</option></entry>
<entry><link linkend="ghci-stmts">Turn on printing of binding results in GHCi</link></entry>
<sect2>
<title>Language options</title>
- <para>Language options can be enabled either by a command-line option
+ <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"/></para>
</row>
<row>
<entry><option>-XIncoherentInstances</option></entry>
- <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
+ <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>-XDisambiguateRecordFields</option></entry>
- <entry>Enable <link linkend="disambiguate-fields">record
+ <entry>Enable <link linkend="disambiguate-fields">record
field disambiguation</link></entry>
<entry>dynamic</entry>
<entry><option>-XNoDisambiguateRecordFields</option></entry>
</row>
<row>
<entry><option>-XGenerics</option></entry>
- <entry>Enable <link linkend="generic-classes">generic classes</link></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>
<row>
<entry><option>-XTemplateHaskell</option></entry>
- <entry>Enable <link linkend="template-haskell">Template Haskell</link>.
+ <entry>Enable <link linkend="template-haskell">Template Haskell</link>.
No longer implied by <option>-fglasgow-exts</option>.</entry>
<entry>dynamic</entry>
<entry><option>-XNoTemplateHaskell</option></entry>
<entry><option>-XNoMagicHash</option></entry>
</row>
<row>
- <entry><option>-XExplicitForALl</option></entry>
+ <entry><option>-XExplicitForAll</option></entry>
<entry>Enable <link linkend="explicit-foralls">explicit universal quantification</link>.
Implied by <option>-XScopedTypeVariables</option>,
<option>-XLiberalTypeSynonyms</option>,
<entry><option>-XNoDeriveDataTypeable</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>-XGeneralizedNewtypeDeriving</option></entry>
<entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
<entry>dynamic</entry>
<entry><option>-XNoConstrainedClassMethods</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>-XMultiParamTypeClasses</option></entry>
<entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.</entry>
<entry>dynamic</entry>
<sect2>
<title>Warnings</title>
-
+
<para><xref linkend="options-sanity"/></para>
<informaltable>
<row>
<entry><option>-fwarn-missing-import-lists</option></entry>
- <entry>warn when an import declaration does not explicitly
+ <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>
</tbody>
</tgroup>
</informaltable>
-
+
</sect2>
<sect2>
<title>Individual optimisations</title>
<row>
<entry><option>-fspec-constr-count</option>=<replaceable>n</replaceable></entry>
- <entry>Set to <replaceable>n</replaceable> (default: 3) the maximum number of
+ <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>static</entry>
<sect2>
<title>Profiling options</title>
-
+
<para><xref linkend="profiling"/></para>
<informaltable>
<sect2>
<title>Program coverage options</title>
-
+
<para><xref linkend="hpc"/></para>
<informaltable>
<sect2>
<title>Platform-specific options</title>
-
+
<para><xref linkend="options-platform"/></para>
<informaltable>
</informaltable>
</sect2>
-
+
<sect2>
<title>External core file options</title>
<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>
</tgroup>
</informaltable>
</sect2>
-
+
<sect2>
<title>Misc compiler options</title>
</row>
<row>
<entry><option>-fno-ghci-sandbox</option></entry>
- <entry>Turn off the GHCi sandbox. Means computations are run in teh main thread, rather than a forked thread.</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>