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