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