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