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