Improve documentation of orphan instances (thanks to Adrian Hey)
[ghc-hetmet.git] / docs / users_guide / flags.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2   <sect1 id="flag-reference">
3     <title>Flag reference</title>
4
5     <para>This section is a quick-reference for GHC's command-line
6     flags.  For each flag, we also list its static/dynamic status (see
7     <xref linkend="static-dynamic-flags"/>), and the flag's opposite
8     (if available).</para>
9
10     <sect2>
11       <title>Help and verbosity options</title>
12
13       <para><xref linkend="options-help"/></para>
14
15       <informaltable>
16         <tgroup cols="4" align="left" colsep="1" rowsep="1">
17           <thead>
18             <row>
19               <entry>Flag</entry>
20               <entry>Description</entry>
21               <entry>Static/Dynamic</entry>
22               <entry>Reverse</entry>
23             </row>
24           </thead>
25           <tbody>
26             <row>
27               <entry><option>-?</option></entry>
28               <entry>help</entry>
29               <entry>mode</entry>
30               <entry>-</entry>
31             </row>
32             <row>
33               <entry><option>-help</option></entry>
34               <entry>help</entry>
35               <entry>mode</entry>
36               <entry>-</entry>
37             </row>
38             <row>
39               <entry><option>-n</option></entry>
40               <entry>do a dry run</entry>
41               <entry>dynamic</entry>
42               <entry>-</entry>
43             </row>
44             <row>
45               <entry><option>-v</option></entry>
46               <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
47               <entry>dynamic</entry>
48               <entry>-</entry>
49             </row>
50             <row>
51               <entry><option>-v</option><replaceable>n</replaceable></entry>
52               <entry>set verbosity level</entry>
53               <entry>dynamic</entry>
54               <entry>-</entry>
55             </row>
56             <row>
57               <entry><option>-V</option></entry>
58               <entry>display GHC version</entry>
59               <entry>mode</entry>
60               <entry>-</entry>
61             </row>
62             <row>
63               <entry><option>&ndash;&ndash;supported-languages</option></entry>
64               <entry>display the supported language extensions</entry>
65               <entry>mode</entry>
66               <entry>-</entry>
67             </row>
68             <row>
69               <entry><option>&ndash;&ndash;info</option></entry>
70               <entry>display information about the compiler</entry>
71               <entry>mode</entry>
72               <entry>-</entry>
73             </row>
74             <row>
75               <entry><option>&ndash;&ndash;version</option></entry>
76               <entry>display GHC version</entry>
77               <entry>mode</entry>
78               <entry>-</entry>
79             </row>
80             <row>
81               <entry><option>&ndash;&ndash;numeric-version</option></entry>
82               <entry>display GHC version (numeric only)</entry>
83               <entry>mode</entry>
84               <entry>-</entry>
85             </row>
86             <row>
87               <entry><option>&ndash;&ndash;print-libdir</option></entry>
88               <entry>display GHC library directory</entry>
89               <entry>mode</entry>
90               <entry>-</entry>
91             </row>
92             <row>
93               <entry><option>&ndash;&ndash;print-docdir</option></entry>
94               <entry>display GHC documentation directory</entry>
95               <entry>mode</entry>
96               <entry>-</entry>
97             </row>
98             <row>
99               <entry><option>-ferror-spans</option></entry>
100               <entry>output full span in error messages</entry>
101               <entry>static</entry>
102               <entry>-</entry>
103             </row>
104             <row>
105               <entry><option>-H</option><replaceable>size</replaceable></entry>
106               <entry>Set the minimum heap size to <replaceable>size</replaceable></entry>
107               <entry>static</entry>
108               <entry>-</entry>
109             </row>
110             <row>
111               <entry><option>-Rghc-timing</option></entry>
112               <entry>Summarise timing stats for GHC (same as <literal>+RTS -tstderr</literal>)</entry>
113               <entry>static</entry>
114               <entry>-</entry>
115             </row>
116           </tbody>
117         </tgroup>
118       </informaltable>
119
120     </sect2>
121     <sect2>
122       <title>Which phases to run</title>
123       
124       <para><xref linkend="options-order"/></para>
125
126       <informaltable>
127         <tgroup cols="4" align="left" colsep="1" rowsep="1">
128           <thead>
129             <row>
130               <entry>Flag</entry>
131               <entry>Description</entry>
132               <entry>Static/Dynamic</entry>
133               <entry>Reverse</entry>
134             </row>
135           </thead>
136           <tbody>
137             <row>
138               <entry><option>-E</option></entry>
139               <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
140               <entry>mode</entry>
141               <entry>-</entry>
142             </row>
143             <row>
144               <entry><option>-C</option></entry>
145               <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
146               <entry>mode</entry>
147               <entry>-</entry>
148             </row>
149             <row>
150               <entry><option>-S</option></entry>
151               <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
152               <entry>mode</entry>
153               <entry>-</entry>
154             </row>
155             <row>
156               <entry><option>-c</option></entry>
157               <entry>Do not link</entry>
158               <entry>dynamic</entry>
159               <entry>-</entry>
160             </row>
161             <row>
162               <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
163               <entry>Override default behaviour for source files</entry>
164               <entry>static</entry>
165               <entry>-</entry>
166             </row>
167           </tbody>
168         </tgroup>
169       </informaltable>
170     </sect2>
171
172      <sect2>
173       <title>Alternative modes of operation</title>
174       
175       <para><xref linkend="modes"/></para>
176
177       <informaltable>
178         <tgroup cols="4" align="left" colsep="1" rowsep="1">
179           <thead>
180             <row>
181               <entry>Flag</entry>
182               <entry>Description</entry>
183               <entry>Static/Dynamic</entry>
184               <entry>Reverse</entry>
185             </row>
186           </thead>
187           <tbody>
188             <row>
189               <entry><option>--interactive</option></entry>
190               <entry>Interactive mode - normally used by just running <command>ghci</command>;
191               see <xref linkend="ghci"/> for details.</entry>
192               <entry>mode</entry>
193               <entry>-</entry>
194             </row>
195             <row>
196               <entry><option>--make</option></entry>
197               <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>;
198               see <xref linkend="make-mode"/> for details..</entry>
199               <entry>mode</entry>
200               <entry>-</entry>
201             </row>
202             <row>
203               <entry><option>-e <replaceable>expr</replaceable></option></entry>
204               <entry>Evaluate <replaceable>expr</replaceable>;
205               see <xref linkend="eval-mode"/> for details.</entry>
206               <entry>mode</entry>
207               <entry>-</entry>
208             </row>
209             <row>
210               <entry><option>-M</option></entry>
211               <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>;
212               see <xref linkend="makefile-dependencies"/> for details.</entry>
213               <entry>mode</entry>
214               <entry>-</entry>
215             </row>
216           </tbody>
217         </tgroup>
218       </informaltable>
219     </sect2>
220
221     <sect2>
222       <title>Redirecting output</title>
223       
224       <para><xref linkend="options-output"/></para>
225
226       <informaltable>
227         <tgroup cols="4" align="left" colsep="1" rowsep="1">
228           <thead>
229             <row>
230               <entry>Flag</entry>
231               <entry>Description</entry>
232               <entry>Static/Dynamic</entry>
233               <entry>Reverse</entry>
234             </row>
235           </thead>
236           <tbody>
237             <row>
238               <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
239               <entry>set the suffix to use for intermediate C files</entry>
240               <entry>dynamic</entry>
241               <entry>-</entry>
242             </row>
243             <row>
244               <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
245               <entry>set directory for interface files</entry>
246               <entry>dynamic</entry>
247               <entry>-</entry>
248             </row>
249             <row>
250               <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
251               <entry>set the suffix to use for interface files</entry>
252               <entry>dynamic</entry>
253               <entry>-</entry>
254             </row>
255             <row>
256               <entry><option>-o</option> <replaceable>filename</replaceable></entry>
257               <entry>set output filename</entry>
258               <entry>dynamic</entry>
259               <entry>-</entry>
260             </row>
261             <row>
262               <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
263               <entry>set output directory</entry>
264               <entry>dynamic</entry>
265               <entry>-</entry>
266             </row>
267             <row>
268               <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
269               <entry>set the filename in which to put the interface</entry>
270               <entry>dynamic</entry>
271               <entry></entry>
272             </row>
273             <row>
274               <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
275               <entry>set the output file suffix</entry>
276               <entry>dynamic</entry>
277               <entry>-</entry>
278             </row>
279             <row>
280               <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
281               <entry>redirect FFi stub files</entry>
282               <entry>dynamic</entry>
283               <entry>-</entry>
284             </row>
285           </tbody>
286         </tgroup>
287       </informaltable>
288     </sect2>
289
290     <sect2>
291       <title>Keeping intermediate files</title>
292       
293       <para><xref linkend="keeping-intermediates"/></para>
294       
295       <informaltable>
296         <tgroup cols="4" align="left" colsep="1" rowsep="1">
297           <thead>
298             <row>
299               <entry>Flag</entry>
300               <entry>Description</entry>
301               <entry>Static/Dynamic</entry>
302               <entry>Reverse</entry>
303             </row>
304           </thead>
305           <tbody>
306             <row>
307               <entry><option>-keep-hc-file</option> or
308                  <option>-keep-hc-files</option></entry>
309               <entry>retain intermediate <literal>.hc</literal> files</entry>
310               <entry>dynamic</entry>
311               <entry>-</entry>
312             </row>
313             <row>
314               <entry><option>-keep-s-file</option> or
315                  <option>-keep-s-files</option></entry>
316               <entry>retain intermediate <literal>.s</literal> files</entry>
317               <entry>dynamic</entry>
318               <entry>-</entry>
319             </row>
320             <row>
321               <entry><option>-keep-raw-s-file</option> or
322                  <option>-keep-raw-s-files</option></entry>
323               <entry>retain intermediate <literal>.raw_s</literal> files</entry>
324               <entry>dynamic</entry>
325               <entry>-</entry>
326             </row>
327             <row>
328               <entry><option>-keep-tmp-files</option></entry>
329               <entry>retain all intermediate temporary files</entry>
330               <entry>dynamic</entry>
331               <entry>-</entry>
332             </row>
333           </tbody>
334         </tgroup>
335       </informaltable>
336     </sect2>
337
338     <sect2>
339       <title>Temporary files</title>
340       
341       <para><xref linkend="temp-files"/></para>
342
343       <informaltable>
344         <tgroup cols="4" align="left" colsep="1" rowsep="1">
345           <thead>
346             <row>
347               <entry>Flag</entry>
348               <entry>Description</entry>
349               <entry>Static/Dynamic</entry>
350               <entry>Reverse</entry>
351             </row>
352           </thead>
353           <tbody>
354             <row>
355               <entry><option>-tmpdir</option></entry>
356               <entry>set the directory for temporary files</entry>
357               <entry>dynamic</entry>
358               <entry>-</entry>
359             </row>
360           </tbody>
361         </tgroup>
362       </informaltable>
363     </sect2>
364
365     <sect2>
366       <title>Finding imports</title>
367
368       <para><xref linkend="search-path"/></para>
369
370       <informaltable>
371         <tgroup cols="4" align="left" colsep="1" rowsep="1">
372           <thead>
373             <row>
374               <entry>Flag</entry>
375
376               <entry>Description</entry>
377               <entry>Static/Dynamic</entry>
378               <entry>Reverse</entry>
379             </row>
380           </thead>
381           <tbody>
382             <row>
383               <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
384               <entry>add <replaceable>dir</replaceable>,
385                   <replaceable>dir2</replaceable>, etc. to import path</entry>
386               <entry>static/<literal>:set</literal></entry>
387               <entry>-</entry>
388             </row>
389             <row>
390               <entry><option>-i</option></entry>
391               <entry>Empty the import directory list</entry>
392               <entry>static/<literal>:set</literal></entry>
393               <entry>-</entry>
394             </row>
395           </tbody>
396         </tgroup>
397       </informaltable>
398     </sect2>
399
400     <sect2>
401       <title>Interface file options</title>
402
403       <para><xref linkend="hi-options"/></para>
404
405       <informaltable>
406         <tgroup cols="4" align="left" colsep="1" rowsep="1">
407           <thead>
408             <row>
409               <entry>Flag</entry>
410
411               <entry>Description</entry>
412               <entry>Static/Dynamic</entry>
413               <entry>Reverse</entry>
414             </row>
415           </thead>
416           <tbody>
417             <row>
418               <entry><option>-ddump-hi</option></entry>
419               <entry>Dump the new interface to stdout</entry>
420               <entry>dynamic</entry>
421               <entry>-</entry>
422             </row>
423             <row>
424               <entry><option>-ddump-hi-diffs</option></entry>
425               <entry>Show the differences vs. the old interface</entry>
426               <entry>dynamic</entry>
427               <entry>-</entry>
428             </row>
429             <row>
430               <entry><option>-ddump-minimal-imports</option></entry>
431               <entry>Dump a minimal set of imports</entry>
432               <entry>dynamic</entry>
433               <entry>-</entry>
434             </row>
435             <row>
436               <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
437               <entry>See <xref linkend="modes"/>.</entry>
438             </row>
439           </tbody>
440         </tgroup>
441       </informaltable>
442     </sect2>
443     
444     <sect2>
445       <title>Recompilation checking</title>
446
447       <para><xref linkend="recomp"/></para>
448
449       <informaltable>
450         <tgroup cols="4" align="left" colsep="1" rowsep="1">
451           <thead>
452             <row>
453               <entry>Flag</entry>
454
455               <entry>Description</entry>
456               <entry>Static/Dynamic</entry>
457               <entry>Reverse</entry>
458             </row>
459           </thead>
460           <tbody>
461             <row>
462               <entry><option>-fforce-recomp</option></entry>
463               <entry>Turn off recompilation checking; implied by any
464               <option>-ddump-X</option> option</entry>
465               <entry>dynamic</entry>
466               <entry><option>-fno-force-recomp</option></entry>
467             </row>
468           </tbody>
469         </tgroup>
470       </informaltable>
471     </sect2>
472
473     <sect2>
474       <title>Interactive-mode options</title>
475       
476       <para><xref linkend="ghci-dot-files"/></para>
477
478       <informaltable>
479         <tgroup cols="4" align="left" colsep="1" rowsep="1">
480           <thead>
481             <row>
482               <entry>Flag</entry>
483               <entry>Description</entry>
484               <entry>Static/Dynamic</entry>
485               <entry>Reverse</entry>
486             </row>
487           </thead>
488           <tbody>
489             <row>
490               <entry><option>-ignore-dot-ghci</option></entry>
491               <entry>Disable reading of <filename>.ghci</filename> files</entry>
492               <entry>static</entry>
493               <entry>-</entry>
494             </row>
495             <row>
496               <entry><option>-read-dot-ghci</option></entry>
497               <entry>Enable reading of <filename>.ghci</filename> files</entry>
498               <entry>static</entry>
499               <entry>-</entry>
500             </row>
501             <row>
502               <entry><option>-fbreak-on-exception</option></entry>
503               <entry><link linkend="ghci-debugger-exceptions">Break on any exception thrown</link></entry>
504               <entry>dynamic</entry>
505               <entry><option>-fno-break-on-exception</option></entry>
506             </row>
507             <row>
508               <entry><option>-fbreak-on-error</option></entry>
509               <entry><link linkend="ghci-debugger-exceptions">Break on uncaught exceptions and errors</link></entry>
510               <entry>dynamic</entry>
511               <entry><option>-fno-break-on-error</option></entry>
512             </row>
513             <row>
514               <entry><option>-fprint-evld-with-show</option></entry>
515               <entry><link linkend="breakpoints">Enable usage of Show instances in <literal>:print</literal></link></entry>
516               <entry>dynamic</entry>
517               <entry><option>-fno-print-evld-with-show</option></entry>
518             </row>          
519             <row>
520               <entry><option>-fno-print-bind-result</option></entry>
521               <entry><link linkend="ghci-stmts">Turn off printing of binding results in GHCi</link></entry>
522               <entry>dynamic</entry>
523               <entry>-</entry>
524             </row>
525           </tbody>
526         </tgroup>
527       </informaltable>
528     </sect2>
529
530     <sect2>
531       <title>Packages</title>
532
533       <para><xref linkend="packages"/></para>
534
535       <informaltable>
536         <tgroup cols="4" align="left" colsep="1" rowsep="1">
537           <thead>
538             <row>
539               <entry>Flag</entry>
540               <entry>Description</entry>
541               <entry>Static/Dynamic</entry>
542               <entry>Reverse</entry>
543             </row>
544           </thead>
545           <tbody>
546             <row>
547               <entry><option>-package-name</option> <replaceable>P</replaceable></entry>
548               <entry>Compile to be part of package <replaceable>P</replaceable></entry>
549               <entry>dynamic</entry>
550               <entry>-</entry>
551             </row>
552             <row>
553               <entry><option>-package</option> <replaceable>P</replaceable></entry>
554               <entry>Expose package <replaceable>P</replaceable></entry>
555               <entry>static/<literal>:set</literal></entry>
556               <entry>-</entry>
557             </row>
558             <row>
559               <entry><option>-hide-all-packages</option></entry>
560               <entry>Hide all packages by default</entry>
561               <entry>static</entry>
562               <entry>-</entry>
563             </row>
564             <row>
565               <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
566               <entry>Hide package <replaceable>P</replaceable></entry>
567               <entry>static/<literal>:set</literal></entry>
568               <entry>-</entry>
569             </row>
570             <row>
571               <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
572               <entry>Ignore package <replaceable>P</replaceable></entry>
573               <entry>static/<literal>:set</literal></entry>
574               <entry>-</entry>
575             </row>
576             <row>
577               <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
578               <entry>Load more packages from <replaceable>file</replaceable></entry>
579               <entry>static</entry>
580               <entry>-</entry>
581             </row>
582             <row>
583               <entry><option>-no-user-package-conf</option></entry>
584               <entry>Don't load the user's package config file.</entry>
585               <entry>static</entry>
586               <entry>-</entry>
587             </row>
588           </tbody>
589         </tgroup>
590       </informaltable>
591     </sect2>
592
593     <sect2>
594       <title>Language options</title>
595
596       <para><xref linkend="options-language"/></para>
597
598       <informaltable>
599         <tgroup cols="4" align="left" colsep="1" rowsep="1">
600           <thead>
601             <row>
602               <entry>Flag</entry>
603               <entry>Description</entry>
604               <entry>Static/Dynamic</entry>
605               <entry>Reverse</entry>
606             </row>
607           </thead>
608           <tbody>
609             <row>
610               <entry><option>-fglasgow-exts</option></entry>
611               <entry>Enable most language extensions</entry>
612               <entry>dynamic</entry>
613               <entry><option>-fno-glasgow-exts</option></entry>
614             </row>
615             <row>
616               <entry><option>-XOverlappingInstances</option></entry>
617               <entry>Enable <link linkend="instance-overlap">overlapping instances</link></entry>
618               <entry>dynamic</entry>
619               <entry><option>-XNoOverlappingInstances</option></entry>
620             </row>
621             <row>
622               <entry><option>-XIncoherentInstances</option></entry>
623               <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.  
624               Implies <option>-XOverlappingInstances</option> </entry>
625               <entry>dynamic</entry>
626               <entry><option>-XNoIncoherentInstances</option></entry>
627             </row>
628             <row>
629               <entry><option>-XUndecidableInstances</option></entry>
630               <entry>Enable <link linkend="undecidable-instances">undecidable instances</link></entry>
631               <entry>dynamic</entry>
632               <entry><option>-XNoUndecidableInstances</option></entry>
633             </row>
634             <row>
635               <entry><option>-fcontext-stack=N</option><replaceable>n</replaceable></entry>
636               <entry>set the <link linkend="undecidable-instances">limit for context reduction</link>. Default is 20.</entry>
637               <entry>dynamic</entry>
638               <entry></entry>
639             </row>
640             <row>
641               <entry><option>-XArrows</option></entry>
642               <entry>Enable <link linkend="arrow-notation">arrow
643               notation</link> extension</entry>
644               <entry>dynamic</entry>
645               <entry><option>-XNoArrows</option></entry>
646             </row>
647             <row>
648               <entry><option>-fdisambiguate-record-fields</option></entry>
649               <entry>Enable <link linkend="disambiguate-fields">record 
650               field disambiguation</link></entry>
651               <entry>dynamic</entry>
652               <entry><option>-fno-disambiguate-record-fields</option></entry>
653             </row>
654             <row>
655               <entry><option>-XForeignFunctionInterface</option></entry>
656               <entry>Enable <link linkend="ffi">foreign function interface</link> (implied by
657               <option>-fglasgow-exts</option>)</entry>
658               <entry>dynamic</entry>
659               <entry><option>-XNoForeignFunctionInterface</option></entry>
660             </row>
661             <row>
662               <entry><option>-XGenerics</option></entry>
663               <entry>Enable <link linkend="generic-classes">generic classes</link></entry>
664               <entry>dynamic</entry>
665               <entry><option>-XNoGenerics</option></entry>
666             </row>
667             <row>
668               <entry><option>-XImplicitParams</option></entry>
669               <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
670               Implied by <option>-fglasgow-exts</option>.</entry>
671               <entry>dynamic</entry>
672               <entry><option>-XNoImplicitParams</option></entry>
673             </row>
674             <row>
675               <entry><option>-firrefutable-tuples</option></entry>
676               <entry>Make tuple pattern matching irrefutable</entry>
677               <entry>dynamic</entry>
678               <entry><option>-fno-irrefutable-tuples</option></entry>
679             </row>
680             <row>
681               <entry><option>-XNoImplicitPrelude</option></entry>
682               <entry>Don't implicitly <literal>import Prelude</literal></entry>
683               <entry>dynamic</entry>
684               <entry><option>-XImplicitPrelude</option></entry>
685             </row>
686             <row>
687               <entry><option>-XNoMonomorphismRestriction</option></entry>
688               <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
689               <entry>dynamic</entry>
690               <entry><option>-XMonomorphismRrestriction</option></entry>
691             </row>
692             <row>
693               <entry><option>-XNoMonoPatBinds</option></entry>
694               <entry>Make <link linkend="monomorphism">pattern bindings polymorphic</link></entry>
695               <entry>dynamic</entry>
696               <entry><option>-XMonoPatBinds</option></entry>
697             </row>
698             <row>
699               <entry><option>-XRelaxedPolyRed</option></entry>
700               <entry>Relaxed checking for <link linkend="typing-binds">mutually-recursive polymorphic functions</link></entry>
701               <entry>dynamic</entry>
702               <entry><option>-XNoRelaxedPolyRec</option></entry>
703             </row>
704             <row>
705               <entry><option>-XExtendedDefaultRules</option></entry>
706               <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module</entry>
707               <entry>dynamic</entry>
708               <entry><option>-XNoExtendedDefaultRules</option></entry>
709             </row>
710             <row>
711               <entry><option>-XOverloadedStrings</option></entry>
712               <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
713               </entry>
714               <entry>dynamic</entry>
715               <entry><option>-XNoOverloadedStrings</option></entry>
716             </row>
717             <row>
718               <entry><option>-XGADTs</option></entry>
719               <entry>Enable <link linkend="gadt">generalised algebraic data types</link>.
720               </entry>
721               <entry>dynamic</entry>
722               <entry><option>-XNoGADTs</option></entry>
723             </row>
724             <row>
725               <entry><option>-XTypeFamilies</option></entry>
726               <entry>Enable <link linkend="type-families">type families</link>.</entry>
727               <entry>dynamic</entry>
728               <entry><option>-XNoTypeFamilies</option></entry>
729             </row>
730             <row>
731               <entry><option>-XScopedTypeVariables</option></entry>
732               <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
733               Implied by <option>-fglasgow-exts</option>.</entry>
734               <entry>dynamic</entry>
735               <entry><option>-XNoScopedTypeVariables</option></entry>
736             </row>
737             <row>
738               <entry><option>-XTemplateHaskell</option></entry>
739               <entry>Enable <link linkend="template-haskell">Template Haskell</link>. 
740                 No longer implied by <option>-fglasgow-exts</option>.</entry>
741               <entry>dynamic</entry>
742               <entry><option>-XNoTemplateHaskell</option></entry>
743             </row>
744             <row>
745               <entry><option>-XBangPtterns</option></entry>
746               <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
747               <entry>dynamic</entry>
748               <entry><option>-XNoBangPatterns</option></entry>
749             </row>
750             <row>
751               <entry><option>-XCPP</option></entry>
752               <entry>Enable the <link linkend="c-pre-processor">C preprocessor</link>.</entry>
753               <entry>dynamic</entry>
754               <entry><option>-XNoCPP</option></entry>
755             </row>
756             <row>
757               <entry><option>-XPatternGuards</option></entry>
758               <entry>Enable <link linkend="pattern-guards">pattern guards</link>.</entry>
759               <entry>dynamic</entry>
760               <entry><option>-XNoPatternGuards</option></entry>
761             </row>
762             <row>
763               <entry><option>-XViewPatterns</option></entry>
764               <entry>Enable <link linkend="view-patterns">view patterns</link>.</entry>
765               <entry>dynamic</entry>
766               <entry><option>-XNoViewPatterns</option></entry>
767             </row>
768             <row>
769               <entry><option>-XUnicodeSyntax</option></entry>
770               <entry>Enable unicode syntax.</entry>
771               <entry>dynamic</entry>
772               <entry><option>-XNoUnicodeSyntax</option></entry>
773             </row>
774             <row>
775               <entry><option>-XMagicHash</option></entry>
776               <entry>Enable the &ldquo;magic hash&rdquo;.</entry>
777               <entry>dynamic</entry>
778               <entry><option>-XNoMagicHash</option></entry>
779             </row>
780             <row>
781               <entry><option>-XPolymorphicComponents</option></entry>
782               <entry>Enable polymorphic components.</entry>
783               <entry>dynamic</entry>
784               <entry><option>-XNoPolymorphicComponents</option></entry>
785             </row>
786             <row>
787               <entry><option>-XExistentialQuantification</option></entry>
788               <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
789               <entry>dynamic</entry>
790               <entry><option>-XNoExistentialQuantification</option></entry>
791             </row>
792             <row>
793               <entry><option>-XKindSignatures</option></entry>
794               <entry>Enable <link linkend="kinding">kind signatures</link>.</entry>
795               <entry>dynamic</entry>
796               <entry><option>-XNoKindSignatures</option></entry>
797             </row>
798             <row>
799               <entry><option>-XPatternSignatures</option></entry>
800               <entry>Enable <link linkend="pattern-type-sigs">pattern type signatures</link>.</entry>
801               <entry>dynamic</entry>
802               <entry><option>-XNoPatternSignatures</option></entry>
803             </row>
804             <row>
805               <entry><option>-XEmptyDataDecls</option></entry>
806               <entry>Enable empty data declarations.</entry>
807               <entry>dynamic</entry>
808               <entry><option>-XNoEmptyDataDecls</option></entry>
809             </row>
810             <row>
811               <entry><option>-XParallelListComp</option></entry>
812               <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.</entry>
813               <entry>dynamic</entry>
814               <entry><option>-XNoParallelListComp</option></entry>
815             </row>
816             <row>
817               <entry><option>-XUnliftedFFITypes</option></entry>
818               <entry>Enable unlifted FFI types.</entry>
819               <entry>dynamic</entry>
820               <entry><option>-XNoUnliftedFFITypes</option></entry>
821             </row>
822             <row>
823               <entry><option>-XLiberalTypeSynonyms</option></entry>
824               <entry>Enable <link linkend="type-synonyms">liberalised type synonyms</link>.</entry>
825               <entry>dynamic</entry>
826               <entry><option>-XNoLiberalTypeSynonyms</option></entry>
827             </row>
828             <row>
829               <entry><option>-XNoRank2Types</option></entry>
830               <entry>Enable rank-2 types.</entry>
831               <entry>dynamic</entry>
832               <entry><option>-XNoRank2Types</option></entry>
833             </row>
834             <row>
835               <entry><option>-XRankNTypes</option></entry>
836               <entry>Enable rank-N types.</entry>
837               <entry>dynamic</entry>
838               <entry><option>-XNoRankNTypes</option></entry>
839             </row>
840             <row>
841               <entry><option>-XTypeOperators</option></entry>
842               <entry>Enable type operators.</entry>
843               <entry>dynamic</entry>
844               <entry><option>-XNoTypeOperators</option></entry>
845             </row>
846             <row>
847               <entry><option>-XRecursiveDo</option></entry>
848               <entry>Enable <link linkend="mdo-notation">recursive do (mdo) notation</link>.</entry>
849               <entry>dynamic</entry>
850               <entry><option>-XNoRecursiveDo</option></entry>
851             </row>
852             <row>
853               <entry><option>-XPArr</option></entry>
854               <entry>Enable parallel arrays.</entry>
855               <entry>dynamic</entry>
856               <entry><option>-XNoPArr</option></entry>
857             </row>
858             <row>
859               <entry><option>-XRecordWildCards</option></entry>
860               <entry>Enable record wildcards.</entry>
861               <entry>dynamic</entry>
862               <entry><option>-XNoRecordWildCards</option></entry>
863             </row>
864             <row>
865               <entry><option>-XRecordPuns</option></entry>
866               <entry>Enable record puns.</entry>
867               <entry>dynamic</entry>
868               <entry><option>-XNoRecordPuns</option></entry>
869             </row>
870             <row>
871               <entry><option>-XDisambiguateRecordFields</option></entry>
872               <entry>Enable the <link linkend="disambiguate-fields">disambiguate fields.</link> exception</entry>
873               <entry>dynamic</entry>
874               <entry><option>-XNoDisambiguateRecordFields</option></entry>
875             </row>
876             <row>
877               <entry><option>-XUnboxedTuples</option></entry>
878               <entry>Enable <link linkend="unboxed-tuples">unboxed tuples</link>.</entry>
879               <entry>dynamic</entry>
880               <entry><option>-XNoUnboxedTuples</option></entry>
881             </row>
882             <row>
883               <entry><option>-XStandaloneDeriving</option></entry>
884               <entry>Enable <link linkend="stand-alone-deriving">standalone deriving</link>.</entry>
885               <entry>dynamic</entry>
886               <entry><option>-XNoStandaloneDeriving</option></entry>
887             </row>
888             <row>
889               <entry><option>-XDeriveDataTypeable</option></entry>
890               <entry>Enable <link linkend="deriving-typeable">deriving for the Data and Typeable classes</link>.</entry>
891               <entry>dynamic</entry>
892               <entry><option>-XNoDeriveDataTypeable</option></entry>
893             </row>
894             <row>
895               <entry><option>-XGeneralizedNewtypeDeriving</option></entry>
896               <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
897               <entry>dynamic</entry>
898               <entry><option>-XNoGeneralizedNewtypeDeriving</option></entry>
899             </row>
900             <row>
901               <entry><option>-XTypeSynonymInstances</option></entry>
902               <entry>Enable <link linkend="type-synonyms">type synonyms</link>.</entry>
903               <entry>dynamic</entry>
904               <entry><option>-XNoTypeSynonymInstances</option></entry>
905             </row>
906             <row>
907               <entry><option>-XFlexibleContexts</option></entry>
908               <entry>Enable flexible contexts.</entry>
909               <entry>dynamic</entry>
910               <entry><option>-XNoFlexibleContexts</option></entry>
911             </row>
912             <row>
913               <entry><option>-XFlexibleInstances</option></entry>
914               <entry>Enable flexible instances.</entry>
915               <entry>dynamic</entry>
916               <entry><option>-XNoFlexibleInstances</option></entry>
917             </row>
918             <row>
919               <entry><option>-XConstrainedClassMethods</option></entry>
920               <entry>Enable constrained class methods.</entry>
921               <entry>dynamic</entry>
922               <entry><option>-XNoConstrainedClassMethods</option></entry>
923             </row>
924             <row>
925               <entry><option>-XMultiParamTypeClasses</option></entry>
926               <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.</entry>
927               <entry>dynamic</entry>
928               <entry><option>-XNoMultiParamTypeClasses</option></entry>
929             </row>
930             <row>
931               <entry><option>-XFunctionalDependencies</option></entry>
932               <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.</entry>
933               <entry>dynamic</entry>
934               <entry><option>-XNoFunctionalDependencies</option></entry>
935             </row>
936           </tbody>
937         </tgroup>
938       </informaltable>
939     </sect2>
940
941     <sect2>
942       <title>Warnings</title>
943       
944       <para><xref linkend="options-sanity"/></para>
945
946     <informaltable>
947       <tgroup cols="4" align="left" colsep="1" rowsep="1">
948         <thead>
949           <row>
950             <entry>Flag</entry>
951             <entry>Description</entry>
952             <entry>Static/Dynamic</entry>
953             <entry>Reverse</entry>
954           </row>
955         </thead>
956         <tbody>
957           <row>
958             <entry><option>-W</option></entry>
959             <entry>enable normal warnings</entry>
960             <entry>dynamic</entry>
961             <entry><option>-w</option></entry>
962           </row>
963           <row>
964             <entry><option>-w</option></entry>
965             <entry>disable all warnings</entry>
966             <entry>dynamic</entry>
967             <entry>-</entry>
968           </row>
969           <row>
970             <entry><option>-Wall</option></entry>
971             <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
972             <entry>dynamic</entry>
973             <entry><option>-w</option></entry>
974           </row>
975           <row>
976             <entry><option>-Werror</option></entry>
977             <entry>make warnings fatal</entry>
978             <entry>dynamic</entry>
979             <entry>-Wwarn</entry>
980           </row>
981           <row>
982             <entry><option>-Wwarn</option></entry>
983             <entry>make warnings non-fatal</entry>
984             <entry>dynamic</entry>
985             <entry>-Werror</entry>
986           </row>
987
988           <row>
989             <entry><option>-fwarn-deprecations</option></entry>
990             <entry>warn about uses of functions &amp; types that are deprecated</entry>
991             <entry>dynamic</entry>
992             <entry><option>-fno-warn-deprecations</option></entry>
993           </row>
994
995           <row>
996             <entry><option>-fwarn-duplicate-exports</option></entry>
997             <entry>warn when an entity is exported multiple times</entry>
998             <entry>dynamic</entry>
999             <entry><option>-fno-warn-duplicate-exports</option></entry>
1000           </row>
1001
1002           <row>
1003             <entry><option>-fwarn-hi-shadowing</option></entry>
1004             <entry>warn when a <literal>.hi</literal> file in the
1005             current directory shadows a library</entry>
1006             <entry>dynamic</entry>
1007             <entry><option>-fno-warn-hi-shadowing</option></entry>
1008           </row>
1009
1010           <row>
1011             <entry><option>-fwarn-implicit-prelude</option></entry>
1012             <entry>warn when the Prelude is implicitly imported</entry>
1013             <entry>dynamic</entry>
1014             <entry><option>-fno-warn-implicit-prelude</option></entry>
1015           </row>
1016
1017           <row>
1018             <entry><option>-fwarn-incomplete-patterns</option></entry>
1019             <entry>warn when a pattern match could fail</entry>
1020             <entry>dynamic</entry>
1021             <entry><option>-fno-warn-incomplete-patterns</option></entry>
1022           </row>
1023
1024           <row>
1025             <entry><option>-fwarn-incomplete-record-updates</option></entry>
1026             <entry>warn when a record update could fail</entry>
1027             <entry>dynamic</entry>
1028             <entry><option>-fno-warn-incomplete-record-updates</option></entry>
1029           </row>
1030
1031           <row>
1032             <entry><option>-fwarn-missing-fields</option></entry>
1033             <entry>warn when fields of a record are uninitialised</entry>
1034             <entry>dynamic</entry>
1035             <entry><option>-fno-warn-missing-fields</option></entry>
1036           </row>
1037
1038           <row>
1039             <entry><option>-fwarn-missing-methods</option></entry>
1040             <entry>warn when class methods are undefined</entry>
1041             <entry>dynamic</entry>
1042             <entry><option>-fno-warn-missing-methods</option></entry>
1043           </row>
1044
1045           <row>
1046             <entry><option>-fwarn-missing-signatures</option></entry>
1047             <entry>warn about top-level functions without signatures</entry>
1048             <entry>dynamic</entry>
1049             <entry><option>-fno-warn-missing-signatures</option></entry>
1050           </row>
1051
1052           <row>
1053             <entry><option>-fwarn-name-shadowing</option></entry>
1054             <entry>warn when names are shadowed</entry>
1055             <entry>dynamic</entry>
1056             <entry><option>-fno-warn-name-shadowing</option></entry>
1057           </row>
1058
1059           <row>
1060             <entry><option>-fwarn-orphans</option></entry>
1061             <entry>warn when the module contains <link linkend="orphan-modules">orphan instance declarations
1062             or rewrite rules</link></entry>
1063             <entry>dynamic</entry>
1064             <entry><option>-fno-warn-orphans</option></entry>
1065           </row>
1066
1067           <row>
1068             <entry><option>-fwarn-overlapping-patterns</option></entry>
1069             <entry>warn about overlapping patterns</entry>
1070             <entry>dynamic</entry>
1071             <entry><option>-fno-warn-overlapping-patterns</option></entry>
1072           </row>
1073
1074           <row>
1075             <entry><option>-fwarn-simple-patterns</option></entry>
1076             <entry>warn about lambda-patterns that can fail</entry>
1077             <entry>dynamic</entry>
1078             <entry><option>-fno-warn-simple-patterns</option></entry>
1079           </row>
1080
1081           <row>
1082             <entry><option>-fwarn-tabs</option></entry>
1083             <entry>warn if there are tabs in the source file</entry>
1084             <entry>dynamic</entry>
1085             <entry><option>-fno-warn-tabs</option></entry>
1086           </row>
1087
1088           <row>
1089             <entry><option>-fwarn-type-defaults</option></entry>
1090             <entry>warn when defaulting happens</entry>
1091             <entry>dynamic</entry>
1092             <entry><option>-fno-warn-type-defaults</option></entry>
1093           </row>
1094
1095           <row>
1096             <entry><option>-fwarn-monomorphism-restriction</option></entry>
1097             <entry>warn when the Monomorphism Restriction is applied</entry>
1098             <entry>dynamic</entry>
1099             <entry><option>-fno-warn-monomorphism-restriction</option></entry>
1100           </row>
1101
1102           <row>
1103             <entry><option>-fwarn-unused-binds</option></entry>
1104             <entry>warn about bindings that are unused</entry>
1105             <entry>dynamic</entry>
1106             <entry><option>-fno-warn-unused-binds</option></entry>
1107           </row>
1108
1109           <row>
1110             <entry><option>-fwarn-unused-imports</option></entry>
1111             <entry>warn about unnecessary imports</entry>
1112             <entry>dynamic</entry>
1113             <entry><option>-fno-warn-unused-imports</option></entry>
1114           </row>
1115
1116           <row>
1117             <entry><option>-fwarn-unused-matches</option></entry>
1118             <entry>warn about variables in patterns that aren't used</entry>
1119             <entry>dynamic</entry>
1120             <entry><option>-fno-warn-unused-matches</option></entry>
1121           </row>
1122
1123           </tbody>
1124         </tgroup>
1125       </informaltable>
1126
1127     </sect2>
1128     <sect2>
1129       <title>Optimisation levels</title>
1130
1131       <para><xref linkend="options-optimise"/></para>
1132
1133       <informaltable>
1134         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1135           <thead>
1136             <row>
1137               <entry>Flag</entry>
1138               <entry>Description</entry>
1139               <entry>Static/Dynamic</entry>
1140               <entry>Reverse</entry>
1141             </row>
1142           </thead>
1143           <tbody>
1144             <row>
1145               <entry><option>-O</option></entry>
1146               <entry>Enable default optimisation (level 1)</entry>
1147               <entry>dynamic</entry>
1148               <entry><option>-O0</option></entry>
1149             </row>
1150             <row>
1151               <entry><option>-O</option><replaceable>n</replaceable></entry>
1152               <entry>Set optimisation level <replaceable>n</replaceable></entry>
1153               <entry>dynamic</entry>
1154               <entry><option>-O0</option></entry>
1155             </row>
1156           </tbody>
1157         </tgroup>
1158       </informaltable>
1159               
1160     </sect2>
1161     <sect2>
1162       <title>Individual optimisations</title>
1163
1164       <para><xref linkend="options-f"/></para>
1165
1166       <informaltable>
1167         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1168           <thead>
1169             <row>
1170               <entry>Flag</entry>
1171               <entry>Description</entry>
1172               <entry>Static/Dynamic</entry>
1173               <entry>Reverse</entry>
1174             </row>
1175           </thead>
1176           <tbody>
1177             <row>
1178               <entry><option>-fcase-merge</option></entry>
1179               <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
1180               <entry>dynamic</entry>
1181               <entry><option>-fno-case-merge</option></entry>
1182             </row>
1183
1184             <row>
1185               <entry><option>-fdicts-strict</option></entry>
1186               <entry>Make dictionaries strict</entry>
1187               <entry>static</entry>
1188               <entry><option>-fno-dicts-strict</option></entry>
1189             </row>
1190
1191             <row>
1192               <entry><option>-fdo-eta-reduction</option></entry>
1193               <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
1194               <entry>dynamic</entry>
1195               <entry><option>-fno-do-eta-reduction</option></entry>
1196             </row>
1197
1198             <row>
1199               <entry><option>-fdo-lambda-eta-expansion</option></entry>
1200               <entry>Enable lambda eta-reduction</entry>
1201               <entry>dynamic</entry>
1202               <entry><option>-fno-do-lambda-eta-expansion</option></entry>
1203             </row>
1204
1205             <row>
1206               <entry><option>-fexcess-precision</option></entry>
1207               <entry>Enable excess intermediate precision</entry>
1208               <entry>dynamic</entry>
1209               <entry><option>-fno-excess-precision</option></entry>
1210             </row>
1211
1212             <row>
1213               <entry><option>-fignore-asserts</option></entry>
1214               <entry>Ignore assertions in the source</entry>
1215               <entry>dynamic</entry>
1216               <entry><option>-fno-ignore-asserts</option></entry>
1217             </row>
1218
1219             <row>
1220               <entry><option>-fignore-interface-pragmas</option></entry>
1221               <entry>Ignore pragmas in interface files</entry>
1222               <entry>dynamic</entry>
1223               <entry><option>-fno-ignore-interface-pragmas</option></entry>
1224             </row>
1225
1226             <row>
1227               <entry><option>-fomit-interface-pragmas</option></entry>
1228               <entry>Don't generate interface pragmas</entry>
1229               <entry>dynamic</entry>
1230               <entry><option>-fno-omit-interface-pragmas</option></entry>
1231             </row>
1232
1233             <row>
1234               <entry><option>-fmax-worker-args</option></entry>
1235               <entry>If a worker has that many arguments, none will be
1236                 unpacked anymore (default: 10)</entry>
1237               <entry>static</entry>
1238               <entry>-</entry>
1239             </row>
1240
1241             <row>
1242               <entry><option>-fmax-simplifier-iterations</option></entry>
1243               <entry>Set the max iterations for the simplifier</entry>
1244               <entry>dynamic</entry>
1245               <entry>-</entry>
1246             </row>
1247
1248             <row>
1249               <entry><option>-fno-state-hack</option></entry>
1250               <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1251               as argument is considered to be single-entry.  Hence OK to inline things inside it.</entry>
1252               <entry>static</entry>
1253               <entry>-</entry>
1254             </row>
1255
1256             <row>
1257               <entry><option>-fcse</option></entry>
1258               <entry>Turn on common sub-expression elimination. Implied by <option>-O</option>.</entry>
1259               <entry>dynamic</entry>
1260               <entry>-fno-cse</entry>
1261             </row>
1262
1263             <row>
1264               <entry><option>-ffull-laziness</option></entry>
1265               <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
1266               <entry>dynamic</entry>
1267               <entry>-fno-full-laziness</entry>
1268             </row>
1269
1270             <row>
1271               <entry><option>-frewrite-rules</option></entry>
1272               <entry>Switch on all rewrite rules (including rules
1273               generated by automatic specialisation of overloaded functions).
1274               Implied by <option>-O</option>. </entry>
1275               <entry>dynamic</entry>
1276               <entry><option>-fno-rewrite-rules</option></entry>
1277             </row>
1278
1279             <row>
1280               <entry><option>-fstrictness</option></entry>
1281               <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1282               <entry>dynamic</entry>
1283               <entry>-fno-strictness</entry>
1284             </row>
1285
1286             <row>
1287               <entry><option>-fspec-constr</option></entry>
1288               <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1289               <entry>dynamic</entry>
1290               <entry>-fno-spec-constr</entry>
1291             </row>
1292
1293             <row>
1294               <entry><option>-fliberate-case</option></entry>
1295               <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
1296               <entry>dynamic</entry>
1297               <entry>-fno-liberate-case</entry>
1298             </row>
1299
1300             <row>
1301               <entry><option>-fspec-threshold</option>=<replaceable>n</replaceable></entry>
1302               <entry>Set the size threshold for function specialisation to <replaceable>n</replaceable>, for both
1303                 the liberate-case and SpecConstr transformations (default: 200)</entry>
1304               <entry>static</entry>
1305               <entry><option>-</option></entry>
1306             </row>
1307
1308             <row>
1309               <entry><option>-funbox-strict-fields</option></entry>
1310               <entry>Flatten strict constructor fields</entry>
1311               <entry>dynamic</entry>
1312               <entry><option>-fno-unbox-strict-fields</option></entry>
1313             </row>
1314
1315             <row>
1316               <entry><option>-funfolding-creation-threshold</option></entry>
1317               <entry>Tweak unfolding settings</entry>
1318               <entry>static</entry>
1319               <entry><option>-fno-unfolding-creation-threshold</option></entry>
1320             </row>
1321
1322             <row>
1323               <entry><option>-funfolding-fun-discount</option></entry>
1324               <entry>Tweak unfolding settings</entry>
1325               <entry>static</entry>
1326               <entry><option>-fno-unfolding-fun-discount</option></entry>
1327             </row>
1328
1329             <row>
1330               <entry><option>-funfolding-keeness-factor</option></entry>
1331               <entry>Tweak unfolding settings</entry>
1332               <entry>static</entry>
1333               <entry><option>-fno-unfolding-keeness-factor</option></entry>
1334             </row>
1335
1336             <row>
1337               <entry><option>-funfolding-update-in-place</option></entry>
1338               <entry>Tweak unfolding settings</entry>
1339               <entry>static</entry>
1340               <entry><option>-fno-unfolding-update-in-place</option></entry>
1341             </row>
1342
1343             <row>
1344               <entry><option>-funfolding-use-threshold</option></entry>
1345               <entry>Tweak unfolding settings</entry>
1346               <entry>static</entry>
1347               <entry><option>-fno-unfolding-use-threshold</option></entry>
1348             </row>
1349
1350             <row>
1351               <entry><option>-fno-pre-inlining</option></entry>
1352               <entry>Turn off pre-inlining</entry>
1353               <entry>static</entry>
1354               <entry>-</entry>
1355             </row>
1356           </tbody>
1357         </tgroup>
1358       </informaltable>
1359     </sect2>
1360
1361     <sect2>
1362       <title>Profiling options</title>
1363       
1364       <para><xref linkend="profiling"/></para>
1365
1366       <informaltable>
1367         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1368           <thead>
1369             <row>
1370               <entry>Flag</entry>
1371               <entry>Description</entry>
1372               <entry>Static/Dynamic</entry>
1373               <entry>Reverse</entry>
1374             </row>
1375           </thead>
1376           <tbody>
1377             <row>
1378               <entry><option>-auto</option></entry>
1379               <entry>Auto-add <literal>_scc_</literal>s to all
1380               exported functions</entry>
1381               <entry>static</entry>
1382               <entry><option>-no-auto</option></entry>
1383             </row>
1384             <row>
1385               <entry><option>-auto-all</option></entry>
1386               <entry>Auto-add <literal>_scc_</literal>s to all
1387               top-level functions</entry>
1388               <entry>static</entry>
1389               <entry><option>-no-auto-all</option></entry>
1390             </row>
1391             <row>
1392               <entry><option>-caf-all</option></entry>
1393               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1394               <entry>static</entry>
1395               <entry><option>-no-caf-all</option></entry>
1396             </row>
1397             <row>
1398               <entry><option>-prof</option></entry>
1399               <entry>Turn on profiling</entry>
1400               <entry>static</entry>
1401               <entry>-</entry>
1402             </row>
1403             <row>
1404               <entry><option>-ticky</option></entry>
1405               <entry>Turn on ticky-ticky profiling</entry>
1406               <entry>static</entry>
1407               <entry>-</entry>
1408             </row>
1409           </tbody>
1410         </tgroup>
1411       </informaltable>
1412     </sect2>
1413
1414     <sect2>
1415       <title>Program coverage options</title>
1416       
1417       <para><xref linkend="hpc"/></para>
1418
1419       <informaltable>
1420         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1421           <thead>
1422             <row>
1423               <entry>Flag</entry>
1424               <entry>Description</entry>
1425               <entry>Static/Dynamic</entry>
1426               <entry>Reverse</entry>
1427             </row>
1428           </thead>
1429           <tbody>
1430             <row>
1431               <entry><option>-fhpc</option></entry>
1432               <entry>Turn on Haskell program coverage instrumentation</entry>
1433               <entry>static</entry>
1434               <entry><option>-</option></entry>
1435             </row>
1436             <row>
1437               <entry><option>-hpcdir dir</option></entry>
1438               <entry>Directory to deposit .mix files during compilation (default is .hpc)</entry>
1439               <entry>dynamic</entry>
1440               <entry><option>-</option></entry>
1441             </row>
1442           </tbody>
1443         </tgroup>
1444       </informaltable>
1445     </sect2>
1446
1447     <sect2>
1448       <title>Haskell pre-processor options</title>
1449
1450       <para><xref linkend="pre-processor"/></para>
1451
1452       <informaltable>
1453         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1454           <thead>
1455             <row>
1456               <entry>Flag</entry>
1457               <entry>Description</entry>
1458               <entry>Static/Dynamic</entry>
1459               <entry>Reverse</entry>
1460             </row>
1461           </thead>
1462           <tbody>
1463             <row>
1464               <entry><option>-F</option></entry>
1465               <entry>
1466                   Enable the use of a pre-processor
1467                   (set with <option>-pgmF</option>)
1468               </entry>
1469               <entry>dynamic</entry>
1470               <entry>-</entry>
1471             </row>
1472           </tbody>
1473         </tgroup>
1474       </informaltable>
1475     </sect2>
1476
1477     <sect2>
1478       <title>C pre-processor options</title>
1479
1480       <para><xref linkend="c-pre-processor"/></para>
1481
1482       <informaltable>
1483         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1484           <thead>
1485             <row>
1486               <entry>Flag</entry>
1487               <entry>Description</entry>
1488               <entry>Static/Dynamic</entry>
1489               <entry>Reverse</entry>
1490             </row>
1491           </thead>
1492           <tbody>
1493             <row>
1494               <entry><option>-cpp</option></entry>
1495               <entry>Run the C pre-processor on Haskell source files</entry>
1496               <entry>dynamic</entry>
1497               <entry>-</entry>
1498             </row>
1499             <row>
1500               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1501               <entry>Define a symbol in the C pre-processor</entry>
1502               <entry>dynamic</entry>
1503               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1504             </row>
1505             <row>
1506               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1507               <entry>Undefine a symbol in the C pre-processor</entry>
1508               <entry>dynamic</entry>
1509               <entry>-</entry>
1510             </row>
1511             <row>
1512               <entry><option>-I</option><replaceable>dir</replaceable></entry>
1513               <entry>Add <replaceable>dir</replaceable> to the
1514               directory search list for <literal>#include</literal> files</entry>
1515               <entry>dynamic</entry>
1516               <entry>-</entry>
1517             </row>
1518           </tbody>
1519         </tgroup>
1520       </informaltable>
1521     </sect2>
1522
1523     <sect2>
1524       <title>C compiler options</title>
1525
1526       <para><xref linkend="options-C-compiler"/></para>
1527       <informaltable>
1528         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1529           <thead>
1530             <row>
1531               <entry>Flag</entry>
1532               <entry>Description</entry>
1533               <entry>Static/Dynamic</entry>
1534               <entry>Reverse</entry>
1535             </row>
1536           </thead>
1537           <tbody>
1538             <row>
1539               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1540               <entry>Include <replaceable>file</replaceable> when
1541               compiling the <filename>.hc</filename> file</entry>
1542               <entry>dynamic</entry>
1543               <entry>-</entry>
1544             </row>
1545           </tbody>
1546         </tgroup>
1547       </informaltable>
1548     </sect2>
1549
1550     <sect2>
1551       <title>Code generation options</title>
1552
1553       <para><xref linkend="options-codegen"/></para>
1554
1555       <informaltable>
1556         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1557           <thead>
1558             <row>
1559               <entry>Flag</entry>
1560               <entry>Description</entry>
1561               <entry>Static/Dynamic</entry>
1562               <entry>Reverse</entry>
1563             </row>
1564           </thead>
1565           <tbody>
1566             <row>
1567               <entry><option>-fasm</option></entry>
1568               <entry>Use the native code generator</entry>
1569               <entry>dynamic</entry>
1570               <entry>-fvia-C</entry>
1571             </row>
1572             <row>
1573               <entry><option>-fvia-C</option></entry>
1574               <entry>Compile via C</entry>
1575               <entry>dynamic</entry>
1576               <entry>-fasm</entry>
1577             </row>
1578             <row>
1579               <entry><option>-fno-code</option></entry>
1580               <entry>Omit code generation</entry>
1581               <entry>dynamic</entry>
1582               <entry>-</entry>
1583             </row>
1584             <row>
1585               <entry><option>-fbyte-code</option></entry>
1586               <entry>Generate byte-code</entry>
1587               <entry>dynamic</entry>
1588               <entry>-</entry>
1589             </row>
1590             <row>
1591               <entry><option>-fobject-code</option></entry>
1592               <entry>Generate object code</entry>
1593               <entry>dynamic</entry>
1594               <entry>-</entry>
1595             </row>
1596           </tbody>
1597         </tgroup>
1598       </informaltable>
1599     </sect2>
1600
1601     <sect2>
1602       <title>Linking options</title>
1603
1604       <para><xref linkend="options-linker"/></para>
1605
1606       <informaltable>
1607         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1608           <thead>
1609             <row>
1610               <entry>Flag</entry>
1611               <entry>Description</entry>
1612               <entry>Static/Dynamic</entry>
1613               <entry>Reverse</entry>
1614             </row>
1615           </thead>
1616           <tbody>
1617             <row>
1618               <entry><option>-fPIC</option></entry>
1619               <entry>Generate position-independent code (where available)</entry>
1620               <entry>static</entry>
1621               <entry>-</entry>
1622             </row>
1623             <row>
1624               <entry><option>-dynamic</option></entry>
1625               <entry>Use dynamic Haskell libraries (if available)</entry>
1626               <entry>static</entry>
1627               <entry>-</entry>
1628             </row>
1629             <row>
1630               <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1631               <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1632                 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1633               <entry>dynamic</entry>
1634               <entry>-</entry>
1635             </row>
1636             <row>
1637               <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1638               <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1639                 directories searched for frameworks.
1640                 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1641               <entry>dynamic</entry>
1642               <entry>-</entry>
1643             </row>
1644             <row>
1645               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1646               <entry>Link in library <replaceable>lib</replaceable></entry>
1647               <entry>dynamic</entry>
1648               <entry>-</entry>
1649             </row>
1650             <row>
1651               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1652               <entry>Add <replaceable>dir</replaceable> to the list of
1653               directories searched for libraries</entry>
1654               <entry>dynamic</entry>
1655               <entry>-</entry>
1656             </row>
1657             <row>
1658               <entry><option>-main-is</option></entry>
1659               <entry>Set main module and function</entry>
1660               <entry>dynamic</entry>
1661               <entry>-</entry>
1662             </row>
1663             <row>
1664               <entry><option>--mk-dll</option></entry>
1665               <entry>DLL-creation mode (Windows only)</entry>
1666               <entry>dynamic</entry>
1667               <entry>-</entry>
1668             </row>
1669             <row>
1670               <entry><option>-no-hs-main</option></entry>
1671               <entry>Don't assume this program contains <literal>main</literal></entry>
1672               <entry>dynamic</entry>
1673               <entry>-</entry>
1674             </row>
1675             <row>
1676               <entry><option>-no-link</option></entry>
1677               <entry>Omit linking</entry>
1678               <entry>dynamic</entry>
1679               <entry>-</entry>
1680             </row>
1681             <row>
1682               <entry><option>-split-objs</option></entry>
1683               <entry>Split objects (for libraries)</entry>
1684               <entry>dynamic</entry>
1685               <entry>-</entry>
1686             </row>
1687             <row>
1688               <entry><option>-static</option></entry>
1689               <entry>Use static Haskell libraries</entry>
1690               <entry>static</entry>
1691               <entry>-</entry>
1692             </row>
1693             <row>
1694               <entry><option>-threaded</option></entry>
1695               <entry>Use the threaded runtime</entry>
1696               <entry>static</entry>
1697               <entry>-</entry>
1698             </row>
1699             <row>
1700               <entry><option>-debug</option></entry>
1701               <entry>Use the debugging runtime</entry>
1702               <entry>static</entry>
1703               <entry>-</entry>
1704             </row>
1705             <row>
1706               <entry><option>-fno-gen-manifest</option></entry>
1707               <entry>Do not generate a manifest file (Windows only)</entry>
1708               <entry>dynamic</entry>
1709               <entry>-</entry>
1710             </row>
1711             <row>
1712               <entry><option>-fno-embed-manifest</option></entry>
1713               <entry>Do not embed the manifest in the executable (Windows only)</entry>
1714               <entry>dynamic</entry>
1715               <entry>-</entry>
1716             </row>
1717           </tbody>
1718         </tgroup>
1719       </informaltable>
1720     </sect2>
1721
1722     <sect2>
1723       <title>Replacing phases</title>
1724
1725       <para><xref linkend="replacing-phases"/></para>
1726
1727       <informaltable>
1728         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1729           <thead>
1730             <row>
1731               <entry>Flag</entry>
1732               <entry>Description</entry>
1733               <entry>Static/Dynamic</entry>
1734               <entry>Reverse</entry>
1735             </row>
1736           </thead>
1737           <tbody>
1738             <row>
1739               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1740               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1741               <entry>dynamic</entry>
1742               <entry>-</entry>
1743             </row>
1744             <row>
1745               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1746               <entry>Use <replaceable>cmd</replaceable> as the C
1747               pre-processor (with <option>-cpp</option> only)</entry>
1748               <entry>dynamic</entry>
1749               <entry>-</entry>
1750             </row>
1751             <row>
1752               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1753               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1754               <entry>dynamic</entry>
1755               <entry>-</entry>
1756             </row>
1757             <row>
1758               <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1759               <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1760               <entry>dynamic</entry>
1761               <entry>-</entry>
1762             </row>
1763             <row>
1764               <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1765               <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1766               <entry>dynamic</entry>
1767               <entry>-</entry>
1768             </row>
1769             <row>
1770               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1771               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1772               <entry>dynamic</entry>
1773               <entry>-</entry>
1774             </row>
1775             <row>
1776               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1777               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1778               <entry>dynamic</entry>
1779               <entry>-</entry>
1780             </row>
1781             <row>
1782               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1783               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1784               <entry>dynamic</entry>
1785               <entry>-</entry>
1786             </row>
1787             <row>
1788               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1789               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1790               (with <option>-F</option> only)</entry>
1791               <entry>dynamic</entry>
1792               <entry>-</entry>
1793             </row>
1794             <row>
1795               <entry><option>-pgmwindres</option> <replaceable>cmd</replaceable></entry>
1796               <entry>Use <replaceable>cmd</replaceable> as the program for
1797                 embedding manifests on Windows.</entry>
1798               <entry>dynamic</entry>
1799               <entry>-</entry>
1800             </row>
1801           </tbody>
1802         </tgroup>
1803       </informaltable>
1804       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1805       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1806       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1807       <indexterm><primary><option>-pgma</option></primary></indexterm>
1808       <indexterm><primary><option>-pgml</option></primary></indexterm>
1809       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1810       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1811
1812     </sect2>
1813
1814     <sect2>
1815       <title>Forcing options to particular phases</title>
1816
1817       <para><xref linkend="forcing-options-through"/></para>
1818
1819       <informaltable>
1820         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1821           <thead>
1822             <row>
1823               <entry>Flag</entry>
1824               <entry>Description</entry>
1825               <entry>Static/Dynamic</entry>
1826               <entry>Reverse</entry>
1827             </row>
1828           </thead>
1829           <tbody>
1830             <row>
1831               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1832               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1833               <entry>dynamic</entry>
1834               <entry>-</entry>
1835             </row>
1836             <row>
1837               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1838               <entry>pass <replaceable>option</replaceable> to cpp (with
1839               <option>-cpp</option> only)</entry>
1840               <entry>dynamic</entry>
1841               <entry>-</entry>
1842             </row>
1843             <row>
1844               <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1845               <entry>pass <replaceable>option</replaceable> to the
1846               custom pre-processor</entry>
1847               <entry>dynamic</entry>
1848               <entry>-</entry>
1849             </row>
1850             <row>
1851               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1852               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1853               <entry>dynamic</entry>
1854               <entry>-</entry>
1855             </row>
1856             <row>
1857               <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1858               <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1859               <entry>dynamic</entry>
1860               <entry>-</entry>
1861             </row>
1862             <row>
1863               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1864               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1865               <entry>dynamic</entry>
1866               <entry>-</entry>
1867             </row>
1868             <row>
1869               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1870               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1871               <entry>dynamic</entry>
1872               <entry>-</entry>
1873             </row>
1874             <row>
1875               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1876               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1877               <entry>dynamic</entry>
1878               <entry>-</entry>
1879             </row>
1880             <row>
1881               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1882               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1883               <entry>dynamic</entry>
1884               <entry>-</entry>
1885             </row>
1886             <row>
1887               <entry><option>-optwindres</option> <replaceable>option</replaceable></entry>
1888               <entry>pass <replaceable>option</replaceable> to <literal>windres</literal>.</entry>
1889               <entry>dynamic</entry>
1890               <entry>-</entry>
1891             </row>
1892           </tbody>
1893         </tgroup>
1894       </informaltable>
1895     </sect2>
1896
1897     <sect2>
1898       <title>Platform-specific options</title>
1899       
1900       <para><xref linkend="options-platform"/></para>
1901
1902       <informaltable>
1903         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1904           <thead>
1905             <row>
1906               <entry>Flag</entry>
1907               <entry>Description</entry>
1908               <entry>Static/Dynamic</entry>
1909               <entry>Reverse</entry>
1910             </row>
1911           </thead>
1912           <tbody>
1913             <row>
1914               <entry><option>-monly-[432]-regs</option></entry>
1915               <entry>(x86 only) give some registers back to the C compiler</entry>
1916               <entry>dynamic</entry>
1917               <entry>-</entry>
1918             </row>
1919           </tbody>
1920         </tgroup>
1921       </informaltable>
1922     </sect2>
1923
1924          
1925     <sect2>
1926       <title>External core file options</title>
1927
1928       <para><xref linkend="ext-core"/></para>
1929
1930       <informaltable>
1931         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1932           <thead>
1933             <row>
1934               <entry>Flag</entry>
1935               <entry>Description</entry>
1936               <entry>Static/Dynamic</entry>
1937               <entry>Reverse</entry>
1938             </row>
1939           </thead>
1940           <tbody>
1941             <row>
1942               <entry><option>-fext-core</option></entry>
1943               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1944               <entry>static</entry>
1945               <entry>-</entry>
1946             </row>
1947           </tbody>
1948         </tgroup>
1949       </informaltable>
1950     </sect2>
1951
1952
1953     <sect2>
1954       <title>Compiler debugging options</title>
1955
1956       <para><xref linkend="options-debugging"/></para>
1957
1958       <informaltable>
1959         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1960           <thead>
1961             <row>
1962               <entry>Flag</entry>
1963               <entry>Description</entry>
1964               <entry>Static/Dynamic</entry>
1965               <entry>Reverse</entry>
1966             </row>
1967           </thead>
1968           <tbody>
1969             <row>
1970               <entry><option>-dcore-lint</option></entry>
1971               <entry>Turn on internal sanity checking</entry>
1972               <entry>dynamic</entry>
1973               <entry>-</entry>
1974             </row>
1975             <row>
1976               <entry><option>-ddump-asm</option></entry>
1977               <entry>Dump assembly</entry>
1978               <entry>dynamic</entry>
1979               <entry>-</entry>
1980             </row>
1981             <row>
1982               <entry><option>-ddump-bcos</option></entry>
1983               <entry>Dump interpreter byte code</entry>
1984               <entry>dynamic</entry>
1985               <entry>-</entry>
1986             </row>
1987             <row>
1988               <entry><option>-ddump-cmm</option></entry>
1989               <entry>Dump C-- output</entry>
1990               <entry>dynamic</entry>
1991               <entry>-</entry>
1992             </row>
1993             <row>
1994               <entry><option>-ddump-cpranal</option></entry>
1995               <entry>Dump output from CPR analysis</entry>
1996               <entry>dynamic</entry>
1997               <entry>-</entry>
1998             </row>
1999             <row>
2000               <entry><option>-ddump-cse</option></entry>
2001               <entry>Dump CSE output</entry>
2002               <entry>dynamic</entry>
2003               <entry>-</entry>
2004             </row>
2005             <row>
2006               <entry><option>-ddump-deriv</option></entry>
2007               <entry>Dump deriving output</entry>
2008               <entry>dynamic</entry>
2009               <entry>-</entry>
2010             </row>
2011             <row>
2012               <entry><option>-ddump-ds</option></entry>
2013               <entry>Dump desugarer output</entry>
2014               <entry>dynamic</entry>
2015               <entry>-</entry>
2016             </row>
2017             <row>
2018               <entry><option>-ddump-flatC</option></entry>
2019               <entry>Dump &ldquo;flat&rdquo; C</entry>
2020               <entry>dynamic</entry>
2021               <entry>-</entry>
2022             </row>
2023             <row>
2024               <entry><option>-ddump-foreign</option></entry>
2025               <entry>Dump <literal>foreign export</literal> stubs</entry>
2026               <entry>dynamic</entry>
2027               <entry>-</entry>
2028             </row>
2029             <row>
2030               <entry><option>-ddump-hpc</option></entry>
2031               <entry>Dump after instrumentation for program coverage</entry>
2032               <entry>dynamic</entry>
2033               <entry>-</entry>
2034             </row>
2035             <row>
2036               <entry><option>-ddump-inlinings</option></entry>
2037               <entry>Dump inlining info</entry>
2038               <entry>dynamic</entry>
2039               <entry>-</entry>
2040             </row>
2041             <row>
2042               <entry><option>-ddump-occur-anal</option></entry>
2043               <entry>Dump occurrence analysis output</entry>
2044               <entry>dynamic</entry>
2045               <entry>-</entry>
2046             </row>
2047             <row>
2048               <entry><option>-ddump-opt-cmm</option></entry>
2049               <entry>Dump the results of C-- to C-- optimising passes</entry>
2050               <entry>dynamic</entry>
2051               <entry>-</entry>
2052             </row>
2053             <row>
2054               <entry><option>-ddump-parsed</option></entry>
2055               <entry>Dump parse tree</entry>
2056               <entry>dynamic</entry>
2057               <entry>-</entry>
2058             </row>
2059             <row>
2060               <entry><option>-ddump-prep</option></entry>
2061               <entry>Dump prepared core</entry>
2062               <entry>dynamic</entry>
2063               <entry>-</entry>
2064             </row>
2065             <row>
2066               <entry><option>-ddump-rn</option></entry>
2067               <entry>Dump renamer output</entry>
2068               <entry>dynamic</entry>
2069               <entry>-</entry>
2070             </row>
2071             <row>
2072               <entry><option>-ddump-rules</option></entry>
2073               <entry>Dump rules</entry>
2074               <entry>dynamic</entry>
2075               <entry>-</entry>
2076             </row>
2077             <row>
2078               <entry><option>-ddump-simpl</option></entry>
2079               <entry>Dump final simplifier output</entry>
2080               <entry>dynamic</entry>
2081               <entry>-</entry>
2082             </row>
2083             <row>
2084               <entry><option>-ddump-simpl-iterations</option></entry>
2085               <entry>Dump output from each simplifier iteration</entry>
2086               <entry>dynamic</entry>
2087               <entry>-</entry>
2088             </row>
2089             <row>
2090               <entry><option>-ddump-spec</option></entry>
2091               <entry>Dump specialiser output</entry>
2092               <entry>dynamic</entry>
2093               <entry>-</entry>
2094             </row>
2095             <row>
2096               <entry><option>-ddump-splices</option></entry>
2097               <entry>Dump TH spliced expressions, and what they evaluate to</entry>
2098               <entry>dynamic</entry>
2099               <entry>-</entry>
2100             </row>
2101             <row>
2102               <entry><option>-ddump-stg</option></entry>
2103               <entry>Dump final STG</entry>
2104               <entry>dynamic</entry>
2105               <entry>-</entry>
2106             </row>
2107             <row>
2108               <entry><option>-ddump-stranal</option></entry>
2109               <entry>Dump strictness analyser output</entry>
2110               <entry>dynamic</entry>
2111               <entry>-</entry>
2112             </row>
2113             <row>
2114               <entry><option>-ddump-tc</option></entry>
2115               <entry>Dump typechecker output</entry>
2116               <entry>dynamic</entry>
2117               <entry>-</entry>
2118             </row>
2119             <row>
2120               <entry><option>-ddump-types</option></entry>
2121               <entry>Dump type signatures</entry>
2122               <entry>dynamic</entry>
2123               <entry>-</entry>
2124             </row>
2125             <row>
2126               <entry><option>-ddump-worker-wrapper</option></entry>
2127               <entry>Dump worker-wrapper output</entry>
2128               <entry>dynamic</entry>
2129               <entry>-</entry>
2130             </row>
2131             <row>
2132               <entry><option>-ddump-if-trace</option></entry>
2133               <entry>Trace interface files</entry>
2134               <entry>dynamic</entry>
2135               <entry>-</entry>
2136             </row>
2137             <row>
2138               <entry><option>-ddump-tc-trace</option></entry>
2139               <entry>Trace typechecker</entry>
2140               <entry>dynamic</entry>
2141               <entry>-</entry>
2142             </row>
2143             <row>
2144               <entry><option>-ddump-rn-trace</option></entry>
2145               <entry>Trace renamer</entry>
2146               <entry>dynamic</entry>
2147               <entry>-</entry>
2148             </row>
2149             <row>
2150               <entry><option>-ddump-rn-stats</option></entry>
2151               <entry>Renamer stats</entry>
2152               <entry>dynamic</entry>
2153               <entry>-</entry>
2154             </row>
2155             <row>
2156               <entry><option>-ddump-simpl-stats</option></entry>
2157               <entry>Dump simplifier stats</entry>
2158               <entry>dynamic</entry>
2159               <entry>-</entry>
2160             </row>
2161             <row>
2162               <entry><option>-dppr-debug</option></entry>
2163               <entry>Turn on debug printing (more verbose)</entry>
2164               <entry>static</entry>
2165               <entry>-</entry>
2166             </row>
2167             <row>
2168               <entry><option>-dppr-noprags</option></entry>
2169               <entry>Don't output pragma info in dumps</entry>
2170               <entry>static</entry>
2171               <entry>-</entry>
2172             </row>
2173             <row>
2174               <entry><option>-dppr-user-length</option></entry>
2175               <entry>Set the depth for printing expressions in error msgs</entry>
2176               <entry>static</entry>
2177               <entry>-</entry>
2178             </row>
2179             <row>
2180               <entry><option>-dsource-stats</option></entry>
2181               <entry>Dump haskell source stats</entry>
2182               <entry>dynamic</entry>
2183               <entry>-</entry>
2184             </row>
2185             <row>
2186               <entry><option>-dcmm-lint</option></entry>
2187               <entry>C-- pass sanity checking</entry>
2188               <entry>dynamic</entry>
2189               <entry>-</entry>
2190             </row>
2191             <row>
2192               <entry><option>-dstg-lint</option></entry>
2193               <entry>STG pass sanity checking</entry>
2194               <entry>dynamic</entry>
2195               <entry>-</entry>
2196             </row>
2197             <row>
2198               <entry><option>-dstg-stats</option></entry>
2199               <entry>Dump STG stats</entry>
2200               <entry>dynamic</entry>
2201               <entry>-</entry>
2202             </row>
2203             <row>
2204               <entry><option>-dverbose-core2core</option></entry>
2205               <entry>Show output from each core-to-core pass</entry>
2206               <entry>dynamic</entry>
2207               <entry>-</entry>
2208             </row>
2209             <row>
2210               <entry><option>-dverbose-stg2stg</option></entry>
2211               <entry>Show output from each STG-to-STG pass</entry>
2212               <entry>dynamic</entry>
2213               <entry>-</entry>
2214             </row>
2215             <row>
2216               <entry><option>-dshow-passes</option></entry>
2217               <entry>Print out each pass name as it happens</entry>
2218               <entry>dynamic</entry>
2219               <entry>-</entry>
2220             </row>
2221             <row>
2222               <entry><option>-dfaststring-stats</option></entry>
2223               <entry>Show statistics for fast string usage when finished</entry>
2224               <entry>dynamic</entry>
2225               <entry>-</entry>
2226             </row>
2227           </tbody>
2228         </tgroup>
2229       </informaltable>
2230     </sect2>
2231       
2232     <sect2>
2233       <title>Misc compiler options</title>
2234
2235       <informaltable>
2236         <tgroup cols="4" align="left" colsep="1" rowsep="1">
2237           <thead>
2238             <row>
2239               <entry>Flag</entry>
2240               <entry>Description</entry>
2241               <entry>Static/Dynamic</entry>
2242               <entry>Reverse</entry>
2243             </row>
2244           </thead>
2245           <tbody>
2246             <row>
2247               <entry><option>-fno-hi-version-check</option></entry>
2248               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
2249               <entry>static</entry>
2250               <entry>-</entry>
2251             </row>
2252             <row>
2253               <entry><option>-dno-black-holing</option></entry>
2254               <entry>Turn off black holing (probably doesn't work)</entry>
2255               <entry>static</entry>
2256               <entry>-</entry>
2257             </row>
2258             <row>
2259               <entry><option>-fno-method-sharing</option></entry>
2260               <entry>Don't share specialisations of overloaded functions</entry>
2261               <entry>static</entry>
2262               <entry>-</entry>
2263             </row>
2264             <row>
2265               <entry><option>-fhistory-size</option></entry>
2266               <entry>Set simplification history size</entry>
2267               <entry>static</entry>
2268               <entry>-</entry>
2269             </row>
2270             <row>
2271               <entry><option>-funregisterised</option></entry>
2272               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
2273               <entry>static</entry>
2274               <entry>-</entry>
2275             </row>
2276             <row>
2277               <entry><option>-fno-asm-mangling</option></entry>
2278               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
2279               <entry>dynamic</entry>
2280               <entry>-</entry>
2281             </row>
2282           </tbody>
2283         </tgroup>
2284       </informaltable>
2285     </sect2>
2286   </sect1>
2287
2288
2289 <!--
2290 Still to document:
2291
2292 Misc:
2293   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
2294
2295   -Bdir
2296 -->
2297
2298 <!-- Emacs stuff:
2299      ;;; Local Variables: ***
2300      ;;; mode: xml ***
2301      ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***
2302      ;;; End: ***
2303  -->