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