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