Fixing #1340, adding HPC Documentation
[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>-XUnicodeSyntax</option></entry>
768               <entry>Enable unicode syntax.</entry>
769               <entry>dynamic</entry>
770               <entry><option>-XNoUnicodeSyntax</option></entry>
771             </row>
772             <row>
773               <entry><option>-XMagicHash</option></entry>
774               <entry>Enable the &ldquo;magic hash&rdquo;.</entry>
775               <entry>dynamic</entry>
776               <entry><option>-XNoMagicHash</option></entry>
777             </row>
778             <row>
779               <entry><option>-XPolymorphicComponents</option></entry>
780               <entry>Enable polymorphic components.</entry>
781               <entry>dynamic</entry>
782               <entry><option>-XNoPolymorphicComponents</option></entry>
783             </row>
784             <row>
785               <entry><option>-XExistentialQuantification</option></entry>
786               <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
787               <entry>dynamic</entry>
788               <entry><option>-XNoExistentialQuantification</option></entry>
789             </row>
790             <row>
791               <entry><option>-XKindSignatures</option></entry>
792               <entry>Enable <link linkend="kinding">kind signatures</link>.</entry>
793               <entry>dynamic</entry>
794               <entry><option>-XNoKindSignatures</option></entry>
795             </row>
796             <row>
797               <entry><option>-XPatternSignatures</option></entry>
798               <entry>Enable <link linkend="pattern-type-sigs">pattern type signatures</link>.</entry>
799               <entry>dynamic</entry>
800               <entry><option>-XNoPatternSignatures</option></entry>
801             </row>
802             <row>
803               <entry><option>-XEmptyDataDecls</option></entry>
804               <entry>Enable empty data declarations.</entry>
805               <entry>dynamic</entry>
806               <entry><option>-XNoEmptyDataDecls</option></entry>
807             </row>
808             <row>
809               <entry><option>-XParallelListComp</option></entry>
810               <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.</entry>
811               <entry>dynamic</entry>
812               <entry><option>-XNoParallelListComp</option></entry>
813             </row>
814             <row>
815               <entry><option>-XUnliftedFFITypes</option></entry>
816               <entry>Enable unlifted FFI types.</entry>
817               <entry>dynamic</entry>
818               <entry><option>-XNoUnliftedFFITypes</option></entry>
819             </row>
820             <row>
821               <entry><option>-XLiberalTypeSynonyms</option></entry>
822               <entry>Enable <link linkend="type-synonyms">liberalised type synonyms</link>.</entry>
823               <entry>dynamic</entry>
824               <entry><option>-XNoLiberalTypeSynonyms</option></entry>
825             </row>
826             <row>
827               <entry><option>-XNoRank2Types</option></entry>
828               <entry>Enable rank-2 types.</entry>
829               <entry>dynamic</entry>
830               <entry><option>-XNoRank2Types</option></entry>
831             </row>
832             <row>
833               <entry><option>-XRankNTypes</option></entry>
834               <entry>Enable rank-N types.</entry>
835               <entry>dynamic</entry>
836               <entry><option>-XNoRankNTypes</option></entry>
837             </row>
838             <row>
839               <entry><option>-XTypeOperators</option></entry>
840               <entry>Enable type operators.</entry>
841               <entry>dynamic</entry>
842               <entry><option>-XNoTypeOperators</option></entry>
843             </row>
844             <row>
845               <entry><option>-XRecursiveDo</option></entry>
846               <entry>Enable <link linkend="mdo-notation">recursive do (mdo) notation</link>.</entry>
847               <entry>dynamic</entry>
848               <entry><option>-XNoRecursiveDo</option></entry>
849             </row>
850             <row>
851               <entry><option>-XPArr</option></entry>
852               <entry>Enable parallel arrays.</entry>
853               <entry>dynamic</entry>
854               <entry><option>-XNoPArr</option></entry>
855             </row>
856             <row>
857               <entry><option>-XRecordWildCards</option></entry>
858               <entry>Enable record wildcards.</entry>
859               <entry>dynamic</entry>
860               <entry><option>-XNoRecordWildCards</option></entry>
861             </row>
862             <row>
863               <entry><option>-XRecordPuns</option></entry>
864               <entry>Enable record puns.</entry>
865               <entry>dynamic</entry>
866               <entry><option>-XNoRecordPuns</option></entry>
867             </row>
868             <row>
869               <entry><option>-XDisambiguateRecordFields</option></entry>
870               <entry>Enable the <link linkend="disambiguate-fields">disambiguate fields.</link> exception</entry>
871               <entry>dynamic</entry>
872               <entry><option>-XNoDisambiguateRecordFields</option></entry>
873             </row>
874             <row>
875               <entry><option>-XUnboxedTuples</option></entry>
876               <entry>Enable <link linkend="unboxed-tuples">unboxed tuples</link>.</entry>
877               <entry>dynamic</entry>
878               <entry><option>-XNoUnboxedTuples</option></entry>
879             </row>
880             <row>
881               <entry><option>-XStandaloneDeriving</option></entry>
882               <entry>Enable <link linkend="stand-alone-deriving">standalone deriving</link>.</entry>
883               <entry>dynamic</entry>
884               <entry><option>-XNoStandaloneDeriving</option></entry>
885             </row>
886             <row>
887               <entry><option>-XDeriveDataTypeable</option></entry>
888               <entry>Enable <link linkend="deriving-typeable">deriving for the Data and Typeable classes</link>.</entry>
889               <entry>dynamic</entry>
890               <entry><option>-XNoDeriveDataTypeable</option></entry>
891             </row>
892             <row>
893               <entry><option>-XGeneralizedNewtypeDeriving</option></entry>
894               <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
895               <entry>dynamic</entry>
896               <entry><option>-XNoGeneralizedNewtypeDeriving</option></entry>
897             </row>
898             <row>
899               <entry><option>-XTypeSynonymInstances</option></entry>
900               <entry>Enable <link linkend="type-synonyms">type synonyms</link>.</entry>
901               <entry>dynamic</entry>
902               <entry><option>-XNoTypeSynonymInstances</option></entry>
903             </row>
904             <row>
905               <entry><option>-XFlexibleContexts</option></entry>
906               <entry>Enable flexible contexts.</entry>
907               <entry>dynamic</entry>
908               <entry><option>-XNoFlexibleContexts</option></entry>
909             </row>
910             <row>
911               <entry><option>-XFlexibleInstances</option></entry>
912               <entry>Enable flexible instances.</entry>
913               <entry>dynamic</entry>
914               <entry><option>-XNoFlexibleInstances</option></entry>
915             </row>
916             <row>
917               <entry><option>-XConstrainedClassMethods</option></entry>
918               <entry>Enable constrained class methods.</entry>
919               <entry>dynamic</entry>
920               <entry><option>-XNoConstrainedClassMethods</option></entry>
921             </row>
922             <row>
923               <entry><option>-XMultiParamTypeClasses</option></entry>
924               <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.</entry>
925               <entry>dynamic</entry>
926               <entry><option>-XNoMultiParamTypeClasses</option></entry>
927             </row>
928             <row>
929               <entry><option>-XFunctionalDependencies</option></entry>
930               <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.</entry>
931               <entry>dynamic</entry>
932               <entry><option>-XNoFunctionalDependencies</option></entry>
933             </row>
934           </tbody>
935         </tgroup>
936       </informaltable>
937     </sect2>
938
939     <sect2>
940       <title>Warnings</title>
941       
942       <para><xref linkend="options-sanity"/></para>
943
944     <informaltable>
945       <tgroup cols="4" align="left" colsep="1" rowsep="1">
946         <thead>
947           <row>
948             <entry>Flag</entry>
949             <entry>Description</entry>
950             <entry>Static/Dynamic</entry>
951             <entry>Reverse</entry>
952           </row>
953         </thead>
954         <tbody>
955           <row>
956             <entry><option>-W</option></entry>
957             <entry>enable normal warnings</entry>
958             <entry>dynamic</entry>
959             <entry><option>-w</option></entry>
960           </row>
961           <row>
962             <entry><option>-w</option></entry>
963             <entry>disable all warnings</entry>
964             <entry>dynamic</entry>
965             <entry>-</entry>
966           </row>
967           <row>
968             <entry><option>-Wall</option></entry>
969             <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
970             <entry>dynamic</entry>
971             <entry><option>-w</option></entry>
972           </row>
973           <row>
974             <entry><option>-Werror</option></entry>
975             <entry>make warnings fatal</entry>
976             <entry>dynamic</entry>
977             <entry>-Wwarn</entry>
978           </row>
979           <row>
980             <entry><option>-Wwarn</option></entry>
981             <entry>make warnings non-fatal</entry>
982             <entry>dynamic</entry>
983             <entry>-Werror</entry>
984           </row>
985
986           <row>
987             <entry><option>-fwarn-deprecations</option></entry>
988             <entry>warn about uses of functions &amp; types that are deprecated</entry>
989             <entry>dynamic</entry>
990             <entry><option>-fno-warn-deprecations</option></entry>
991           </row>
992
993           <row>
994             <entry><option>-fwarn-duplicate-exports</option></entry>
995             <entry>warn when an entity is exported multiple times</entry>
996             <entry>dynamic</entry>
997             <entry><option>-fno-warn-duplicate-exports</option></entry>
998           </row>
999
1000           <row>
1001             <entry><option>-fwarn-hi-shadowing</option></entry>
1002             <entry>warn when a <literal>.hi</literal> file in the
1003             current directory shadows a library</entry>
1004             <entry>dynamic</entry>
1005             <entry><option>-fno-warn-hi-shadowing</option></entry>
1006           </row>
1007
1008           <row>
1009             <entry><option>-fwarn-implicit-prelude</option></entry>
1010             <entry>warn when the Prelude is implicitly imported</entry>
1011             <entry>dynamic</entry>
1012             <entry><option>-fno-warn-implicit-prelude</option></entry>
1013           </row>
1014
1015           <row>
1016             <entry><option>-fwarn-incomplete-patterns</option></entry>
1017             <entry>warn when a pattern match could fail</entry>
1018             <entry>dynamic</entry>
1019             <entry><option>-fno-warn-incomplete-patterns</option></entry>
1020           </row>
1021
1022           <row>
1023             <entry><option>-fwarn-incomplete-record-updates</option></entry>
1024             <entry>warn when a record update could fail</entry>
1025             <entry>dynamic</entry>
1026             <entry><option>-fno-warn-incomplete-record-updates</option></entry>
1027           </row>
1028
1029           <row>
1030             <entry><option>-fwarn-missing-fields</option></entry>
1031             <entry>warn when fields of a record are uninitialised</entry>
1032             <entry>dynamic</entry>
1033             <entry><option>-fno-warn-missing-fields</option></entry>
1034           </row>
1035
1036           <row>
1037             <entry><option>-fwarn-missing-methods</option></entry>
1038             <entry>warn when class methods are undefined</entry>
1039             <entry>dynamic</entry>
1040             <entry><option>-fno-warn-missing-methods</option></entry>
1041           </row>
1042
1043           <row>
1044             <entry><option>-fwarn-missing-signatures</option></entry>
1045             <entry>warn about top-level functions without signatures</entry>
1046             <entry>dynamic</entry>
1047             <entry><option>-fno-warn-missing-signatures</option></entry>
1048           </row>
1049
1050           <row>
1051             <entry><option>-fwarn-name-shadowing</option></entry>
1052             <entry>warn when names are shadowed</entry>
1053             <entry>dynamic</entry>
1054             <entry><option>-fno-warn-name-shadowing</option></entry>
1055           </row>
1056
1057           <row>
1058             <entry><option>-fwarn-orphans</option></entry>
1059             <entry>warn when the module contains "orphan" instance declarations
1060             or rewrite rules</entry>
1061             <entry>dynamic</entry>
1062             <entry><option>-fno-warn-orphans</option></entry>
1063           </row>
1064
1065           <row>
1066             <entry><option>-fwarn-overlapping-patterns</option></entry>
1067             <entry>warn about overlapping patterns</entry>
1068             <entry>dynamic</entry>
1069             <entry><option>-fno-warn-overlapping-patterns</option></entry>
1070           </row>
1071
1072           <row>
1073             <entry><option>-fwarn-simple-patterns</option></entry>
1074             <entry>warn about lambda-patterns that can fail</entry>
1075             <entry>dynamic</entry>
1076             <entry><option>-fno-warn-simple-patterns</option></entry>
1077           </row>
1078
1079           <row>
1080             <entry><option>-fwarn-tabs</option></entry>
1081             <entry>warn if there are tabs in the source file</entry>
1082             <entry>dynamic</entry>
1083             <entry><option>-fno-warn-tabs</option></entry>
1084           </row>
1085
1086           <row>
1087             <entry><option>-fwarn-type-defaults</option></entry>
1088             <entry>warn when defaulting happens</entry>
1089             <entry>dynamic</entry>
1090             <entry><option>-fno-warn-type-defaults</option></entry>
1091           </row>
1092
1093           <row>
1094             <entry><option>-fwarn-monomorphism-restriction</option></entry>
1095             <entry>warn when the Monomorphism Restriction is applied</entry>
1096             <entry>dynamic</entry>
1097             <entry><option>-fno-warn-monomorphism-restriction</option></entry>
1098           </row>
1099
1100           <row>
1101             <entry><option>-fwarn-unused-binds</option></entry>
1102             <entry>warn about bindings that are unused</entry>
1103             <entry>dynamic</entry>
1104             <entry><option>-fno-warn-unused-binds</option></entry>
1105           </row>
1106
1107           <row>
1108             <entry><option>-fwarn-unused-imports</option></entry>
1109             <entry>warn about unnecessary imports</entry>
1110             <entry>dynamic</entry>
1111             <entry><option>-fno-warn-unused-imports</option></entry>
1112           </row>
1113
1114           <row>
1115             <entry><option>-fwarn-unused-matches</option></entry>
1116             <entry>warn about variables in patterns that aren't used</entry>
1117             <entry>dynamic</entry>
1118             <entry><option>-fno-warn-unused-matches</option></entry>
1119           </row>
1120
1121           </tbody>
1122         </tgroup>
1123       </informaltable>
1124
1125     </sect2>
1126     <sect2>
1127       <title>Optimisation levels</title>
1128
1129       <para><xref linkend="options-optimise"/></para>
1130
1131       <informaltable>
1132         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1133           <thead>
1134             <row>
1135               <entry>Flag</entry>
1136               <entry>Description</entry>
1137               <entry>Static/Dynamic</entry>
1138               <entry>Reverse</entry>
1139             </row>
1140           </thead>
1141           <tbody>
1142             <row>
1143               <entry><option>-O</option></entry>
1144               <entry>Enable default optimisation (level 1)</entry>
1145               <entry>dynamic</entry>
1146               <entry><option>-O0</option></entry>
1147             </row>
1148             <row>
1149               <entry><option>-O</option><replaceable>n</replaceable></entry>
1150               <entry>Set optimisation level <replaceable>n</replaceable></entry>
1151               <entry>dynamic</entry>
1152               <entry><option>-O0</option></entry>
1153             </row>
1154           </tbody>
1155         </tgroup>
1156       </informaltable>
1157               
1158     </sect2>
1159     <sect2>
1160       <title>Individual optimisations</title>
1161
1162       <para><xref linkend="options-f"/></para>
1163
1164       <informaltable>
1165         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1166           <thead>
1167             <row>
1168               <entry>Flag</entry>
1169               <entry>Description</entry>
1170               <entry>Static/Dynamic</entry>
1171               <entry>Reverse</entry>
1172             </row>
1173           </thead>
1174           <tbody>
1175             <row>
1176               <entry><option>-fcase-merge</option></entry>
1177               <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
1178               <entry>dynamic</entry>
1179               <entry><option>-fno-case-merge</option></entry>
1180             </row>
1181
1182             <row>
1183               <entry><option>-fdicts-strict</option></entry>
1184               <entry>Make dictionaries strict</entry>
1185               <entry>static</entry>
1186               <entry><option>-fno-dicts-strict</option></entry>
1187             </row>
1188
1189             <row>
1190               <entry><option>-fdo-eta-reduction</option></entry>
1191               <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
1192               <entry>dynamic</entry>
1193               <entry><option>-fno-do-eta-reduction</option></entry>
1194             </row>
1195
1196             <row>
1197               <entry><option>-fdo-lambda-eta-expansion</option></entry>
1198               <entry>Enable lambda eta-reduction</entry>
1199               <entry>dynamic</entry>
1200               <entry><option>-fno-do-lambda-eta-expansion</option></entry>
1201             </row>
1202
1203             <row>
1204               <entry><option>-fexcess-precision</option></entry>
1205               <entry>Enable excess intermediate precision</entry>
1206               <entry>dynamic</entry>
1207               <entry><option>-fno-excess-precision</option></entry>
1208             </row>
1209
1210             <row>
1211               <entry><option>-fignore-asserts</option></entry>
1212               <entry>Ignore assertions in the source</entry>
1213               <entry>dynamic</entry>
1214               <entry><option>-fno-ignore-asserts</option></entry>
1215             </row>
1216
1217             <row>
1218               <entry><option>-fignore-interface-pragmas</option></entry>
1219               <entry>Ignore pragmas in interface files</entry>
1220               <entry>dynamic</entry>
1221               <entry><option>-fno-ignore-interface-pragmas</option></entry>
1222             </row>
1223
1224             <row>
1225               <entry><option>-fomit-interface-pragmas</option></entry>
1226               <entry>Don't generate interface pragmas</entry>
1227               <entry>dynamic</entry>
1228               <entry><option>-fno-omit-interface-pragmas</option></entry>
1229             </row>
1230
1231             <row>
1232               <entry><option>-fmax-worker-args</option></entry>
1233               <entry>If a worker has that many arguments, none will be
1234                 unpacked anymore (default: 10)</entry>
1235               <entry>static</entry>
1236               <entry>-</entry>
1237             </row>
1238
1239             <row>
1240               <entry><option>-fmax-simplifier-iterations</option></entry>
1241               <entry>Set the max iterations for the simplifier</entry>
1242               <entry>dynamic</entry>
1243               <entry>-</entry>
1244             </row>
1245
1246             <row>
1247               <entry><option>-fno-state-hack</option></entry>
1248               <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1249               as argument is considered to be single-entry.  Hence OK to inline things inside it.</entry>
1250               <entry>static</entry>
1251               <entry>-</entry>
1252             </row>
1253
1254             <row>
1255               <entry><option>-fcse</option></entry>
1256               <entry>Turn on common sub-expression elimination. Implied by <option>-O</option>.</entry>
1257               <entry>dynamic</entry>
1258               <entry>-fno-cse</entry>
1259             </row>
1260
1261             <row>
1262               <entry><option>-ffull-laziness</option></entry>
1263               <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
1264               <entry>dynamic</entry>
1265               <entry>-fno-full-laziness</entry>
1266             </row>
1267
1268             <row>
1269               <entry><option>-frewrite-rules</option></entry>
1270               <entry>Switch on all rewrite rules (including rules
1271               generated by automatic specialisation of overloaded functions).
1272               Implied by <option>-O</option>. </entry>
1273               <entry>dynamic</entry>
1274               <entry><option>-fno-rewrite-rules</option></entry>
1275             </row>
1276
1277             <row>
1278               <entry><option>-fstrictness</option></entry>
1279               <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1280               <entry>dynamic</entry>
1281               <entry>-fno-strictness</entry>
1282             </row>
1283
1284             <row>
1285               <entry><option>-fspec-constr</option></entry>
1286               <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1287               <entry>dynamic</entry>
1288               <entry>-fno-spec-constr</entry>
1289             </row>
1290
1291             <row>
1292               <entry><option>-fliberate-case</option></entry>
1293               <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
1294               <entry>dynamic</entry>
1295               <entry>-fno-liberate-case</entry>
1296             </row>
1297
1298             <row>
1299               <entry><option>-fspec-threshold</option>=<replaceable>n</replaceable></entry>
1300               <entry>Set the size threshold for function specialisation to <replaceable>n</replaceable>, for both
1301                 the liberate-case and SpecConstr transformations (default: 200)</entry>
1302               <entry>static</entry>
1303               <entry><option>-</option></entry>
1304             </row>
1305
1306             <row>
1307               <entry><option>-funbox-strict-fields</option></entry>
1308               <entry>Flatten strict constructor fields</entry>
1309               <entry>dynamic</entry>
1310               <entry><option>-fno-unbox-strict-fields</option></entry>
1311             </row>
1312
1313             <row>
1314               <entry><option>-funfolding-creation-threshold</option></entry>
1315               <entry>Tweak unfolding settings</entry>
1316               <entry>static</entry>
1317               <entry><option>-fno-unfolding-creation-threshold</option></entry>
1318             </row>
1319
1320             <row>
1321               <entry><option>-funfolding-fun-discount</option></entry>
1322               <entry>Tweak unfolding settings</entry>
1323               <entry>static</entry>
1324               <entry><option>-fno-unfolding-fun-discount</option></entry>
1325             </row>
1326
1327             <row>
1328               <entry><option>-funfolding-keeness-factor</option></entry>
1329               <entry>Tweak unfolding settings</entry>
1330               <entry>static</entry>
1331               <entry><option>-fno-unfolding-keeness-factor</option></entry>
1332             </row>
1333
1334             <row>
1335               <entry><option>-funfolding-update-in-place</option></entry>
1336               <entry>Tweak unfolding settings</entry>
1337               <entry>static</entry>
1338               <entry><option>-fno-unfolding-update-in-place</option></entry>
1339             </row>
1340
1341             <row>
1342               <entry><option>-funfolding-use-threshold</option></entry>
1343               <entry>Tweak unfolding settings</entry>
1344               <entry>static</entry>
1345               <entry><option>-fno-unfolding-use-threshold</option></entry>
1346             </row>
1347
1348             <row>
1349               <entry><option>-fno-pre-inlining</option></entry>
1350               <entry>Turn off pre-inlining</entry>
1351               <entry>static</entry>
1352               <entry>-</entry>
1353             </row>
1354           </tbody>
1355         </tgroup>
1356       </informaltable>
1357     </sect2>
1358
1359     <sect2>
1360       <title>Profiling options</title>
1361       
1362       <para><xref linkend="profiling"/></para>
1363
1364       <informaltable>
1365         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1366           <thead>
1367             <row>
1368               <entry>Flag</entry>
1369               <entry>Description</entry>
1370               <entry>Static/Dynamic</entry>
1371               <entry>Reverse</entry>
1372             </row>
1373           </thead>
1374           <tbody>
1375             <row>
1376               <entry><option>-auto</option></entry>
1377               <entry>Auto-add <literal>_scc_</literal>s to all
1378               exported functions</entry>
1379               <entry>static</entry>
1380               <entry><option>-no-auto</option></entry>
1381             </row>
1382             <row>
1383               <entry><option>-auto-all</option></entry>
1384               <entry>Auto-add <literal>_scc_</literal>s to all
1385               top-level functions</entry>
1386               <entry>static</entry>
1387               <entry><option>-no-auto-all</option></entry>
1388             </row>
1389             <row>
1390               <entry><option>-caf-all</option></entry>
1391               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1392               <entry>static</entry>
1393               <entry><option>-no-caf-all</option></entry>
1394             </row>
1395             <row>
1396               <entry><option>-prof</option></entry>
1397               <entry>Turn on profiling</entry>
1398               <entry>static</entry>
1399               <entry>-</entry>
1400             </row>
1401             <row>
1402               <entry><option>-ticky</option></entry>
1403               <entry>Turn on ticky-ticky profiling</entry>
1404               <entry>static</entry>
1405               <entry>-</entry>
1406             </row>
1407           </tbody>
1408         </tgroup>
1409       </informaltable>
1410     </sect2>
1411
1412     <sect2>
1413       <title>Program coverage options</title>
1414       
1415       <para><xref linkend="hpc"/></para>
1416
1417       <informaltable>
1418         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1419           <thead>
1420             <row>
1421               <entry>Flag</entry>
1422               <entry>Description</entry>
1423               <entry>Static/Dynamic</entry>
1424               <entry>Reverse</entry>
1425             </row>
1426           </thead>
1427           <tbody>
1428             <row>
1429               <entry><option>-fhpc</option></entry>
1430               <entry>Turn on Haskell program coverage instrumentation</entry>
1431               <entry>static</entry>
1432               <entry><option>-</option></entry>
1433             </row>
1434             <row>
1435               <entry><option>-hpcdir dir</option></entry>
1436               <entry>Directory to deposit .mix files during compilation (default is .hpc)</entry>
1437               <entry>dynamic</entry>
1438               <entry><option>-</option></entry>
1439             </row>
1440           </tbody>
1441         </tgroup>
1442       </informaltable>
1443     </sect2>
1444
1445     <sect2>
1446       <title>Haskell pre-processor options</title>
1447
1448       <para><xref linkend="pre-processor"/></para>
1449
1450       <informaltable>
1451         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1452           <thead>
1453             <row>
1454               <entry>Flag</entry>
1455               <entry>Description</entry>
1456               <entry>Static/Dynamic</entry>
1457               <entry>Reverse</entry>
1458             </row>
1459           </thead>
1460           <tbody>
1461             <row>
1462               <entry><option>-F</option></entry>
1463               <entry>
1464                   Enable the use of a pre-processor
1465                   (set with <option>-pgmF</option>)
1466               </entry>
1467               <entry>dynamic</entry>
1468               <entry>-</entry>
1469             </row>
1470           </tbody>
1471         </tgroup>
1472       </informaltable>
1473     </sect2>
1474
1475     <sect2>
1476       <title>C pre-processor options</title>
1477
1478       <para><xref linkend="c-pre-processor"/></para>
1479
1480       <informaltable>
1481         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1482           <thead>
1483             <row>
1484               <entry>Flag</entry>
1485               <entry>Description</entry>
1486               <entry>Static/Dynamic</entry>
1487               <entry>Reverse</entry>
1488             </row>
1489           </thead>
1490           <tbody>
1491             <row>
1492               <entry><option>-cpp</option></entry>
1493               <entry>Run the C pre-processor on Haskell source files</entry>
1494               <entry>dynamic</entry>
1495               <entry>-</entry>
1496             </row>
1497             <row>
1498               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1499               <entry>Define a symbol in the C pre-processor</entry>
1500               <entry>dynamic</entry>
1501               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1502             </row>
1503             <row>
1504               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1505               <entry>Undefine a symbol in the C pre-processor</entry>
1506               <entry>dynamic</entry>
1507               <entry>-</entry>
1508             </row>
1509             <row>
1510               <entry><option>-I</option><replaceable>dir</replaceable></entry>
1511               <entry>Add <replaceable>dir</replaceable> to the
1512               directory search list for <literal>#include</literal> files</entry>
1513               <entry>dynamic</entry>
1514               <entry>-</entry>
1515             </row>
1516           </tbody>
1517         </tgroup>
1518       </informaltable>
1519     </sect2>
1520
1521     <sect2>
1522       <title>C compiler options</title>
1523
1524       <para><xref linkend="options-C-compiler"/></para>
1525       <informaltable>
1526         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1527           <thead>
1528             <row>
1529               <entry>Flag</entry>
1530               <entry>Description</entry>
1531               <entry>Static/Dynamic</entry>
1532               <entry>Reverse</entry>
1533             </row>
1534           </thead>
1535           <tbody>
1536             <row>
1537               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1538               <entry>Include <replaceable>file</replaceable> when
1539               compiling the <filename>.hc</filename> file</entry>
1540               <entry>dynamic</entry>
1541               <entry>-</entry>
1542             </row>
1543           </tbody>
1544         </tgroup>
1545       </informaltable>
1546     </sect2>
1547
1548     <sect2>
1549       <title>Code generation options</title>
1550
1551       <para><xref linkend="options-codegen"/></para>
1552
1553       <informaltable>
1554         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1555           <thead>
1556             <row>
1557               <entry>Flag</entry>
1558               <entry>Description</entry>
1559               <entry>Static/Dynamic</entry>
1560               <entry>Reverse</entry>
1561             </row>
1562           </thead>
1563           <tbody>
1564             <row>
1565               <entry><option>-fasm</option></entry>
1566               <entry>Use the native code generator</entry>
1567               <entry>dynamic</entry>
1568               <entry>-fvia-C</entry>
1569             </row>
1570             <row>
1571               <entry><option>-fvia-C</option></entry>
1572               <entry>Compile via C</entry>
1573               <entry>dynamic</entry>
1574               <entry>-fasm</entry>
1575             </row>
1576             <row>
1577               <entry><option>-fno-code</option></entry>
1578               <entry>Omit code generation</entry>
1579               <entry>dynamic</entry>
1580               <entry>-</entry>
1581             </row>
1582             <row>
1583               <entry><option>-fbyte-code</option></entry>
1584               <entry>Generate byte-code</entry>
1585               <entry>dynamic</entry>
1586               <entry>-</entry>
1587             </row>
1588             <row>
1589               <entry><option>-fobject-code</option></entry>
1590               <entry>Generate object code</entry>
1591               <entry>dynamic</entry>
1592               <entry>-</entry>
1593             </row>
1594           </tbody>
1595         </tgroup>
1596       </informaltable>
1597     </sect2>
1598
1599     <sect2>
1600       <title>Linking options</title>
1601
1602       <para><xref linkend="options-linker"/></para>
1603
1604       <informaltable>
1605         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1606           <thead>
1607             <row>
1608               <entry>Flag</entry>
1609               <entry>Description</entry>
1610               <entry>Static/Dynamic</entry>
1611               <entry>Reverse</entry>
1612             </row>
1613           </thead>
1614           <tbody>
1615             <row>
1616               <entry><option>-fPIC</option></entry>
1617               <entry>Generate position-independent code (where available)</entry>
1618               <entry>static</entry>
1619               <entry>-</entry>
1620             </row>
1621             <row>
1622               <entry><option>-dynamic</option></entry>
1623               <entry>Use dynamic Haskell libraries (if available)</entry>
1624               <entry>static</entry>
1625               <entry>-</entry>
1626             </row>
1627             <row>
1628               <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1629               <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1630                 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1631               <entry>dynamic</entry>
1632               <entry>-</entry>
1633             </row>
1634             <row>
1635               <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1636               <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1637                 directories searched for frameworks.
1638                 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1639               <entry>dynamic</entry>
1640               <entry>-</entry>
1641             </row>
1642             <row>
1643               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1644               <entry>Link in library <replaceable>lib</replaceable></entry>
1645               <entry>dynamic</entry>
1646               <entry>-</entry>
1647             </row>
1648             <row>
1649               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1650               <entry>Add <replaceable>dir</replaceable> to the list of
1651               directories searched for libraries</entry>
1652               <entry>dynamic</entry>
1653               <entry>-</entry>
1654             </row>
1655             <row>
1656               <entry><option>-main-is</option></entry>
1657               <entry>Set main module and function</entry>
1658               <entry>dynamic</entry>
1659               <entry>-</entry>
1660             </row>
1661             <row>
1662               <entry><option>--mk-dll</option></entry>
1663               <entry>DLL-creation mode (Windows only)</entry>
1664               <entry>dynamic</entry>
1665               <entry>-</entry>
1666             </row>
1667             <row>
1668               <entry><option>-no-hs-main</option></entry>
1669               <entry>Don't assume this program contains <literal>main</literal></entry>
1670               <entry>dynamic</entry>
1671               <entry>-</entry>
1672             </row>
1673             <row>
1674               <entry><option>-no-link</option></entry>
1675               <entry>Omit linking</entry>
1676               <entry>dynamic</entry>
1677               <entry>-</entry>
1678             </row>
1679             <row>
1680               <entry><option>-split-objs</option></entry>
1681               <entry>Split objects (for libraries)</entry>
1682               <entry>dynamic</entry>
1683               <entry>-</entry>
1684             </row>
1685             <row>
1686               <entry><option>-static</option></entry>
1687               <entry>Use static Haskell libraries</entry>
1688               <entry>static</entry>
1689               <entry>-</entry>
1690             </row>
1691             <row>
1692               <entry><option>-threaded</option></entry>
1693               <entry>Use the threaded runtime</entry>
1694               <entry>static</entry>
1695               <entry>-</entry>
1696             </row>
1697             <row>
1698               <entry><option>-debug</option></entry>
1699               <entry>Use the debugging runtime</entry>
1700               <entry>static</entry>
1701               <entry>-</entry>
1702             </row>
1703             <row>
1704               <entry><option>-fno-gen-manifest</option></entry>
1705               <entry>Do not generate a manifest file (Windows only)</entry>
1706               <entry>dynamic</entry>
1707               <entry>-</entry>
1708             </row>
1709             <row>
1710               <entry><option>-fno-embed-manifest</option></entry>
1711               <entry>Do not embed the manifest in the executable (Windows only)</entry>
1712               <entry>dynamic</entry>
1713               <entry>-</entry>
1714             </row>
1715           </tbody>
1716         </tgroup>
1717       </informaltable>
1718     </sect2>
1719
1720     <sect2>
1721       <title>Replacing phases</title>
1722
1723       <para><xref linkend="replacing-phases"/></para>
1724
1725       <informaltable>
1726         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1727           <thead>
1728             <row>
1729               <entry>Flag</entry>
1730               <entry>Description</entry>
1731               <entry>Static/Dynamic</entry>
1732               <entry>Reverse</entry>
1733             </row>
1734           </thead>
1735           <tbody>
1736             <row>
1737               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1738               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1739               <entry>dynamic</entry>
1740               <entry>-</entry>
1741             </row>
1742             <row>
1743               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1744               <entry>Use <replaceable>cmd</replaceable> as the C
1745               pre-processor (with <option>-cpp</option> only)</entry>
1746               <entry>dynamic</entry>
1747               <entry>-</entry>
1748             </row>
1749             <row>
1750               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1751               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1752               <entry>dynamic</entry>
1753               <entry>-</entry>
1754             </row>
1755             <row>
1756               <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1757               <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1758               <entry>dynamic</entry>
1759               <entry>-</entry>
1760             </row>
1761             <row>
1762               <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1763               <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1764               <entry>dynamic</entry>
1765               <entry>-</entry>
1766             </row>
1767             <row>
1768               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1769               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1770               <entry>dynamic</entry>
1771               <entry>-</entry>
1772             </row>
1773             <row>
1774               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1775               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1776               <entry>dynamic</entry>
1777               <entry>-</entry>
1778             </row>
1779             <row>
1780               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1781               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1782               <entry>dynamic</entry>
1783               <entry>-</entry>
1784             </row>
1785             <row>
1786               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1787               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1788               (with <option>-F</option> only)</entry>
1789               <entry>dynamic</entry>
1790               <entry>-</entry>
1791             </row>
1792             <row>
1793               <entry><option>-pgmwindres</option> <replaceable>cmd</replaceable></entry>
1794               <entry>Use <replaceable>cmd</replaceable> as the program for
1795                 embedding manifests on Windows.</entry>
1796               <entry>dynamic</entry>
1797               <entry>-</entry>
1798             </row>
1799           </tbody>
1800         </tgroup>
1801       </informaltable>
1802       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1803       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1804       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1805       <indexterm><primary><option>-pgma</option></primary></indexterm>
1806       <indexterm><primary><option>-pgml</option></primary></indexterm>
1807       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1808       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1809
1810     </sect2>
1811
1812     <sect2>
1813       <title>Forcing options to particular phases</title>
1814
1815       <para><xref linkend="forcing-options-through"/></para>
1816
1817       <informaltable>
1818         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1819           <thead>
1820             <row>
1821               <entry>Flag</entry>
1822               <entry>Description</entry>
1823               <entry>Static/Dynamic</entry>
1824               <entry>Reverse</entry>
1825             </row>
1826           </thead>
1827           <tbody>
1828             <row>
1829               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1830               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1831               <entry>dynamic</entry>
1832               <entry>-</entry>
1833             </row>
1834             <row>
1835               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1836               <entry>pass <replaceable>option</replaceable> to cpp (with
1837               <option>-cpp</option> only)</entry>
1838               <entry>dynamic</entry>
1839               <entry>-</entry>
1840             </row>
1841             <row>
1842               <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1843               <entry>pass <replaceable>option</replaceable> to the
1844               custom pre-processor</entry>
1845               <entry>dynamic</entry>
1846               <entry>-</entry>
1847             </row>
1848             <row>
1849               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1850               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1851               <entry>dynamic</entry>
1852               <entry>-</entry>
1853             </row>
1854             <row>
1855               <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1856               <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1857               <entry>dynamic</entry>
1858               <entry>-</entry>
1859             </row>
1860             <row>
1861               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1862               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1863               <entry>dynamic</entry>
1864               <entry>-</entry>
1865             </row>
1866             <row>
1867               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1868               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1869               <entry>dynamic</entry>
1870               <entry>-</entry>
1871             </row>
1872             <row>
1873               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1874               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1875               <entry>dynamic</entry>
1876               <entry>-</entry>
1877             </row>
1878             <row>
1879               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1880               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1881               <entry>dynamic</entry>
1882               <entry>-</entry>
1883             </row>
1884             <row>
1885               <entry><option>-optwindres</option> <replaceable>option</replaceable></entry>
1886               <entry>pass <replaceable>option</replaceable> to <literal>windres</literal>.</entry>
1887               <entry>dynamic</entry>
1888               <entry>-</entry>
1889             </row>
1890           </tbody>
1891         </tgroup>
1892       </informaltable>
1893     </sect2>
1894
1895     <sect2>
1896       <title>Platform-specific options</title>
1897       
1898       <para><xref linkend="options-platform"/></para>
1899
1900       <informaltable>
1901         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1902           <thead>
1903             <row>
1904               <entry>Flag</entry>
1905               <entry>Description</entry>
1906               <entry>Static/Dynamic</entry>
1907               <entry>Reverse</entry>
1908             </row>
1909           </thead>
1910           <tbody>
1911             <row>
1912               <entry><option>-monly-[432]-regs</option></entry>
1913               <entry>(x86 only) give some registers back to the C compiler</entry>
1914               <entry>dynamic</entry>
1915               <entry>-</entry>
1916             </row>
1917           </tbody>
1918         </tgroup>
1919       </informaltable>
1920     </sect2>
1921
1922          
1923     <sect2>
1924       <title>External core file options</title>
1925
1926       <para><xref linkend="ext-core"/></para>
1927
1928       <informaltable>
1929         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1930           <thead>
1931             <row>
1932               <entry>Flag</entry>
1933               <entry>Description</entry>
1934               <entry>Static/Dynamic</entry>
1935               <entry>Reverse</entry>
1936             </row>
1937           </thead>
1938           <tbody>
1939             <row>
1940               <entry><option>-fext-core</option></entry>
1941               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1942               <entry>static</entry>
1943               <entry>-</entry>
1944             </row>
1945           </tbody>
1946         </tgroup>
1947       </informaltable>
1948     </sect2>
1949
1950
1951     <sect2>
1952       <title>Compiler debugging options</title>
1953
1954       <para><xref linkend="options-debugging"/></para>
1955
1956       <informaltable>
1957         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1958           <thead>
1959             <row>
1960               <entry>Flag</entry>
1961               <entry>Description</entry>
1962               <entry>Static/Dynamic</entry>
1963               <entry>Reverse</entry>
1964             </row>
1965           </thead>
1966           <tbody>
1967             <row>
1968               <entry><option>-dcore-lint</option></entry>
1969               <entry>Turn on internal sanity checking</entry>
1970               <entry>dynamic</entry>
1971               <entry>-</entry>
1972             </row>
1973             <row>
1974               <entry><option>-ddump-asm</option></entry>
1975               <entry>Dump assembly</entry>
1976               <entry>dynamic</entry>
1977               <entry>-</entry>
1978             </row>
1979             <row>
1980               <entry><option>-ddump-bcos</option></entry>
1981               <entry>Dump interpreter byte code</entry>
1982               <entry>dynamic</entry>
1983               <entry>-</entry>
1984             </row>
1985             <row>
1986               <entry><option>-ddump-cmm</option></entry>
1987               <entry>Dump C-- output</entry>
1988               <entry>dynamic</entry>
1989               <entry>-</entry>
1990             </row>
1991             <row>
1992               <entry><option>-ddump-cpranal</option></entry>
1993               <entry>Dump output from CPR analysis</entry>
1994               <entry>dynamic</entry>
1995               <entry>-</entry>
1996             </row>
1997             <row>
1998               <entry><option>-ddump-cse</option></entry>
1999               <entry>Dump CSE output</entry>
2000               <entry>dynamic</entry>
2001               <entry>-</entry>
2002             </row>
2003             <row>
2004               <entry><option>-ddump-deriv</option></entry>
2005               <entry>Dump deriving output</entry>
2006               <entry>dynamic</entry>
2007               <entry>-</entry>
2008             </row>
2009             <row>
2010               <entry><option>-ddump-ds</option></entry>
2011               <entry>Dump desugarer output</entry>
2012               <entry>dynamic</entry>
2013               <entry>-</entry>
2014             </row>
2015             <row>
2016               <entry><option>-ddump-flatC</option></entry>
2017               <entry>Dump &ldquo;flat&rdquo; C</entry>
2018               <entry>dynamic</entry>
2019               <entry>-</entry>
2020             </row>
2021             <row>
2022               <entry><option>-ddump-foreign</option></entry>
2023               <entry>Dump <literal>foreign export</literal> stubs</entry>
2024               <entry>dynamic</entry>
2025               <entry>-</entry>
2026             </row>
2027             <row>
2028               <entry><option>-ddump-hpc</option></entry>
2029               <entry>Dump after intrumentation for program coverage</entry>
2030               <entry>dynamic</entry>
2031               <entry>-</entry>
2032             </row>
2033             <row>
2034               <entry><option>-ddump-inlinings</option></entry>
2035               <entry>Dump inlining info</entry>
2036               <entry>dynamic</entry>
2037               <entry>-</entry>
2038             </row>
2039             <row>
2040               <entry><option>-ddump-occur-anal</option></entry>
2041               <entry>Dump occurrence analysis output</entry>
2042               <entry>dynamic</entry>
2043               <entry>-</entry>
2044             </row>
2045             <row>
2046               <entry><option>-ddump-opt-cmm</option></entry>
2047               <entry>Dump the results of C-- to C-- optimising passes</entry>
2048               <entry>dynamic</entry>
2049               <entry>-</entry>
2050             </row>
2051             <row>
2052               <entry><option>-ddump-parsed</option></entry>
2053               <entry>Dump parse tree</entry>
2054               <entry>dynamic</entry>
2055               <entry>-</entry>
2056             </row>
2057             <row>
2058               <entry><option>-ddump-prep</option></entry>
2059               <entry>Dump prepared core</entry>
2060               <entry>dynamic</entry>
2061               <entry>-</entry>
2062             </row>
2063             <row>
2064               <entry><option>-ddump-rn</option></entry>
2065               <entry>Dump renamer output</entry>
2066               <entry>dynamic</entry>
2067               <entry>-</entry>
2068             </row>
2069             <row>
2070               <entry><option>-ddump-rules</option></entry>
2071               <entry>Dump rules</entry>
2072               <entry>dynamic</entry>
2073               <entry>-</entry>
2074             </row>
2075             <row>
2076               <entry><option>-ddump-simpl</option></entry>
2077               <entry>Dump final simplifier output</entry>
2078               <entry>dynamic</entry>
2079               <entry>-</entry>
2080             </row>
2081             <row>
2082               <entry><option>-ddump-simpl-iterations</option></entry>
2083               <entry>Dump output from each simplifier iteration</entry>
2084               <entry>dynamic</entry>
2085               <entry>-</entry>
2086             </row>
2087             <row>
2088               <entry><option>-ddump-spec</option></entry>
2089               <entry>Dump specialiser output</entry>
2090               <entry>dynamic</entry>
2091               <entry>-</entry>
2092             </row>
2093             <row>
2094               <entry><option>-ddump-splices</option></entry>
2095               <entry>Dump TH splided expressions, and what they evaluate to</entry>
2096               <entry>dynamic</entry>
2097               <entry>-</entry>
2098             </row>
2099             <row>
2100               <entry><option>-ddump-stg</option></entry>
2101               <entry>Dump final STG</entry>
2102               <entry>dynamic</entry>
2103               <entry>-</entry>
2104             </row>
2105             <row>
2106               <entry><option>-ddump-stranal</option></entry>
2107               <entry>Dump strictness analyser output</entry>
2108               <entry>dynamic</entry>
2109               <entry>-</entry>
2110             </row>
2111             <row>
2112               <entry><option>-ddump-tc</option></entry>
2113               <entry>Dump typechecker output</entry>
2114               <entry>dynamic</entry>
2115               <entry>-</entry>
2116             </row>
2117             <row>
2118               <entry><option>-ddump-types</option></entry>
2119               <entry>Dump type signatures</entry>
2120               <entry>dynamic</entry>
2121               <entry>-</entry>
2122             </row>
2123             <row>
2124               <entry><option>-ddump-worker-wrapper</option></entry>
2125               <entry>Dump worker-wrapper output</entry>
2126               <entry>dynamic</entry>
2127               <entry>-</entry>
2128             </row>
2129             <row>
2130               <entry><option>-ddump-if-trace</option></entry>
2131               <entry>Trace interface files</entry>
2132               <entry>dynamic</entry>
2133               <entry>-</entry>
2134             </row>
2135             <row>
2136               <entry><option>-ddump-tc-trace</option></entry>
2137               <entry>Trace typechecker</entry>
2138               <entry>dynamic</entry>
2139               <entry>-</entry>
2140             </row>
2141             <row>
2142               <entry><option>-ddump-rn-trace</option></entry>
2143               <entry>Trace renamer</entry>
2144               <entry>dynamic</entry>
2145               <entry>-</entry>
2146             </row>
2147             <row>
2148               <entry><option>-ddump-rn-stats</option></entry>
2149               <entry>Renamer stats</entry>
2150               <entry>dynamic</entry>
2151               <entry>-</entry>
2152             </row>
2153             <row>
2154               <entry><option>-ddump-simpl-stats</option></entry>
2155               <entry>Dump simplifier stats</entry>
2156               <entry>dynamic</entry>
2157               <entry>-</entry>
2158             </row>
2159             <row>
2160               <entry><option>-dppr-debug</option></entry>
2161               <entry>Turn on debug printing (more verbose)</entry>
2162               <entry>static</entry>
2163               <entry>-</entry>
2164             </row>
2165             <row>
2166               <entry><option>-dppr-noprags</option></entry>
2167               <entry>Don't output pragma info in dumps</entry>
2168               <entry>static</entry>
2169               <entry>-</entry>
2170             </row>
2171             <row>
2172               <entry><option>-dppr-user-length</option></entry>
2173               <entry>Set the depth for printing expressions in error msgs</entry>
2174               <entry>static</entry>
2175               <entry>-</entry>
2176             </row>
2177             <row>
2178               <entry><option>-dsource-stats</option></entry>
2179               <entry>Dump haskell source stats</entry>
2180               <entry>dynamic</entry>
2181               <entry>-</entry>
2182             </row>
2183             <row>
2184               <entry><option>-dcmm-lint</option></entry>
2185               <entry>C-- pass sanity checking</entry>
2186               <entry>dynamic</entry>
2187               <entry>-</entry>
2188             </row>
2189             <row>
2190               <entry><option>-dstg-lint</option></entry>
2191               <entry>STG pass sanity checking</entry>
2192               <entry>dynamic</entry>
2193               <entry>-</entry>
2194             </row>
2195             <row>
2196               <entry><option>-dstg-stats</option></entry>
2197               <entry>Dump STG stats</entry>
2198               <entry>dynamic</entry>
2199               <entry>-</entry>
2200             </row>
2201             <row>
2202               <entry><option>-dverbose-core2core</option></entry>
2203               <entry>Show output from each core-to-core pass</entry>
2204               <entry>dynamic</entry>
2205               <entry>-</entry>
2206             </row>
2207             <row>
2208               <entry><option>-dverbose-stg2stg</option></entry>
2209               <entry>Show output from each STG-to-STG pass</entry>
2210               <entry>dynamic</entry>
2211               <entry>-</entry>
2212             </row>
2213             <row>
2214               <entry><option>-dshow-passes</option></entry>
2215               <entry>Print out each pass name as it happens</entry>
2216               <entry>dynamic</entry>
2217               <entry>-</entry>
2218             </row>
2219             <row>
2220               <entry><option>-dfaststring-stats</option></entry>
2221               <entry>Show statistics for fast string usage when finished</entry>
2222               <entry>dynamic</entry>
2223               <entry>-</entry>
2224             </row>
2225             <row>
2226               <entry><option>-unreg</option></entry>
2227               <entry>Enable unregisterised compilation</entry>
2228               <entry>static</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  -->