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