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