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