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