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