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