Add -fwarn-monomorphism-restriction (on by default) to warn when the MR is used
[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           </tbody>
497         </tgroup>
498       </informaltable>
499     </sect2>
500
501     <sect2>
502       <title>Packages</title>
503
504       <para><xref linkend="packages"/></para>
505
506       <informaltable>
507         <tgroup cols="4" align="left" colsep="1" rowsep="1">
508           <thead>
509             <row>
510               <entry>Flag</entry>
511               <entry>Description</entry>
512               <entry>Static/Dynamic</entry>
513               <entry>Reverse</entry>
514             </row>
515           </thead>
516           <tbody>
517             <row>
518               <entry><option>-package-name</option> <replaceable>P</replaceable></entry>
519               <entry>Compile to be part of package <replaceable>P</replaceable></entry>
520               <entry>dynamic</entry>
521               <entry>-</entry>
522             </row>
523             <row>
524               <entry><option>-package</option> <replaceable>P</replaceable></entry>
525               <entry>Expose package <replaceable>P</replaceable></entry>
526               <entry>static/<literal>:set</literal></entry>
527               <entry>-</entry>
528             </row>
529             <row>
530               <entry><option>-hide-all-packages</option></entry>
531               <entry>Hide all packages by default</entry>
532               <entry>static</entry>
533               <entry>-</entry>
534             </row>
535             <row>
536               <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
537               <entry>Hide package <replaceable>P</replaceable></entry>
538               <entry>static/<literal>:set</literal></entry>
539               <entry>-</entry>
540             </row>
541             <row>
542               <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
543               <entry>Ignore package <replaceable>P</replaceable></entry>
544               <entry>static/<literal>:set</literal></entry>
545               <entry>-</entry>
546             </row>
547             <row>
548               <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
549               <entry>Load more packages from <replaceable>file</replaceable></entry>
550               <entry>static</entry>
551               <entry>-</entry>
552             </row>
553             <row>
554               <entry><option>-no-user-package-conf</option></entry>
555               <entry>Don't load the user's package config file.</entry>
556               <entry>static</entry>
557               <entry>-</entry>
558             </row>
559           </tbody>
560         </tgroup>
561       </informaltable>
562     </sect2>
563
564     <sect2>
565       <title>Language options</title>
566
567       <para><xref linkend="options-language"/></para>
568
569       <informaltable>
570         <tgroup cols="4" align="left" colsep="1" rowsep="1">
571           <thead>
572             <row>
573               <entry>Flag</entry>
574               <entry>Description</entry>
575               <entry>Static/Dynamic</entry>
576               <entry>Reverse</entry>
577             </row>
578           </thead>
579           <tbody>
580             <row>
581               <entry><option>-fallow-overlapping-instances</option></entry>
582               <entry>Enable <link linkend="instance-overlap">overlapping instances</link></entry>
583               <entry>dynamic</entry>
584               <entry><option>-fno-allow-overlapping-instances</option></entry>
585             </row>
586             <row>
587               <entry><option>-fallow-incoherent-instances</option></entry>
588               <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.  
589               Implies <option>-fallow-overlapping-instances</option> </entry>
590               <entry>dynamic</entry>
591               <entry><option>-fno-allow-incoherent-instances</option></entry>
592             </row>
593             <row>
594               <entry><option>-fallow-undecidable-instances</option></entry>
595               <entry>Enable <link linkend="undecidable-instances">undecidable instances</link></entry>
596               <entry>dynamic</entry>
597               <entry><option>-fno-allow-undecidable-instances</option></entry>
598             </row>
599             <row>
600               <entry><option>-fcontext-stack=N</option><replaceable>n</replaceable></entry>
601               <entry>set the <link linkend="undecidable-instances">limit for context reduction</link></entry>
602               <entry>dynamic</entry>
603               <entry><option>20</option></entry>
604             </row>
605             <row>
606               <entry><option>-farrows</option></entry>
607               <entry>Enable <link linkend="arrow-notation">arrow
608               notation</link> extension</entry>
609               <entry>dynamic</entry>
610               <entry><option>-fno-arrows</option></entry>
611             </row>
612             <row>
613               <entry><option>-ffi</option> or <option>-fffi</option></entry>
614               <entry>Enable <link linkend="ffi">foreign function interface</link> (implied by
615               <option>-fglasgow-exts</option>)</entry>
616               <entry>dynamic</entry>
617               <entry><option>-fno-ffi</option></entry>
618             </row>
619             <row>
620               <entry><option>-fgenerics</option></entry>
621               <entry>Enable <link linkend="generic-classes">generic classes</link></entry>
622               <entry>dynamic</entry>
623               <entry><option>-fno-fgenerics</option></entry>
624             </row>
625             <row>
626               <entry><option>-fglasgow-exts</option></entry>
627               <entry>Enable most language extensions</entry>
628               <entry>dynamic</entry>
629               <entry><option>-fno-glasgow-exts</option></entry>
630             </row>
631             <row>
632               <entry><option>-fimplicit-params</option></entry>
633               <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
634               Implied by <option>-fglasgow-exts</option>.</entry>
635               <entry>dynamic</entry>
636               <entry><option>-fno-implicit-params</option></entry>
637             </row>
638             <row>
639               <entry><option>-firrefutable-tuples</option></entry>
640               <entry>Make tuple pattern matching irrefutable</entry>
641               <entry>dynamic</entry>
642               <entry><option>-fno-irrefutable-tuples</option></entry>
643             </row>
644             <row>
645               <entry><option>-fno-implicit-prelude</option></entry>
646               <entry>Don't implicitly <literal>import Prelude</literal></entry>
647               <entry>dynamic</entry>
648               <entry><option>-fimplicit-prelude</option></entry>
649             </row>
650             <row>
651               <entry><option>-fno-monomorphism-restriction</option></entry>
652               <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
653               <entry>dynamic</entry>
654               <entry><option>-fmonomorphism-restriction</option></entry>
655             </row>
656             <row>
657               <entry><option>-fno-mono-pat-binds</option></entry>
658               <entry>Make <link linkend="monomorphism">pattern bindings polymorphic</link></entry>
659               <entry>dynamic</entry>
660               <entry><option>-fmono-pat-binds</option></entry>
661             </row>
662             <row>
663               <entry><option>-fextended-default-rules</option></entry>
664               <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module</entry>
665               <entry>dynamic</entry>
666               <entry><option>-fno-extended-default-rules</option></entry>
667             </row>
668             <row>
669               <entry><option>-foverloaded-strings</option></entry>
670               <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
671               </entry>
672               <entry>dynamic</entry>
673               <entry><option>-fno-overloaded-strings</option></entry>
674             </row>
675             <row>
676               <entry><option>-fscoped-type-variables</option></entry>
677               <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
678               Implied by <option>-fglasgow-exts</option>.</entry>
679               <entry>dynamic</entry>
680               <entry><option>-fno-scoped-type-variables</option></entry>
681             </row>
682             <row>
683               <entry><option>-fth</option></entry>
684               <entry>Enable <link linkend="template-haskell">Template Haskell</link>. 
685                 No longer implied by <option>-fglasgow-exts</option>.</entry>
686               <entry>dynamic</entry>
687               <entry><option>-fno-th</option></entry>
688             </row>
689             <row>
690               <entry><option>-fbang-patterns</option></entry>
691               <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
692               <entry>dynamic</entry>
693               <entry><option>-fno-bang-patterns</option></entry>
694             </row>
695           </tbody>
696         </tgroup>
697       </informaltable>
698     </sect2>
699
700     <sect2>
701       <title>Warnings</title>
702       
703       <para><xref linkend="options-sanity"/></para>
704
705     <informaltable>
706       <tgroup cols="4" align="left" colsep="1" rowsep="1">
707         <thead>
708           <row>
709             <entry>Flag</entry>
710             <entry>Description</entry>
711             <entry>Static/Dynamic</entry>
712             <entry>Reverse</entry>
713           </row>
714         </thead>
715         <tbody>
716           <row>
717             <entry><option>-W</option></entry>
718             <entry>enable normal warnings</entry>
719             <entry>dynamic</entry>
720             <entry><option>-w</option></entry>
721           </row>
722           <row>
723             <entry><option>-w</option></entry>
724             <entry>disable all warnings</entry>
725             <entry>dynamic</entry>
726             <entry>-</entry>
727           </row>
728           <row>
729             <entry><option>-Wall</option></entry>
730             <entry>enable all warnings</entry>
731             <entry>dynamic</entry>
732             <entry><option>-w</option></entry>
733           </row>
734           <row>
735             <entry><option>-Werror</option></entry>
736             <entry>make warnings fatal</entry>
737             <entry>dynamic</entry>
738             <entry></entry>
739           </row>
740
741           <row>
742             <entry><option>-fwarn-deprecations</option></entry>
743             <entry>warn about uses of functions &amp; types that are deprecated</entry>
744             <entry>dynamic</entry>
745             <entry><option>-fno-warn-deprecations</option></entry>
746           </row>
747
748           <row>
749             <entry><option>-fwarn-duplicate-exports</option></entry>
750             <entry>warn when an entity is exported multiple times</entry>
751             <entry>dynamic</entry>
752             <entry><option>-fno-warn-duplicate-exports</option></entry>
753           </row>
754
755           <row>
756             <entry><option>-fwarn-hi-shadowing</option></entry>
757             <entry>warn when a <literal>.hi</literal> file in the
758             current directory shadows a library</entry>
759             <entry>dynamic</entry>
760             <entry><option>-fno-warn-hi-shadowing</option></entry>
761           </row>
762
763           <row>
764             <entry><option>-fwarn-incomplete-patterns</option></entry>
765             <entry>warn when a pattern match could fail</entry>
766             <entry>dynamic</entry>
767             <entry><option>-fno-warn-incomplete-patterns</option></entry>
768           </row>
769
770           <row>
771             <entry><option>-fwarn-incomplete-record-updates</option></entry>
772             <entry>warn when a record update could fail</entry>
773             <entry>dynamic</entry>
774             <entry><option>-fno-warn-incomplete-record-updates</option></entry>
775           </row>
776
777           <row>
778             <entry><option>-fwarn-missing-fields</option></entry>
779             <entry>warn when fields of a record are uninitialised</entry>
780             <entry>dynamic</entry>
781             <entry><option>-fno-warn-missing-fields</option></entry>
782           </row>
783
784           <row>
785             <entry><option>-fwarn-missing-methods</option></entry>
786             <entry>warn when class methods are undefined</entry>
787             <entry>dynamic</entry>
788             <entry><option>-fno-warn-missing-methods</option></entry>
789           </row>
790
791           <row>
792             <entry><option>-fwarn-missing-signatures</option></entry>
793             <entry>warn about top-level functions without signatures</entry>
794             <entry>dynamic</entry>
795             <entry><option>-fno-warn-missing-signatures</option></entry>
796           </row>
797
798           <row>
799             <entry><option>-fwarn-name-shadowing</option></entry>
800             <entry>warn when names are shadowed</entry>
801             <entry>dynamic</entry>
802             <entry><option>-fno-warn-name-shadowing</option></entry>
803           </row>
804
805           <row>
806             <entry><option>-fwarn-orphans</option></entry>
807             <entry>warn when the module contains "orphan" instance declarations
808             or rewrite rules</entry>
809             <entry>dynamic</entry>
810             <entry><option>-fno-warn-orphans</option></entry>
811           </row>
812
813           <row>
814             <entry><option>-fwarn-overlapping-patterns</option></entry>
815             <entry>warn about overlapping patterns</entry>
816             <entry>dynamic</entry>
817             <entry><option>-fno-warn-overlapping-patterns</option></entry>
818           </row>
819
820           <row>
821             <entry><option>-fwarn-simple-patterns</option></entry>
822             <entry>warn about lambda-patterns that can fail</entry>
823             <entry>dynamic</entry>
824             <entry><option>-fno-warn-simple-patterns</option></entry>
825           </row>
826
827           <row>
828             <entry><option>-fwarn-tabs</option></entry>
829             <entry>warn if there are tabs in the source file</entry>
830             <entry>dynamic</entry>
831             <entry><option>-fno-warn-tabs</option></entry>
832           </row>
833
834           <row>
835             <entry><option>-fwarn-type-defaults</option></entry>
836             <entry>warn when defaulting happens</entry>
837             <entry>dynamic</entry>
838             <entry><option>-fno-warn-type-defaults</option></entry>
839           </row>
840
841           <row>
842             <entry><option>-fwarn-monomorphism-restriction</option></entry>
843             <entry>warn when the Monomorphism Restriction is applied</entry>
844             <entry>dynamic</entry>
845             <entry><option>-fno-warn-monomorphism-restriction</option></entry>
846           </row>
847
848           <row>
849             <entry><option>-fwarn-unused-binds</option></entry>
850             <entry>warn about bindings that are unused</entry>
851             <entry>dynamic</entry>
852             <entry><option>-fno-warn-unused-binds</option></entry>
853           </row>
854
855           <row>
856             <entry><option>-fwarn-unused-imports</option></entry>
857             <entry>warn about unnecessary imports</entry>
858             <entry>dynamic</entry>
859             <entry><option>-fno-warn-unused-imports</option></entry>
860           </row>
861
862           <row>
863             <entry><option>-fwarn-unused-matches</option></entry>
864             <entry>warn about variables in patterns that aren't used</entry>
865             <entry>dynamic</entry>
866             <entry><option>-fno-warn-unused-matches</option></entry>
867           </row>
868
869           </tbody>
870         </tgroup>
871       </informaltable>
872
873     </sect2>
874     <sect2>
875       <title>Optimisation levels</title>
876
877       <para><xref linkend="options-optimise"/></para>
878
879       <informaltable>
880         <tgroup cols="4" align="left" colsep="1" rowsep="1">
881           <thead>
882             <row>
883               <entry>Flag</entry>
884               <entry>Description</entry>
885               <entry>Static/Dynamic</entry>
886               <entry>Reverse</entry>
887             </row>
888           </thead>
889           <tbody>
890             <row>
891               <entry><option>-O</option></entry>
892               <entry>Enable default optimisation (level 1)</entry>
893               <entry>dynamic</entry>
894               <entry><option>-O0</option></entry>
895             </row>
896             <row>
897               <entry><option>-O</option><replaceable>n</replaceable></entry>
898               <entry>Set optimisation level <replaceable>n</replaceable></entry>
899               <entry>dynamic</entry>
900               <entry><option>-O0</option></entry>
901             </row>
902           </tbody>
903         </tgroup>
904       </informaltable>
905               
906     </sect2>
907     <sect2>
908       <title>Individual optimisations</title>
909
910       <para><xref linkend="options-f"/></para>
911
912       <informaltable>
913         <tgroup cols="4" align="left" colsep="1" rowsep="1">
914           <thead>
915             <row>
916               <entry>Flag</entry>
917               <entry>Description</entry>
918               <entry>Static/Dynamic</entry>
919               <entry>Reverse</entry>
920             </row>
921           </thead>
922           <tbody>
923             <row>
924               <entry><option>-fcase-merge</option></entry>
925               <entry>Enable case-merging</entry>
926               <entry>dynamic</entry>
927               <entry><option>-fno-case-merge</option></entry>
928             </row>
929
930             <row>
931               <entry><option>-fdicts-strict</option></entry>
932               <entry>Make dictionaries strict</entry>
933               <entry>static</entry>
934               <entry><option>-fno-dicts-strict</option></entry>
935             </row>
936
937             <row>
938               <entry><option>-fdo-eta-reduction</option></entry>
939               <entry>Enable eta-reduction</entry>
940               <entry>dynamic</entry>
941               <entry><option>-fno-do-eta-reduction</option></entry>
942             </row>
943
944             <row>
945               <entry><option>-fdo-lambda-eta-expansion</option></entry>
946               <entry>Enable lambda eta-reduction</entry>
947               <entry>dynamic</entry>
948               <entry><option>-fno-do-lambda-eta-expansion</option></entry>
949             </row>
950
951             <row>
952               <entry><option>-fexcess-precision</option></entry>
953               <entry>Enable excess intermediate precision</entry>
954               <entry>dynamic</entry>
955               <entry><option>-fno-excess-precision</option></entry>
956             </row>
957
958             <row>
959               <entry><option>-frules-off</option></entry>
960               <entry>Switch off all rewrite rules (including rules
961               generated by automatic specialisation of overloaded functions)</entry>
962               <entry>static</entry>
963               <entry><option>-frules-off</option></entry>
964             </row>
965
966             <row>
967               <entry><option>-fignore-asserts</option></entry>
968               <entry>Ignore assertions in the source</entry>
969               <entry>dynamic</entry>
970               <entry><option>-fno-ignore-asserts</option></entry>
971             </row>
972
973             <row>
974               <entry><option>-fignore-interface-pragmas</option></entry>
975               <entry>Ignore pragmas in interface files</entry>
976               <entry>dynamic</entry>
977               <entry><option>-fno-ignore-interface-pragmas</option></entry>
978             </row>
979
980             <row>
981               <entry><option>-fliberate-case-threshold</option></entry>
982               <entry>Tweak the liberate-case optimisation (default: 10)</entry>
983               <entry>static</entry>
984               <entry><option>-fno-liberate-case-threshold</option></entry>
985             </row>
986
987             <row>
988               <entry><option>-fomit-interface-pragmas</option></entry>
989               <entry>Don't generate interface pragmas</entry>
990               <entry>dynamic</entry>
991               <entry><option>-fno-omit-interface-pragmas</option></entry>
992             </row>
993
994             <row>
995               <entry><option>-fmax-worker-args</option></entry>
996               <entry>If a worker has that many arguments, none will be
997                 unpacked anymore (default: 10)</entry>
998               <entry>static</entry>
999               <entry>-</entry>
1000             </row>
1001
1002             <row>
1003               <entry><option>-fmax-simplifier-iterations</option></entry>
1004               <entry>Set the max iterations for the simplifier</entry>
1005               <entry>dynamic</entry>
1006               <entry>-</entry>
1007             </row>
1008
1009             <row>
1010               <entry><option>-fno-state-hack</option></entry>
1011               <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1012               as argument is considered to be single-entry.  Hence OK to inline things inside it.</entry>
1013               <entry>static</entry>
1014               <entry>-</entry>
1015             </row>
1016
1017             <row>
1018               <entry><option>-fno-cse</option></entry>
1019               <entry>Turn off common sub-expression</entry>
1020               <entry>dynamic</entry>
1021               <entry>-</entry>
1022             </row>
1023
1024             <row>
1025               <entry><option>-fno-full-laziness</option></entry>
1026               <entry>Turn off full laziness (floating bindings outwards).</entry>
1027               <entry>dynamic</entry>
1028               <entry>-ffull-laziness</entry>
1029             </row>
1030
1031             <row>
1032               <entry><option>-fno-pre-inlining</option></entry>
1033               <entry>Turn off pre-inlining</entry>
1034               <entry>static</entry>
1035               <entry>-</entry>
1036             </row>
1037
1038             <row>
1039               <entry><option>-fno-strictness</option></entry>
1040               <entry>Turn off strictness analysis</entry>
1041               <entry>dynamic</entry>
1042               <entry>-</entry>
1043             </row>
1044
1045             <row>
1046               <entry><option>-funbox-strict-fields</option></entry>
1047               <entry>Flatten strict constructor fields</entry>
1048               <entry>dynamic</entry>
1049               <entry><option>-fno-unbox-strict-fields</option></entry>
1050             </row>
1051
1052             <row>
1053               <entry><option>-funfolding-creation-threshold</option></entry>
1054               <entry>Tweak unfolding settings</entry>
1055               <entry>static</entry>
1056               <entry><option>-fno-unfolding-creation-threshold</option></entry>
1057             </row>
1058
1059             <row>
1060               <entry><option>-funfolding-fun-discount</option></entry>
1061               <entry>Tweak unfolding settings</entry>
1062               <entry>static</entry>
1063               <entry><option>-fno-unfolding-fun-discount</option></entry>
1064             </row>
1065
1066             <row>
1067               <entry><option>-funfolding-keeness-factor</option></entry>
1068               <entry>Tweak unfolding settings</entry>
1069               <entry>static</entry>
1070               <entry><option>-fno-unfolding-keeness-factor</option></entry>
1071             </row>
1072
1073             <row>
1074               <entry><option>-funfolding-update-in-place</option></entry>
1075               <entry>Tweak unfolding settings</entry>
1076               <entry>static</entry>
1077               <entry><option>-fno-unfolding-update-in-place</option></entry>
1078             </row>
1079
1080             <row>
1081               <entry><option>-funfolding-use-threshold</option></entry>
1082               <entry>Tweak unfolding settings</entry>
1083               <entry>static</entry>
1084               <entry><option>-fno-unfolding-use-threshold</option></entry>
1085             </row>
1086           </tbody>
1087         </tgroup>
1088       </informaltable>
1089     </sect2>
1090
1091     <sect2>
1092       <title>Profiling options</title>
1093       
1094       <para><xref linkend="profiling"/></para>
1095
1096       <informaltable>
1097         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1098           <thead>
1099             <row>
1100               <entry>Flag</entry>
1101               <entry>Description</entry>
1102               <entry>Static/Dynamic</entry>
1103               <entry>Reverse</entry>
1104             </row>
1105           </thead>
1106           <tbody>
1107             <row>
1108               <entry><option>-auto</option></entry>
1109               <entry>Auto-add <literal>_scc_</literal>s to all
1110               exported functions</entry>
1111               <entry>static</entry>
1112               <entry><option>-no-auto</option></entry>
1113             </row>
1114             <row>
1115               <entry><option>-auto-all</option></entry>
1116               <entry>Auto-add <literal>_scc_</literal>s to all
1117               top-level functions</entry>
1118               <entry>static</entry>
1119               <entry><option>-no-auto-all</option></entry>
1120             </row>
1121             <row>
1122               <entry><option>-caf-all</option></entry>
1123               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1124               <entry>static</entry>
1125               <entry><option>-no-caf-all</option></entry>
1126             </row>
1127             <row>
1128               <entry><option>-prof</option></entry>
1129               <entry>Turn on profiling</entry>
1130               <entry>static</entry>
1131               <entry>-</entry>
1132             </row>
1133             <row>
1134               <entry><option>-ticky</option></entry>
1135               <entry>Turn on ticky-ticky profiling</entry>
1136               <entry>static</entry>
1137               <entry>-</entry>
1138             </row>
1139           </tbody>
1140         </tgroup>
1141       </informaltable>
1142     </sect2>
1143
1144     <sect2>
1145       <title>Haskell pre-processor options</title>
1146
1147       <para><xref linkend="pre-processor"/></para>
1148
1149       <informaltable>
1150         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1151           <thead>
1152             <row>
1153               <entry>Flag</entry>
1154               <entry>Description</entry>
1155               <entry>Static/Dynamic</entry>
1156               <entry>Reverse</entry>
1157             </row>
1158           </thead>
1159           <tbody>
1160             <row>
1161               <entry><option>-F</option></entry>
1162               <entry>
1163                   Enable the use of a pre-processor
1164                   (set with <option>-pgmF</option>)
1165               </entry>
1166               <entry>dynamic</entry>
1167               <entry>-</entry>
1168             </row>
1169           </tbody>
1170         </tgroup>
1171       </informaltable>
1172     </sect2>
1173
1174     <sect2>
1175       <title>C pre-processor options</title>
1176
1177       <para><xref linkend="c-pre-processor"/></para>
1178
1179       <informaltable>
1180         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1181           <thead>
1182             <row>
1183               <entry>Flag</entry>
1184               <entry>Description</entry>
1185               <entry>Static/Dynamic</entry>
1186               <entry>Reverse</entry>
1187             </row>
1188           </thead>
1189           <tbody>
1190             <row>
1191               <entry><option>-cpp</option></entry>
1192               <entry>Run the C pre-processor on Haskell source files</entry>
1193               <entry>dynamic</entry>
1194               <entry>-</entry>
1195             </row>
1196             <row>
1197               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1198               <entry>Define a symbol in the C pre-processor</entry>
1199               <entry>dynamic</entry>
1200               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1201             </row>
1202             <row>
1203               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1204               <entry>Undefine a symbol in the C pre-processor</entry>
1205               <entry>dynamic</entry>
1206               <entry>-</entry>
1207             </row>
1208             <row>
1209               <entry><option>-I</option><replaceable>dir</replaceable></entry>
1210               <entry>Add <replaceable>dir</replaceable> to the
1211               directory search list for <literal>#include</literal> files</entry>
1212               <entry>dynamic</entry>
1213               <entry>-</entry>
1214             </row>
1215           </tbody>
1216         </tgroup>
1217       </informaltable>
1218     </sect2>
1219
1220     <sect2>
1221       <title>C compiler options</title>
1222
1223       <para><xref linkend="options-C-compiler"/></para>
1224       <informaltable>
1225         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1226           <thead>
1227             <row>
1228               <entry>Flag</entry>
1229               <entry>Description</entry>
1230               <entry>Static/Dynamic</entry>
1231               <entry>Reverse</entry>
1232             </row>
1233           </thead>
1234           <tbody>
1235             <row>
1236               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1237               <entry>Include <replaceable>file</replaceable> when
1238               compiling the <filename>.hc</filename> file</entry>
1239               <entry>dynamic</entry>
1240               <entry>-</entry>
1241             </row>
1242           </tbody>
1243         </tgroup>
1244       </informaltable>
1245     </sect2>
1246
1247     <sect2>
1248       <title>Code generation options</title>
1249
1250       <para><xref linkend="options-codegen"/></para>
1251
1252       <informaltable>
1253         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1254           <thead>
1255             <row>
1256               <entry>Flag</entry>
1257               <entry>Description</entry>
1258               <entry>Static/Dynamic</entry>
1259               <entry>Reverse</entry>
1260             </row>
1261           </thead>
1262           <tbody>
1263             <row>
1264               <entry><option>-fasm</option></entry>
1265               <entry>Use the native code generator</entry>
1266               <entry>dynamic</entry>
1267               <entry>-fvia-C</entry>
1268             </row>
1269             <row>
1270               <entry><option>-fvia-C</option></entry>
1271               <entry>Compile via C</entry>
1272               <entry>dynamic</entry>
1273               <entry>-fasm</entry>
1274             </row>
1275             <row>
1276               <entry><option>-fno-code</option></entry>
1277               <entry>Omit code generation</entry>
1278               <entry>dynamic</entry>
1279               <entry>-</entry>
1280             </row>
1281             <row>
1282               <entry><option>-fbyte-code</option></entry>
1283               <entry>Generate byte-code</entry>
1284               <entry>dynamic</entry>
1285               <entry>-</entry>
1286             </row>
1287             <row>
1288               <entry><option>-fobject-code</option></entry>
1289               <entry>Generate object code</entry>
1290               <entry>dynamic</entry>
1291               <entry>-</entry>
1292             </row>
1293           </tbody>
1294         </tgroup>
1295       </informaltable>
1296     </sect2>
1297
1298     <sect2>
1299       <title>Linking options</title>
1300
1301       <para><xref linkend="options-linker"/></para>
1302
1303       <informaltable>
1304         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1305           <thead>
1306             <row>
1307               <entry>Flag</entry>
1308               <entry>Description</entry>
1309               <entry>Static/Dynamic</entry>
1310               <entry>Reverse</entry>
1311             </row>
1312           </thead>
1313           <tbody>
1314             <row>
1315               <entry><option>-fPIC</option></entry>
1316               <entry>Generate position-independent code (where available)</entry>
1317               <entry>static</entry>
1318               <entry>-</entry>
1319             </row>
1320             <row>
1321               <entry><option>-dynamic</option></entry>
1322               <entry>Use dynamic Haskell libraries (if available)</entry>
1323               <entry>static</entry>
1324               <entry>-</entry>
1325             </row>
1326             <row>
1327               <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1328               <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1329                 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1330               <entry>dynamic</entry>
1331               <entry>-</entry>
1332             </row>
1333             <row>
1334               <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1335               <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1336                 directories searched for frameworks.
1337                 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1338               <entry>dynamic</entry>
1339               <entry>-</entry>
1340             </row>
1341             <row>
1342               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1343               <entry>Link in library <replaceable>lib</replaceable></entry>
1344               <entry>dynamic</entry>
1345               <entry>-</entry>
1346             </row>
1347             <row>
1348               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1349               <entry>Add <replaceable>dir</replaceable> to the list of
1350               directories searched for libraries</entry>
1351               <entry>dynamic</entry>
1352               <entry>-</entry>
1353             </row>
1354             <row>
1355               <entry><option>-main-is</option></entry>
1356               <entry>Set main module and function</entry>
1357               <entry>dynamic</entry>
1358               <entry>-</entry>
1359             </row>
1360             <row>
1361               <entry><option>--mk-dll</option></entry>
1362               <entry>DLL-creation mode (Windows only)</entry>
1363               <entry>dynamic</entry>
1364               <entry>-</entry>
1365             </row>
1366             <row>
1367               <entry><option>-no-hs-main</option></entry>
1368               <entry>Don't assume this program contains <literal>main</literal></entry>
1369               <entry>dynamic</entry>
1370               <entry>-</entry>
1371             </row>
1372             <row>
1373               <entry><option>-no-link</option></entry>
1374               <entry>Omit linking</entry>
1375               <entry>dynamic</entry>
1376               <entry>-</entry>
1377             </row>
1378             <row>
1379               <entry><option>-split-objs</option></entry>
1380               <entry>Split objects (for libraries)</entry>
1381               <entry>dynamic</entry>
1382               <entry>-</entry>
1383             </row>
1384             <row>
1385               <entry><option>-static</option></entry>
1386               <entry>Use static Haskell libraries</entry>
1387               <entry>static</entry>
1388               <entry>-</entry>
1389             </row>
1390             <row>
1391               <entry><option>-threaded</option></entry>
1392               <entry>Use the threaded runtime</entry>
1393               <entry>static</entry>
1394               <entry>-</entry>
1395             </row>
1396             <row>
1397               <entry><option>-debug</option></entry>
1398               <entry>Use the debugging runtime</entry>
1399               <entry>static</entry>
1400               <entry>-</entry>
1401             </row>
1402           </tbody>
1403         </tgroup>
1404       </informaltable>
1405     </sect2>
1406
1407     <sect2>
1408       <title>Replacing phases</title>
1409
1410       <para><xref linkend="replacing-phases"/></para>
1411
1412       <informaltable>
1413         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1414           <thead>
1415             <row>
1416               <entry>Flag</entry>
1417               <entry>Description</entry>
1418               <entry>Static/Dynamic</entry>
1419               <entry>Reverse</entry>
1420             </row>
1421           </thead>
1422           <tbody>
1423             <row>
1424               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1425               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1426               <entry>dynamic</entry>
1427               <entry>-</entry>
1428             </row>
1429             <row>
1430               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1431               <entry>Use <replaceable>cmd</replaceable> as the C
1432               pre-processor (with <option>-cpp</option> only)</entry>
1433               <entry>dynamic</entry>
1434               <entry>-</entry>
1435             </row>
1436             <row>
1437               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1438               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1439               <entry>dynamic</entry>
1440               <entry>-</entry>
1441             </row>
1442             <row>
1443               <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1444               <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1445               <entry>dynamic</entry>
1446               <entry>-</entry>
1447             </row>
1448             <row>
1449               <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1450               <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1451               <entry>dynamic</entry>
1452               <entry>-</entry>
1453             </row>
1454             <row>
1455               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1456               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1457               <entry>dynamic</entry>
1458               <entry>-</entry>
1459             </row>
1460             <row>
1461               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1462               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1463               <entry>dynamic</entry>
1464               <entry>-</entry>
1465             </row>
1466             <row>
1467               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1468               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1469               <entry>dynamic</entry>
1470               <entry>-</entry>
1471             </row>
1472             <row>
1473               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1474               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1475               (with <option>-F</option> only)</entry>
1476               <entry>dynamic</entry>
1477               <entry>-</entry>
1478             </row>
1479           </tbody>
1480         </tgroup>
1481       </informaltable>
1482       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1483       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1484       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1485       <indexterm><primary><option>-pgma</option></primary></indexterm>
1486       <indexterm><primary><option>-pgml</option></primary></indexterm>
1487       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1488       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1489
1490     </sect2>
1491
1492     <sect2>
1493       <title>Forcing options to particular phases</title>
1494
1495       <para><xref linkend="forcing-options-through"/></para>
1496
1497       <informaltable>
1498         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1499           <thead>
1500             <row>
1501               <entry>Flag</entry>
1502               <entry>Description</entry>
1503               <entry>Static/Dynamic</entry>
1504               <entry>Reverse</entry>
1505             </row>
1506           </thead>
1507           <tbody>
1508             <row>
1509               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1510               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1511               <entry>dynamic</entry>
1512               <entry>-</entry>
1513             </row>
1514             <row>
1515               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1516               <entry>pass <replaceable>option</replaceable> to cpp (with
1517               <option>-cpp</option> only)</entry>
1518               <entry>dynamic</entry>
1519               <entry>-</entry>
1520             </row>
1521             <row>
1522               <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1523               <entry>pass <replaceable>option</replaceable> to the
1524               custom pre-processor</entry>
1525               <entry>dynamic</entry>
1526               <entry>-</entry>
1527             </row>
1528             <row>
1529               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1530               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1531               <entry>dynamic</entry>
1532               <entry>-</entry>
1533             </row>
1534             <row>
1535               <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1536               <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1537               <entry>dynamic</entry>
1538               <entry>-</entry>
1539             </row>
1540             <row>
1541               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1542               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1543               <entry>dynamic</entry>
1544               <entry>-</entry>
1545             </row>
1546             <row>
1547               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1548               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1549               <entry>dynamic</entry>
1550               <entry>-</entry>
1551             </row>
1552             <row>
1553               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1554               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1555               <entry>dynamic</entry>
1556               <entry>-</entry>
1557             </row>
1558             <row>
1559               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1560               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1561               <entry>dynamic</entry>
1562               <entry>-</entry>
1563             </row>
1564           </tbody>
1565         </tgroup>
1566       </informaltable>
1567     </sect2>
1568
1569     <sect2>
1570       <title>Platform-specific options</title>
1571       
1572       <para><xref linkend="options-platform"/></para>
1573
1574       <informaltable>
1575         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1576           <thead>
1577             <row>
1578               <entry>Flag</entry>
1579               <entry>Description</entry>
1580               <entry>Static/Dynamic</entry>
1581               <entry>Reverse</entry>
1582             </row>
1583           </thead>
1584           <tbody>
1585             <row>
1586               <entry><option>-monly-[432]-regs</option></entry>
1587               <entry>(x86 only) give some registers back to the C compiler</entry>
1588               <entry>dynamic</entry>
1589               <entry>-</entry>
1590             </row>
1591           </tbody>
1592         </tgroup>
1593       </informaltable>
1594     </sect2>
1595
1596          
1597     <sect2>
1598       <title>External core file options</title>
1599
1600       <para><xref linkend="ext-core"/></para>
1601
1602       <informaltable>
1603         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1604           <thead>
1605             <row>
1606               <entry>Flag</entry>
1607               <entry>Description</entry>
1608               <entry>Static/Dynamic</entry>
1609               <entry>Reverse</entry>
1610             </row>
1611           </thead>
1612           <tbody>
1613             <row>
1614               <entry><option>-fext-core</option></entry>
1615               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1616               <entry>static</entry>
1617               <entry>-</entry>
1618             </row>
1619           </tbody>
1620         </tgroup>
1621       </informaltable>
1622     </sect2>
1623
1624
1625     <sect2>
1626       <title>Compiler debugging options</title>
1627
1628       <para><xref linkend="options-debugging"/></para>
1629
1630       <informaltable>
1631         <tgroup cols="4" align="left" colsep="1" rowsep="1">
1632           <thead>
1633             <row>
1634               <entry>Flag</entry>
1635               <entry>Description</entry>
1636               <entry>Static/Dynamic</entry>
1637               <entry>Reverse</entry>
1638             </row>
1639           </thead>
1640           <tbody>
1641             <row>
1642               <entry><option>-dcore-lint</option></entry>
1643               <entry>Turn on internal sanity checking</entry>
1644               <entry>dynamic</entry>
1645               <entry>-</entry>
1646             </row>
1647             <row>
1648               <entry><option>-ddump-asm</option></entry>
1649               <entry>Dump assembly</entry>
1650               <entry>dynamic</entry>
1651               <entry>-</entry>
1652             </row>
1653             <row>
1654               <entry><option>-ddump-bcos</option></entry>
1655               <entry>Dump interpreter byte code</entry>
1656               <entry>dynamic</entry>
1657               <entry>-</entry>
1658             </row>
1659             <row>
1660               <entry><option>-ddump-cmm</option></entry>
1661               <entry>Dump C-- output</entry>
1662               <entry>dynamic</entry>
1663               <entry>-</entry>
1664             </row>
1665             <row>
1666               <entry><option>-ddump-cpranal</option></entry>
1667               <entry>Dump output from CPR analysis</entry>
1668               <entry>dynamic</entry>
1669               <entry>-</entry>
1670             </row>
1671             <row>
1672               <entry><option>-ddump-cse</option></entry>
1673               <entry>Dump CSE output</entry>
1674               <entry>dynamic</entry>
1675               <entry>-</entry>
1676             </row>
1677             <row>
1678               <entry><option>-ddump-deriv</option></entry>
1679               <entry>Dump deriving output</entry>
1680               <entry>dynamic</entry>
1681               <entry>-</entry>
1682             </row>
1683             <row>
1684               <entry><option>-ddump-ds</option></entry>
1685               <entry>Dump desugarer output</entry>
1686               <entry>dynamic</entry>
1687               <entry>-</entry>
1688             </row>
1689             <row>
1690               <entry><option>-ddump-flatC</option></entry>
1691               <entry>Dump &ldquo;flat&rdquo; C</entry>
1692               <entry>dynamic</entry>
1693               <entry>-</entry>
1694             </row>
1695             <row>
1696               <entry><option>-ddump-foreign</option></entry>
1697               <entry>Dump <literal>foreign export</literal> stubs</entry>
1698               <entry>dynamic</entry>
1699               <entry>-</entry>
1700             </row>
1701             <row>
1702               <entry><option>-ddump-inlinings</option></entry>
1703               <entry>Dump inlining info</entry>
1704               <entry>dynamic</entry>
1705               <entry>-</entry>
1706             </row>
1707             <row>
1708               <entry><option>-ddump-occur-anal</option></entry>
1709               <entry>Dump occurrence analysis output</entry>
1710               <entry>dynamic</entry>
1711               <entry>-</entry>
1712             </row>
1713             <row>
1714               <entry><option>-ddump-opt-cmm</option></entry>
1715               <entry>Dump the results of C-- to C-- optimising passes</entry>
1716               <entry>dynamic</entry>
1717               <entry>-</entry>
1718             </row>
1719             <row>
1720               <entry><option>-ddump-parsed</option></entry>
1721               <entry>Dump parse tree</entry>
1722               <entry>dynamic</entry>
1723               <entry>-</entry>
1724             </row>
1725             <row>
1726               <entry><option>-ddump-prep</option></entry>
1727               <entry>Dump prepared core</entry>
1728               <entry>dynamic</entry>
1729               <entry>-</entry>
1730             </row>
1731             <row>
1732               <entry><option>-ddump-rn</option></entry>
1733               <entry>Dump renamer output</entry>
1734               <entry>dynamic</entry>
1735               <entry>-</entry>
1736             </row>
1737             <row>
1738               <entry><option>-ddump-rules</option></entry>
1739               <entry>Dump rules</entry>
1740               <entry>dynamic</entry>
1741               <entry>-</entry>
1742             </row>
1743             <row>
1744               <entry><option>-ddump-simpl</option></entry>
1745               <entry>Dump final simplifier output</entry>
1746               <entry>dynamic</entry>
1747               <entry>-</entry>
1748             </row>
1749             <row>
1750               <entry><option>-ddump-simpl-iterations</option></entry>
1751               <entry>Dump output from each simplifier iteration</entry>
1752               <entry>dynamic</entry>
1753               <entry>-</entry>
1754             </row>
1755             <row>
1756               <entry><option>-ddump-spec</option></entry>
1757               <entry>Dump specialiser output</entry>
1758               <entry>dynamic</entry>
1759               <entry>-</entry>
1760             </row>
1761             <row>
1762               <entry><option>-ddump-splices</option></entry>
1763               <entry>Dump TH splided expressions, and what they evaluate to</entry>
1764               <entry>dynamic</entry>
1765               <entry>-</entry>
1766             </row>
1767             <row>
1768               <entry><option>-ddump-stg</option></entry>
1769               <entry>Dump final STG</entry>
1770               <entry>dynamic</entry>
1771               <entry>-</entry>
1772             </row>
1773             <row>
1774               <entry><option>-ddump-stranal</option></entry>
1775               <entry>Dump strictness analyser output</entry>
1776               <entry>dynamic</entry>
1777               <entry>-</entry>
1778             </row>
1779             <row>
1780               <entry><option>-ddump-tc</option></entry>
1781               <entry>Dump typechecker output</entry>
1782               <entry>dynamic</entry>
1783               <entry>-</entry>
1784             </row>
1785             <row>
1786               <entry><option>-ddump-types</option></entry>
1787               <entry>Dump type signatures</entry>
1788               <entry>dynamic</entry>
1789               <entry>-</entry>
1790             </row>
1791             <row>
1792               <entry><option>-ddump-worker-wrapper</option></entry>
1793               <entry>Dump worker-wrapper output</entry>
1794               <entry>dynamic</entry>
1795               <entry>-</entry>
1796             </row>
1797             <row>
1798               <entry><option>-ddump-if-trace</option></entry>
1799               <entry>Trace interface files</entry>
1800               <entry>dynamic</entry>
1801               <entry>-</entry>
1802             </row>
1803             <row>
1804               <entry><option>-ddump-tc-trace</option></entry>
1805               <entry>Trace typechecker</entry>
1806               <entry>dynamic</entry>
1807               <entry>-</entry>
1808             </row>
1809             <row>
1810               <entry><option>-ddump-rn-trace</option></entry>
1811               <entry>Trace renamer</entry>
1812               <entry>dynamic</entry>
1813               <entry>-</entry>
1814             </row>
1815             <row>
1816               <entry><option>-ddump-rn-stats</option></entry>
1817               <entry>Renamer stats</entry>
1818               <entry>dynamic</entry>
1819               <entry>-</entry>
1820             </row>
1821             <row>
1822               <entry><option>-ddump-simpl-stats</option></entry>
1823               <entry>Dump simplifier stats</entry>
1824               <entry>dynamic</entry>
1825               <entry>-</entry>
1826             </row>
1827             <row>
1828               <entry><option>-dppr-debug</option></entry>
1829               <entry>Turn on debug printing (more verbose)</entry>
1830               <entry>static</entry>
1831               <entry>-</entry>
1832             </row>
1833             <row>
1834               <entry><option>-dppr-noprags</option></entry>
1835               <entry>Don't output pragma info in dumps</entry>
1836               <entry>static</entry>
1837               <entry>-</entry>
1838             </row>
1839             <row>
1840               <entry><option>-dppr-user-length</option></entry>
1841               <entry>Set the depth for printing expressions in error msgs</entry>
1842               <entry>static</entry>
1843               <entry>-</entry>
1844             </row>
1845             <row>
1846               <entry><option>-dsource-stats</option></entry>
1847               <entry>Dump haskell source stats</entry>
1848               <entry>dynamic</entry>
1849               <entry>-</entry>
1850             </row>
1851             <row>
1852               <entry><option>-dcmm-lint</option></entry>
1853               <entry>C-- pass sanity checking</entry>
1854               <entry>dynamic</entry>
1855               <entry>-</entry>
1856             </row>
1857             <row>
1858               <entry><option>-dstg-lint</option></entry>
1859               <entry>STG pass sanity checking</entry>
1860               <entry>dynamic</entry>
1861               <entry>-</entry>
1862             </row>
1863             <row>
1864               <entry><option>-dstg-stats</option></entry>
1865               <entry>Dump STG stats</entry>
1866               <entry>dynamic</entry>
1867               <entry>-</entry>
1868             </row>
1869             <row>
1870               <entry><option>-dverbose-core2core</option></entry>
1871               <entry>Show output from each core-to-core pass</entry>
1872               <entry>dynamic</entry>
1873               <entry>-</entry>
1874             </row>
1875             <row>
1876               <entry><option>-dverbose-stg2stg</option></entry>
1877               <entry>Show output from each STG-to-STG pass</entry>
1878               <entry>dynamic</entry>
1879               <entry>-</entry>
1880             </row>
1881             <row>
1882               <entry><option>-dshow-passes</option></entry>
1883               <entry>Print out each pass name as it happens</entry>
1884               <entry>dynamic</entry>
1885               <entry>-</entry>
1886             </row>
1887             <row>
1888               <entry><option>-dfaststring-stats</option></entry>
1889               <entry>Show statistics for fast string usage when finished</entry>
1890               <entry>dynamic</entry>
1891               <entry>-</entry>
1892             </row>
1893             <row>
1894               <entry><option>-unreg</option></entry>
1895               <entry>Enable unregisterised compilation</entry>
1896               <entry>static</entry>
1897               <entry>-</entry>
1898             </row>
1899           </tbody>
1900         </tgroup>
1901       </informaltable>
1902     </sect2>
1903       
1904     <sect2>
1905       <title>Misc compiler options</title>
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>-fno-hi-version-check</option></entry>
1920               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1921               <entry>static</entry>
1922               <entry>-</entry>
1923             </row>
1924             <row>
1925               <entry><option>-dno-black-holing</option></entry>
1926               <entry>Turn off black holing (probably doesn't work)</entry>
1927               <entry>static</entry>
1928               <entry>-</entry>
1929             </row>
1930             <row>
1931               <entry><option>-fno-method-sharing</option></entry>
1932               <entry>Don't share specialisations of overloaded functions</entry>
1933               <entry>static</entry>
1934               <entry>-</entry>
1935             </row>
1936             <row>
1937               <entry><option>-fhistory-size</option></entry>
1938               <entry>Set simplification history size</entry>
1939               <entry>static</entry>
1940               <entry>-</entry>
1941             </row>
1942             <row>
1943               <entry><option>-funregisterised</option></entry>
1944               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1945               <entry>static</entry>
1946               <entry>-</entry>
1947             </row>
1948             <row>
1949               <entry><option>-fno-asm-mangling</option></entry>
1950               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1951               <entry>dynamic</entry>
1952               <entry>-</entry>
1953             </row>
1954             <row>
1955               <entry><option>-fno-print-bind-result</option></entry>
1956               <entry><link linkend="ghci-stmts">Turn off printing of binding results in GHCi</link></entry>
1957               <entry>dynamic</entry>
1958               <entry>-</entry>
1959             </row>
1960           </tbody>
1961         </tgroup>
1962       </informaltable>
1963     </sect2>
1964   </sect1>
1965
1966
1967 <!--
1968 Still to document:
1969
1970 Misc:
1971   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
1972
1973   -Bdir
1974 -->
1975
1976 <!-- Emacs stuff:
1977      ;;; Local Variables: ***
1978      ;;; mode: xml ***
1979      ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***
1980      ;;; End: ***
1981  -->