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