Add '-freg-liveness' flag to control if STG liveness information
[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>-fllvm-tbaa</replaceable></entry>
1550 <entry>Turn on Typed Based Alias Analysis information in the LLVM
1551 backend. This enables more accurate and alias information in the LLVM
1552 backend for better optimisation. (default: Enabled)</entry>
1553 <entry>dynamic</entry>
1554 <entry><option>-fno-llvm-tbaa</option></entry>
1555 </row>
1556
1557 <row>
1558 <entry><option>-fmax-simplifier-iterations</option></entry>
1559 <entry>Set the max iterations for the simplifier</entry>
1560 <entry>dynamic</entry>
1561 <entry>-</entry>
1562 </row>
1563
1564 <row>
1565 <entry><option>-fmax-worker-args</option></entry>
1566 <entry>If a worker has that many arguments, none will be
1567 unpacked anymore (default: 10)</entry>
1568 <entry>static</entry>
1569 <entry>-</entry>
1570 </row>
1571
1572 <row>
1573 <entry><option>-fno-opt-coercion</option></entry>
1574 <entry>Turn off the coercion optimiser</entry>
1575 <entry>static</entry>
1576 <entry>-</entry>
1577 </row>
1578
1579 <row>
1580 <entry><option>-fno-pre-inlining</option></entry>
1581 <entry>Turn off pre-inlining</entry>
1582 <entry>static</entry>
1583 <entry>-</entry>
1584 </row>
1585
1586 <row>
1587 <entry><option>-fno-state-hack</option></entry>
1588 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1589 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
1590 <entry>static</entry>
1591 <entry>-</entry>
1592 </row>
1593
1594 <row>
1595 <entry><option>-fpedantic-bottoms</option></entry>
1596 <entry>Make GHC be more precise about its treatment of bottom (but see also
1597 <option>-fno-state-hack</option>). In particular, GHC will not
1598 eta-expand through a case expression.</entry>
1599 <entry>dynamic</entry>
1600 <entry><option>-fno-pedantic-bottoms</option></entry>
1601 </row>
1602
1603 <row>
1604 <entry><option>-fomit-interface-pragmas</option></entry>
1605 <entry>Don't generate interface pragmas</entry>
1606 <entry>dynamic</entry>
1607 <entry><option>-fno-omit-interface-pragmas</option></entry>
1608 </row>
1609
1610 <row>
1611 <entry><option>-freg-liveness</option></entry>
1612 <entry>Track STG register liveness to avoid saving and restoring
1613 dead registers, as well as freeing the dead ones for use in
1614 intermediate code. (LLVM backend only).
1615
1616 Traditionally GHC has reserved a set of machine registers for the
1617 exclusive use of storing a stack pointer, heap pointer and
1618 general purpose function argument registers (these are the so
1619 called STG registers). This optimisation tracks the liveness of
1620 the machine registers the STG registers are mapped to so that the
1621 machine register can be used for other purposes when the STG
1622 register are dead.</entry>
1623 <entry>dynamic</entry>
1624 <entry><option>-fno-reg-liveness</option></entry>
1625 </row>
1626
1627 <row>
1628 <entry><option>-fsimplifier-phases</option></entry>
1629 <entry>Set the number of phases for the simplifier (default 2).
1630 Ignored with <option>-O0</option>.</entry>
1631 <entry>dynamic</entry>
1632 <entry>-</entry>
1633 </row>
1634
1635 <row>
1636 <entry><option>-fsimpl-tick-factor=<replaceable>n</replaceable></option></entry>
1637 <entry>Set the percentage factor for simplifier ticks (default 100)</entry>
1638 <entry>dynamic</entry>
1639 <entry>-</entry>
1640 </row>
1641
1642 <row>
1643 <entry><option>-fspec-constr</option></entry>
1644 <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1645 <entry>dynamic</entry>
1646 <entry>-fno-spec-constr</entry>
1647 </row>
1648
1649 <row>
1650 <entry><option>-fspec-constr-threshold</option>=<replaceable>n</replaceable></entry>
1651 <entry>Set the size threshold for the SpecConstr transformation to <replaceable>n</replaceable> (default: 200)</entry>
1652 <entry>static</entry>
1653 <entry><option>-fno-spec-constr-threshold</option></entry>
1654 </row>
1655
1656 <row>
1657 <entry><option>-fspec-constr-count</option>=<replaceable>n</replaceable></entry>
1658 <entry>Set to <replaceable>n</replaceable> (default: 3) the maximum number of
1659 specialisations that will be created for any one function
1660 by the SpecConstr transformation</entry>
1661 <entry>static</entry>
1662 <entry><option>-fno-spec-constr-count</option></entry>
1663 </row>
1664
1665 <row>
1666 <entry><option>-fspecialise</option></entry>
1667 <entry>Turn on specialisation of overloaded functions. Implied by <option>-O</option>.</entry>
1668 <entry>dynamic</entry>
1669 <entry>-fno-specialise</entry>
1670 </row>
1671
1672 <row>
1673 <entry><option>-fstrictness</option></entry>
1674 <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1675 <entry>dynamic</entry>
1676 <entry>-fno-strictness</entry>
1677 </row>
1678
1679 <row>
1680 <entry><option>-fstrictness=before</option>=<replaceable>n</replaceable></entry>
1681 <entry>Run an additional strictness analysis before simplifier
1682 phase <replaceable>n</replaceable></entry>
1683 <entry>dynamic</entry>
1684 <entry>-</entry>
1685 </row>
1686
1687 <row>
1688 <entry><option>-fstatic-argument-transformation</option></entry>
1689 <entry>Turn on the static argument transformation. Implied by <option>-O2</option>.</entry>
1690 <entry>dynamic</entry>
1691 <entry>-fno-static-argument-transformation</entry>
1692 </row>
1693
1694 <row>
1695 <entry><option>-funbox-strict-fields</option></entry>
1696 <entry>Flatten strict constructor fields</entry>
1697 <entry>dynamic</entry>
1698 <entry><option>-fno-unbox-strict-fields</option></entry>
1699 </row>
1700
1701 <row>
1702 <entry><option>-funfolding-creation-threshold</option></entry>
1703 <entry>Tweak unfolding settings</entry>
1704 <entry>static</entry>
1705 <entry><option>-fno-unfolding-creation-threshold</option></entry>
1706 </row>
1707
1708 <row>
1709 <entry><option>-funfolding-fun-discount</option></entry>
1710 <entry>Tweak unfolding settings</entry>
1711 <entry>static</entry>
1712 <entry><option>-fno-unfolding-fun-discount</option></entry>
1713 </row>
1714
1715 <row>
1716 <entry><option>-funfolding-keeness-factor</option></entry>
1717 <entry>Tweak unfolding settings</entry>
1718 <entry>static</entry>
1719 <entry><option>-fno-unfolding-keeness-factor</option></entry>
1720 </row>
1721
1722 <row>
1723 <entry><option>-funfolding-use-threshold</option></entry>
1724 <entry>Tweak unfolding settings</entry>
1725 <entry>static</entry>
1726 <entry><option>-fno-unfolding-use-threshold</option></entry>
1727 </row>
1728
1729 </tbody>
1730 </tgroup>
1731 </informaltable>
1732 </sect2>
1733
1734 <sect2>
1735 <title>Profiling options</title>
1736
1737 <para><xref linkend="profiling"/></para>
1738
1739 <informaltable>
1740 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1741 <thead>
1742 <row>
1743 <entry>Flag</entry>
1744 <entry>Description</entry>
1745 <entry>Static/Dynamic</entry>
1746 <entry>Reverse</entry>
1747 </row>
1748 </thead>
1749 <tbody>
1750 <row>
1751 <entry><option>-prof</option></entry>
1752 <entry>Turn on profiling</entry>
1753 <entry>static</entry>
1754 <entry>-</entry>
1755 </row>
1756 <row>
1757 <entry><option>-fprof-auto</option></entry>
1758 <entry>Auto-add <literal>SCC</literal>s to all bindings
1759 not marked INLINE</entry>
1760 <entry>dynamic</entry>
1761 <entry><option>-fno-prof-auto</option></entry>
1762 </row>
1763 <row>
1764 <entry><option>-fprof-auto-top</option></entry>
1765 <entry>Auto-add <literal>SCC</literal>s to all top-level
1766 bindings not marked INLINE</entry>
1767 <entry>dynamic</entry>
1768 <entry><option>-fno-prof-auto</option></entry>
1769 </row>
1770 <row>
1771 <entry><option>-fprof-auto-exported</option></entry>
1772 <entry>Auto-add <literal>SCC</literal>s to all exported
1773 bindings not marked INLINE</entry>
1774 <entry>dynamic</entry>
1775 <entry><option>-fno-prof-auto</option></entry>
1776 </row>
1777 <row>
1778 <entry><option>-fprof-cafs</option></entry>
1779 <entry>Auto-add <literal>SCC</literal>s to all CAFs</entry>
1780 <entry>dynamic</entry>
1781 <entry><option>-fno-prof-cafs</option></entry>
1782 </row>
1783 <row>
1784 <entry><option>-fno-prof-count-entries</option></entry>
1785 <entry>Do not collect entry counts</entry>
1786 <entry>dynamic</entry>
1787 <entry><option>-fprof-count-entries</option></entry>
1788 </row>
1789 <row>
1790 <entry><option>-ticky</option></entry>
1791 <entry><link linkend="ticky-ticky">Turn on ticky-ticky profiling</link></entry>
1792 <entry>static</entry>
1793 <entry>-</entry>
1794 </row>
1795 </tbody>
1796 </tgroup>
1797 </informaltable>
1798 </sect2>
1799
1800 <sect2>
1801 <title>Program coverage options</title>
1802
1803 <para><xref linkend="hpc"/></para>
1804
1805 <informaltable>
1806 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1807 <thead>
1808 <row>
1809 <entry>Flag</entry>
1810 <entry>Description</entry>
1811 <entry>Static/Dynamic</entry>
1812 <entry>Reverse</entry>
1813 </row>
1814 </thead>
1815 <tbody>
1816 <row>
1817 <entry><option>-fhpc</option></entry>
1818 <entry>Turn on Haskell program coverage instrumentation</entry>
1819 <entry>static</entry>
1820 <entry><option>-</option></entry>
1821 </row>
1822 <row>
1823 <entry><option>-hpcdir dir</option></entry>
1824 <entry>Directory to deposit .mix files during compilation (default is .hpc)</entry>
1825 <entry>dynamic</entry>
1826 <entry><option>-</option></entry>
1827 </row>
1828 </tbody>
1829 </tgroup>
1830 </informaltable>
1831 </sect2>
1832
1833 <sect2>
1834 <title>Haskell pre-processor options</title>
1835
1836 <para><xref linkend="pre-processor"/></para>
1837
1838 <informaltable>
1839 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1840 <thead>
1841 <row>
1842 <entry>Flag</entry>
1843 <entry>Description</entry>
1844 <entry>Static/Dynamic</entry>
1845 <entry>Reverse</entry>
1846 </row>
1847 </thead>
1848 <tbody>
1849 <row>
1850 <entry><option>-F</option></entry>
1851 <entry>
1852 Enable the use of a pre-processor
1853 (set with <option>-pgmF</option>)
1854 </entry>
1855 <entry>dynamic</entry>
1856 <entry>-</entry>
1857 </row>
1858 </tbody>
1859 </tgroup>
1860 </informaltable>
1861 </sect2>
1862
1863 <sect2>
1864 <title>C pre-processor options</title>
1865
1866 <para><xref linkend="c-pre-processor"/></para>
1867
1868 <informaltable>
1869 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1870 <thead>
1871 <row>
1872 <entry>Flag</entry>
1873 <entry>Description</entry>
1874 <entry>Static/Dynamic</entry>
1875 <entry>Reverse</entry>
1876 </row>
1877 </thead>
1878 <tbody>
1879 <row>
1880 <entry><option>-cpp</option></entry>
1881 <entry>Run the C pre-processor on Haskell source files</entry>
1882 <entry>dynamic</entry>
1883 <entry>-</entry>
1884 </row>
1885 <row>
1886 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1887 <entry>Define a symbol in the C pre-processor</entry>
1888 <entry>dynamic</entry>
1889 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1890 </row>
1891 <row>
1892 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1893 <entry>Undefine a symbol in the C pre-processor</entry>
1894 <entry>dynamic</entry>
1895 <entry>-</entry>
1896 </row>
1897 <row>
1898 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1899 <entry>Add <replaceable>dir</replaceable> to the
1900 directory search list for <literal>#include</literal> files</entry>
1901 <entry>dynamic</entry>
1902 <entry>-</entry>
1903 </row>
1904 </tbody>
1905 </tgroup>
1906 </informaltable>
1907 </sect2>
1908
1909 <sect2>
1910 <title>Code generation options</title>
1911
1912 <para><xref linkend="options-codegen"/></para>
1913
1914 <informaltable>
1915 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1916 <thead>
1917 <row>
1918 <entry>Flag</entry>
1919 <entry>Description</entry>
1920 <entry>Static/Dynamic</entry>
1921 <entry>Reverse</entry>
1922 </row>
1923 </thead>
1924 <tbody>
1925 <row>
1926 <entry><option>-fasm</option></entry>
1927 <entry>Use the <link linkend="native-code-gen">native code
1928 generator</link></entry>
1929 <entry>dynamic</entry>
1930 <entry>-fllvm</entry>
1931 </row>
1932 <row>
1933 <entry><option>-fllvm</option></entry>
1934 <entry>Compile using the <link linkend="llvm-code-gen">LLVM code
1935 generator</link></entry>
1936 <entry>dynamic</entry>
1937 <entry>-fasm</entry>
1938 </row>
1939 <row>
1940 <entry><option>-fno-code</option></entry>
1941 <entry>Omit code generation</entry>
1942 <entry>dynamic</entry>
1943 <entry>-</entry>
1944 </row>
1945 <row>
1946 <entry><option>-fbyte-code</option></entry>
1947 <entry>Generate byte-code</entry>
1948 <entry>dynamic</entry>
1949 <entry>-</entry>
1950 </row>
1951 <row>
1952 <entry><option>-fobject-code</option></entry>
1953 <entry>Generate object code</entry>
1954 <entry>dynamic</entry>
1955 <entry>-</entry>
1956 </row>
1957 </tbody>
1958 </tgroup>
1959 </informaltable>
1960 </sect2>
1961
1962 <sect2>
1963 <title>Linking options</title>
1964
1965 <para><xref linkend="options-linker"/></para>
1966
1967 <informaltable>
1968 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1969 <thead>
1970 <row>
1971 <entry>Flag</entry>
1972 <entry>Description</entry>
1973 <entry>Static/Dynamic</entry>
1974 <entry>Reverse</entry>
1975 </row>
1976 </thead>
1977 <tbody>
1978 <row>
1979 <entry><option>-shared</option></entry>
1980 <entry>Generate a shared library (as opposed to an executable)</entry>
1981 <entry>dynamic</entry>
1982 <entry>-</entry>
1983 </row>
1984 <row>
1985 <entry><option>-fPIC</option></entry>
1986 <entry>Generate position-independent code (where available)</entry>
1987 <entry>static</entry>
1988 <entry>-</entry>
1989 </row>
1990 <row>
1991 <entry><option>-dynamic</option></entry>
1992 <entry>Use dynamic Haskell libraries (if available)</entry>
1993 <entry>static</entry>
1994 <entry>-</entry>
1995 </row>
1996 <row>
1997 <entry><option>-dynload</option></entry>
1998 <entry>Selects one of a number of modes for finding shared
1999 libraries at runtime.</entry>
2000 <entry>static</entry>
2001 <entry>-</entry>
2002 </row>
2003 <row>
2004 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
2005 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
2006 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
2007 <entry>dynamic</entry>
2008 <entry>-</entry>
2009 </row>
2010 <row>
2011 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
2012 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
2013 directories searched for frameworks.
2014 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
2015 <entry>dynamic</entry>
2016 <entry>-</entry>
2017 </row>
2018 <row>
2019 <entry><option>-l</option><replaceable>lib</replaceable></entry>
2020 <entry>Link in library <replaceable>lib</replaceable></entry>
2021 <entry>dynamic</entry>
2022 <entry>-</entry>
2023 </row>
2024 <row>
2025 <entry><option>-L</option><replaceable>dir</replaceable></entry>
2026 <entry>Add <replaceable>dir</replaceable> to the list of
2027 directories searched for libraries</entry>
2028 <entry>dynamic</entry>
2029 <entry>-</entry>
2030 </row>
2031 <row>
2032 <entry><option>-main-is</option></entry>
2033 <entry>Set main module and function</entry>
2034 <entry>dynamic</entry>
2035 <entry>-</entry>
2036 </row>
2037 <row>
2038 <entry><option>--mk-dll</option></entry>
2039 <entry>DLL-creation mode (Windows only)</entry>
2040 <entry>dynamic</entry>
2041 <entry>-</entry>
2042 </row>
2043 <row>
2044 <entry><option>-no-hs-main</option></entry>
2045 <entry>Don't assume this program contains <literal>main</literal></entry>
2046 <entry>dynamic</entry>
2047 <entry>-</entry>
2048 </row>
2049 <row>
2050 <entry><option>-rtsopts</option>, <option>-rtsopts={none,some,all}</option></entry>
2051 <entry>Control whether the RTS behaviour can be tweaked via command-line
2052 flags and the <literal>GHCRTS</literal> environment
2053 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>
2054 <entry>dynamic</entry>
2055 <entry>-</entry>
2056 </row>
2057 <row>
2058 <entry><option>-with-rtsopts=<replaceable>opts</replaceable></option></entry>
2059 <entry>Set the default RTS options to
2060 <replaceable>opts</replaceable>.</entry>
2061 <entry>dynamic</entry>
2062 <entry>-</entry>
2063 </row>
2064 <row>
2065 <entry><option>-no-link</option></entry>
2066 <entry>Omit linking</entry>
2067 <entry>dynamic</entry>
2068 <entry>-</entry>
2069 </row>
2070 <row>
2071 <entry><option>-split-objs</option></entry>
2072 <entry>Split objects (for libraries)</entry>
2073 <entry>dynamic</entry>
2074 <entry>-</entry>
2075 </row>
2076 <row>
2077 <entry><option>-static</option></entry>
2078 <entry>Use static Haskell libraries</entry>
2079 <entry>static</entry>
2080 <entry>-</entry>
2081 </row>
2082 <row>
2083 <entry><option>-threaded</option></entry>
2084 <entry>Use the threaded runtime</entry>
2085 <entry>static</entry>
2086 <entry>-</entry>
2087 </row>
2088 <row>
2089 <entry><option>-debug</option></entry>
2090 <entry>Use the debugging runtime</entry>
2091 <entry>static</entry>
2092 <entry>-</entry>
2093 </row>
2094 <row>
2095 <entry><option>-eventlog</option></entry>
2096 <entry>Enable runtime event tracing</entry>
2097 <entry>static</entry>
2098 <entry>-</entry>
2099 </row>
2100 <row>
2101 <entry><option>-fno-gen-manifest</option></entry>
2102 <entry>Do not generate a manifest file (Windows only)</entry>
2103 <entry>dynamic</entry>
2104 <entry>-</entry>
2105 </row>
2106 <row>
2107 <entry><option>-fno-embed-manifest</option></entry>
2108 <entry>Do not embed the manifest in the executable (Windows only)</entry>
2109 <entry>dynamic</entry>
2110 <entry>-</entry>
2111 </row>
2112 <row>
2113 <entry><option>-fno-shared-implib</option></entry>
2114 <entry>Don't generate an import library for a DLL (Windows only)</entry>
2115 <entry>dynamic</entry>
2116 <entry>-</entry>
2117 </row>
2118 <row>
2119 <entry><option>-dylib-install-name</option> <replaceable>path</replaceable></entry>
2120 <entry>Set the install name (via <literal>-install_name</literal> passed to Apple's
2121 linker), specifying the full install path of the library file. Any libraries
2122 or executables that link with it later will pick up that path as their
2123 runtime search location for it. (Darwin/MacOS X only)</entry>
2124 <entry>dynamic</entry>
2125 <entry>-</entry>
2126 </row>
2127 </tbody>
2128 </tgroup>
2129 </informaltable>
2130 </sect2>
2131
2132 <sect2>
2133 <title>Plugin options</title>
2134
2135 <para><xref linkend="compiler-plugins"/></para>
2136
2137 <informaltable>
2138 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2139 <thead>
2140 <row>
2141 <entry>Flag</entry>
2142 <entry>Description</entry>
2143 <entry>Static/Dynamic</entry>
2144 <entry>Reverse</entry>
2145 </row>
2146 </thead>
2147 <tbody>
2148 <row>
2149 <entry><option>-fplugin</option>=<replaceable>module</replaceable></entry>
2150 <entry>Load a plugin exported by a given module</entry>
2151 <entry>static</entry>
2152 <entry>-</entry>
2153 </row>
2154 <row>
2155 <entry><option>-fplugin-opt</option>=<replaceable>module:args</replaceable></entry>
2156 <entry>Give arguments to a plugin module; module must be specified with <option>-fplugin</option></entry>
2157 <entry>static</entry>
2158 <entry>-</entry>
2159 </row>
2160 </tbody>
2161 </tgroup>
2162 </informaltable>
2163 </sect2>
2164
2165
2166 <sect2>
2167 <title>Replacing phases</title>
2168
2169 <para><xref linkend="replacing-phases"/></para>
2170
2171 <informaltable>
2172 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2173 <thead>
2174 <row>
2175 <entry>Flag</entry>
2176 <entry>Description</entry>
2177 <entry>Static/Dynamic</entry>
2178 <entry>Reverse</entry>
2179 </row>
2180 </thead>
2181 <tbody>
2182 <row>
2183 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
2184 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
2185 <entry>dynamic</entry>
2186 <entry>-</entry>
2187 </row>
2188 <row>
2189 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
2190 <entry>Use <replaceable>cmd</replaceable> as the C
2191 pre-processor (with <option>-cpp</option> only)</entry>
2192 <entry>dynamic</entry>
2193 <entry>-</entry>
2194 </row>
2195 <row>
2196 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
2197 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
2198 <entry>dynamic</entry>
2199 <entry>-</entry>
2200 <row>
2201 <entry><option>-pgmlo</option> <replaceable>cmd</replaceable></entry>
2202 <entry>Use <replaceable>cmd</replaceable> as the LLVM optimiser</entry>
2203 <entry>dynamic</entry>
2204 <entry>-</entry>
2205 </row>
2206 <row>
2207 <entry><option>-pgmlc</option> <replaceable>cmd</replaceable></entry>
2208 <entry>Use <replaceable>cmd</replaceable> as the LLVM compiler</entry>
2209 <entry>dynamic</entry>
2210 <entry>-</entry>
2211 </row>
2212 </row>
2213 <row>
2214 <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
2215 <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
2216 <entry>dynamic</entry>
2217 <entry>-</entry>
2218 </row>
2219 <row>
2220 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
2221 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
2222 <entry>dynamic</entry>
2223 <entry>-</entry>
2224 </row>
2225 <row>
2226 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
2227 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
2228 <entry>dynamic</entry>
2229 <entry>-</entry>
2230 </row>
2231 <row>
2232 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
2233 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
2234 <entry>dynamic</entry>
2235 <entry>-</entry>
2236 </row>
2237 <row>
2238 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
2239 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
2240 (with <option>-F</option> only)</entry>
2241 <entry>dynamic</entry>
2242 <entry>-</entry>
2243 </row>
2244 <row>
2245 <entry><option>-pgmwindres</option> <replaceable>cmd</replaceable></entry>
2246 <entry>Use <replaceable>cmd</replaceable> as the program for
2247 embedding manifests on Windows.</entry>
2248 <entry>dynamic</entry>
2249 <entry>-</entry>
2250 </row>
2251 </tbody>
2252 </tgroup>
2253 </informaltable>
2254 <indexterm><primary><option>-pgmL</option></primary></indexterm>
2255 <indexterm><primary><option>-pgmP</option></primary></indexterm>
2256 <indexterm><primary><option>-pgmc</option></primary></indexterm>
2257 <indexterm><primary><option>-pgmlo</option></primary></indexterm>
2258 <indexterm><primary><option>-pgmlc</option></primary></indexterm>
2259 <indexterm><primary><option>-pgma</option></primary></indexterm>
2260 <indexterm><primary><option>-pgml</option></primary></indexterm>
2261 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
2262 <indexterm><primary><option>-pgmF</option></primary></indexterm>
2263
2264 </sect2>
2265
2266 <sect2>
2267 <title>Forcing options to particular phases</title>
2268
2269 <para><xref linkend="forcing-options-through"/></para>
2270
2271 <informaltable>
2272 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2273 <thead>
2274 <row>
2275 <entry>Flag</entry>
2276 <entry>Description</entry>
2277 <entry>Static/Dynamic</entry>
2278 <entry>Reverse</entry>
2279 </row>
2280 </thead>
2281 <tbody>
2282 <row>
2283 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
2284 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
2285 <entry>dynamic</entry>
2286 <entry>-</entry>
2287 </row>
2288 <row>
2289 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
2290 <entry>pass <replaceable>option</replaceable> to cpp (with
2291 <option>-cpp</option> only)</entry>
2292 <entry>dynamic</entry>
2293 <entry>-</entry>
2294 </row>
2295 <row>
2296 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
2297 <entry>pass <replaceable>option</replaceable> to the
2298 custom pre-processor</entry>
2299 <entry>dynamic</entry>
2300 <entry>-</entry>
2301 </row>
2302 <row>
2303 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
2304 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
2305 <entry>dynamic</entry>
2306 <entry>-</entry>
2307 </row>
2308 <row>
2309 <entry><option>-optlo</option> <replaceable>option</replaceable></entry>
2310 <entry>pass <replaceable>option</replaceable> to the LLVM optimiser</entry>
2311 <entry>dynamic</entry>
2312 <entry>-</entry>
2313 </row>
2314 <row>
2315 <entry><option>-optlc</option> <replaceable>option</replaceable></entry>
2316 <entry>pass <replaceable>option</replaceable> to the LLVM compiler</entry>
2317 <entry>dynamic</entry>
2318 <entry>-</entry>
2319 </row>
2320 <row>
2321 <entry><option>-optm</option> <replaceable>option</replaceable></entry>
2322 <entry>pass <replaceable>option</replaceable> to the mangler</entry>
2323 <entry>dynamic</entry>
2324 <entry>-</entry>
2325 </row>
2326 <row>
2327 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
2328 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
2329 <entry>dynamic</entry>
2330 <entry>-</entry>
2331 </row>
2332 <row>
2333 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
2334 <entry>pass <replaceable>option</replaceable> to the linker</entry>
2335 <entry>dynamic</entry>
2336 <entry>-</entry>
2337 </row>
2338 <row>
2339 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
2340 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
2341 <entry>dynamic</entry>
2342 <entry>-</entry>
2343 </row>
2344 <row>
2345 <entry><option>-optwindres</option> <replaceable>option</replaceable></entry>
2346 <entry>pass <replaceable>option</replaceable> to <literal>windres</literal>.</entry>
2347 <entry>dynamic</entry>
2348 <entry>-</entry>
2349 </row>
2350 </tbody>
2351 </tgroup>
2352 </informaltable>
2353 </sect2>
2354
2355 <sect2>
2356 <title>Platform-specific options</title>
2357
2358 <para><xref linkend="options-platform"/></para>
2359
2360 <informaltable>
2361 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2362 <thead>
2363 <row>
2364 <entry>Flag</entry>
2365 <entry>Description</entry>
2366 <entry>Static/Dynamic</entry>
2367 <entry>Reverse</entry>
2368 </row>
2369 </thead>
2370 <tbody>
2371 <row>
2372 <entry><option>-msse2</option></entry>
2373 <entry>(x86 only) Use SSE2 for floating point</entry>
2374 <entry>dynamic</entry>
2375 <entry>-</entry>
2376 </row>
2377 </tbody>
2378 <tbody>
2379 <row>
2380 <entry><option>-monly-[432]-regs</option></entry>
2381 <entry>(x86 only) give some registers back to the C compiler</entry>
2382 <entry>dynamic</entry>
2383 <entry>-</entry>
2384 </row>
2385 </tbody>
2386 </tgroup>
2387 </informaltable>
2388 </sect2>
2389
2390
2391 <sect2>
2392 <title>External core file options</title>
2393
2394 <para><xref linkend="ext-core"/></para>
2395
2396 <informaltable>
2397 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2398 <thead>
2399 <row>
2400 <entry>Flag</entry>
2401 <entry>Description</entry>
2402 <entry>Static/Dynamic</entry>
2403 <entry>Reverse</entry>
2404 </row>
2405 </thead>
2406 <tbody>
2407 <row>
2408 <entry><option>-fext-core</option></entry>
2409 <entry>Generate <filename>.hcr</filename> external Core files</entry>
2410 <entry>dynamic</entry>
2411 <entry>-</entry>
2412 </row>
2413 </tbody>
2414 </tgroup>
2415 </informaltable>
2416 </sect2>
2417
2418
2419 <sect2>
2420 <title>Compiler debugging options</title>
2421
2422 <para><xref linkend="options-debugging"/></para>
2423
2424 <informaltable>
2425 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2426 <thead>
2427 <row>
2428 <entry>Flag</entry>
2429 <entry>Description</entry>
2430 <entry>Static/Dynamic</entry>
2431 <entry>Reverse</entry>
2432 </row>
2433 </thead>
2434 <tbody>
2435 <row>
2436 <entry><option>-dcore-lint</option></entry>
2437 <entry>Turn on internal sanity checking</entry>
2438 <entry>dynamic</entry>
2439 <entry>-</entry>
2440 </row>
2441 <row>
2442 <entry><option>-ddump-to-file</option></entry>
2443 <entry>Dump to files instead of stdout</entry>
2444 <entry>dynamic</entry>
2445 <entry>-</entry>
2446 </row>
2447 <row>
2448 <entry><option>-ddump-asm</option></entry>
2449 <entry>Dump assembly</entry>
2450 <entry>dynamic</entry>
2451 <entry>-</entry>
2452 </row>
2453 <row>
2454 <entry><option>-ddump-bcos</option></entry>
2455 <entry>Dump interpreter byte code</entry>
2456 <entry>dynamic</entry>
2457 <entry>-</entry>
2458 </row>
2459 <row>
2460 <entry><option>-ddump-cmm</option></entry>
2461 <entry>Dump C-- output</entry>
2462 <entry>dynamic</entry>
2463 <entry>-</entry>
2464 </row>
2465 <row>
2466 <entry><option>-ddump-core-stats</option></entry>
2467 <entry>Print a one-line summary of the size of the Core program
2468 at the end of the optimisation pipeline </entry>
2469 <entry>dynamic</entry>
2470 <entry>-</entry>
2471 </row>
2472 <row>
2473 <entry><option>-ddump-cpranal</option></entry>
2474 <entry>Dump output from CPR analysis</entry>
2475 <entry>dynamic</entry>
2476 <entry>-</entry>
2477 </row>
2478 <row>
2479 <entry><option>-ddump-cse</option></entry>
2480 <entry>Dump CSE output</entry>
2481 <entry>dynamic</entry>
2482 <entry>-</entry>
2483 </row>
2484 <row>
2485 <entry><option>-ddump-deriv</option></entry>
2486 <entry>Dump deriving output</entry>
2487 <entry>dynamic</entry>
2488 <entry>-</entry>
2489 </row>
2490 <row>
2491 <entry><option>-ddump-ds</option></entry>
2492 <entry>Dump desugarer output</entry>
2493 <entry>dynamic</entry>
2494 <entry>-</entry>
2495 </row>
2496 <row>
2497 <entry><option>-ddump-flatC</option></entry>
2498 <entry>Dump &ldquo;flat&rdquo; C</entry>
2499 <entry>dynamic</entry>
2500 <entry>-</entry>
2501 </row>
2502 <row>
2503 <entry><option>-ddump-foreign</option></entry>
2504 <entry>Dump <literal>foreign export</literal> stubs</entry>
2505 <entry>dynamic</entry>
2506 <entry>-</entry>
2507 </row>
2508 <row>
2509 <entry><option>-ddump-hpc</option></entry>
2510 <entry>Dump after instrumentation for program coverage</entry>
2511 <entry>dynamic</entry>
2512 <entry>-</entry>
2513 </row>
2514 <row>
2515 <entry><option>-ddump-inlinings</option></entry>
2516 <entry>Dump inlining info</entry>
2517 <entry>dynamic</entry>
2518 <entry>-</entry>
2519 </row>
2520 <row>
2521 <entry><option>-ddump-llvm</option></entry>
2522 <entry>Dump LLVM intermediate code</entry>
2523 <entry>dynamic</entry>
2524 <entry>-</entry>
2525 </row>
2526 <row>
2527 <entry><option>-ddump-occur-anal</option></entry>
2528 <entry>Dump occurrence analysis output</entry>
2529 <entry>dynamic</entry>
2530 <entry>-</entry>
2531 </row>
2532 <row>
2533 <entry><option>-ddump-opt-cmm</option></entry>
2534 <entry>Dump the results of C-- to C-- optimising passes</entry>
2535 <entry>dynamic</entry>
2536 <entry>-</entry>
2537 </row>
2538 <row>
2539 <entry><option>-ddump-parsed</option></entry>
2540 <entry>Dump parse tree</entry>
2541 <entry>dynamic</entry>
2542 <entry>-</entry>
2543 </row>
2544 <row>
2545 <entry><option>-ddump-prep</option></entry>
2546 <entry>Dump prepared core</entry>
2547 <entry>dynamic</entry>
2548 <entry>-</entry>
2549 </row>
2550 <row>
2551 <entry><option>-ddump-rn</option></entry>
2552 <entry>Dump renamer output</entry>
2553 <entry>dynamic</entry>
2554 <entry>-</entry>
2555 </row>
2556 <row>
2557 <entry><option>-ddump-rule-firings</option></entry>
2558 <entry>Dump rule firing info</entry>
2559 <entry>dynamic</entry>
2560 <entry>-</entry>
2561 </row>
2562 <row>
2563 <entry><option>-ddump-rule-rewrites</option></entry>
2564 <entry>Dump detailed rule firing info</entry>
2565 <entry>dynamic</entry>
2566 <entry>-</entry>
2567 </row>
2568 <row>
2569 <entry><option>-ddump-rules</option></entry>
2570 <entry>Dump rules</entry>
2571 <entry>dynamic</entry>
2572 <entry>-</entry>
2573 </row>
2574 <row>
2575 <entry><option>-ddump-vect</option></entry>
2576 <entry>Dump vectoriser input and output</entry>
2577 <entry>dynamic</entry>
2578 <entry>-</entry>
2579 </row>
2580 <row>
2581 <entry><option>-ddump-simpl</option></entry>
2582 <entry>Dump final simplifier output</entry>
2583 <entry>dynamic</entry>
2584 <entry>-</entry>
2585 </row>
2586 <row>
2587 <entry><option>-ddump-simpl-phases</option></entry>
2588 <entry>Dump output from each simplifier phase</entry>
2589 <entry>dynamic</entry>
2590 <entry>-</entry>
2591 </row>
2592 <row>
2593 <entry><option>-ddump-simpl-iterations</option></entry>
2594 <entry>Dump output from each simplifier iteration</entry>
2595 <entry>dynamic</entry>
2596 <entry>-</entry>
2597 </row>
2598 <row>
2599 <entry><option>-ddump-spec</option></entry>
2600 <entry>Dump specialiser output</entry>
2601 <entry>dynamic</entry>
2602 <entry>-</entry>
2603 </row>
2604 <row>
2605 <entry><option>-ddump-splices</option></entry>
2606 <entry>Dump TH spliced expressions, and what they evaluate to</entry>
2607 <entry>dynamic</entry>
2608 <entry>-</entry>
2609 </row>
2610 <row>
2611 <entry><option>-ddump-stg</option></entry>
2612 <entry>Dump final STG</entry>
2613 <entry>dynamic</entry>
2614 <entry>-</entry>
2615 </row>
2616 <row>
2617 <entry><option>-ddump-stranal</option></entry>
2618 <entry>Dump strictness analyser output</entry>
2619 <entry>dynamic</entry>
2620 <entry>-</entry>
2621 </row>
2622 <row>
2623 <entry><option>-ddump-tc</option></entry>
2624 <entry>Dump typechecker output</entry>
2625 <entry>dynamic</entry>
2626 <entry>-</entry>
2627 </row>
2628 <row>
2629 <entry><option>-ddump-types</option></entry>
2630 <entry>Dump type signatures</entry>
2631 <entry>dynamic</entry>
2632 <entry>-</entry>
2633 </row>
2634 <row>
2635 <entry><option>-ddump-worker-wrapper</option></entry>
2636 <entry>Dump worker-wrapper output</entry>
2637 <entry>dynamic</entry>
2638 <entry>-</entry>
2639 </row>
2640 <row>
2641 <entry><option>-ddump-if-trace</option></entry>
2642 <entry>Trace interface files</entry>
2643 <entry>dynamic</entry>
2644 <entry>-</entry>
2645 </row>
2646 <row>
2647 <entry><option>-ddump-tc-trace</option></entry>
2648 <entry>Trace typechecker</entry>
2649 <entry>dynamic</entry>
2650 <entry>-</entry>
2651 </row>
2652 <row>
2653 <entry><option>-ddump-vt-trace</option></entry>
2654 <entry>Trace vectoriser</entry>
2655 <entry>dynamic</entry>
2656 <entry>-</entry>
2657 </row>
2658 <row>
2659 <entry><option>-ddump-rn-trace</option></entry>
2660 <entry>Trace renamer</entry>
2661 <entry>dynamic</entry>
2662 <entry>-</entry>
2663 </row>
2664 <row>
2665 <entry><option>-ddump-rn-stats</option></entry>
2666 <entry>Renamer stats</entry>
2667 <entry>dynamic</entry>
2668 <entry>-</entry>
2669 </row>
2670 <row>
2671 <entry><option>-ddump-simpl-stats</option></entry>
2672 <entry>Dump simplifier stats</entry>
2673 <entry>dynamic</entry>
2674 <entry>-</entry>
2675 </row>
2676 <row>
2677 <entry><option>-dno-debug-output</option></entry>
2678 <entry>Suppress unsolicited debugging output</entry>
2679 <entry>static</entry>
2680 <entry>-</entry>
2681 </row>
2682 <row>
2683 <entry><option>-dppr-debug</option></entry>
2684 <entry>Turn on debug printing (more verbose)</entry>
2685 <entry>static</entry>
2686 <entry>-</entry>
2687 </row>
2688 <row>
2689 <entry><option>-dppr-noprags</option></entry>
2690 <entry>Don't output pragma info in dumps</entry>
2691 <entry>static</entry>
2692 <entry>-</entry>
2693 </row>
2694 <row>
2695 <entry><option>-dppr-user-length</option></entry>
2696 <entry>Set the depth for printing expressions in error msgs</entry>
2697 <entry>static</entry>
2698 <entry>-</entry>
2699 </row>
2700 <row>
2701 <entry><option>-dppr-colsNNN</option></entry>
2702 <entry>Set the width of debugging output. For example <option>-dppr-cols200</option></entry>
2703 <entry>static</entry>
2704 <entry>-</entry>
2705 </row>
2706 <row>
2707 <entry><option>-dppr-case-as-let</option></entry>
2708 <entry>Print single alternative case expressions as strict lets.</entry>
2709 <entry>static</entry>
2710 <entry>-</entry>
2711 </row>
2712 <row>
2713 <entry><option>-dsuppress-all</option></entry>
2714 <entry>In core dumps, suppress everything that is suppressable.</entry>
2715 <entry>static</entry>
2716 <entry>-</entry>
2717 </row>
2718 <row>
2719 <entry><option>-dsuppress-uniques</option></entry>
2720 <entry>Suppress the printing of uniques in debug output (easier to use <command>diff</command>)</entry>
2721 <entry>static</entry>
2722 <entry>-</entry>
2723 </row>
2724 <row>
2725 <entry><option>-dsuppress-idinfo</option></entry>
2726 <entry>Suppress extended information about identifiers where they are bound</entry>
2727 <entry>static</entry>
2728 <entry>-</entry>
2729 </row>
2730 <row>
2731 <entry><option>-dsuppress-module-prefixes</option></entry>
2732 <entry>Suppress the printing of module qualification prefixes</entry>
2733 <entry>static</entry>
2734 <entry>-</entry>
2735 </row>
2736 <row>
2737 <entry><option>-dsuppress-type-signatures</option></entry>
2738 <entry>Suppress type signatures</entry>
2739 <entry>static</entry>
2740 <entry>-</entry>
2741 </row>
2742 <row>
2743 <entry><option>-dsuppress-type-applications</option></entry>
2744 <entry>Suppress type applications</entry>
2745 <entry>static</entry>
2746 <entry>-</entry>
2747 </row>
2748 <row>
2749 <entry><option>-dsuppress-coercions</option></entry>
2750 <entry>Suppress the printing of coercions in Core dumps to make them shorter</entry>
2751 <entry>static</entry>
2752 <entry>-</entry>
2753 </row>
2754 <row>
2755 <entry><option>-dsource-stats</option></entry>
2756 <entry>Dump haskell source stats</entry>
2757 <entry>dynamic</entry>
2758 <entry>-</entry>
2759 </row>
2760 <row>
2761 <entry><option>-dcmm-lint</option></entry>
2762 <entry>C-- pass sanity checking</entry>
2763 <entry>dynamic</entry>
2764 <entry>-</entry>
2765 </row>
2766 <row>
2767 <entry><option>-dstg-lint</option></entry>
2768 <entry>STG pass sanity checking</entry>
2769 <entry>dynamic</entry>
2770 <entry>-</entry>
2771 </row>
2772 <row>
2773 <entry><option>-dstg-stats</option></entry>
2774 <entry>Dump STG stats</entry>
2775 <entry>dynamic</entry>
2776 <entry>-</entry>
2777 </row>
2778 <row>
2779 <entry><option>-dverbose-core2core</option></entry>
2780 <entry>Show output from each core-to-core pass</entry>
2781 <entry>dynamic</entry>
2782 <entry>-</entry>
2783 </row>
2784 <row>
2785 <entry><option>-dverbose-stg2stg</option></entry>
2786 <entry>Show output from each STG-to-STG pass</entry>
2787 <entry>dynamic</entry>
2788 <entry>-</entry>
2789 </row>
2790 <row>
2791 <entry><option>-dshow-passes</option></entry>
2792 <entry>Print out each pass name as it happens</entry>
2793 <entry>dynamic</entry>
2794 <entry>-</entry>
2795 </row>
2796 <row>
2797 <entry><option>-dfaststring-stats</option></entry>
2798 <entry>Show statistics for fast string usage when finished</entry>
2799 <entry>dynamic</entry>
2800 <entry>-</entry>
2801 </row>
2802 </tbody>
2803 </tgroup>
2804 </informaltable>
2805 </sect2>
2806
2807 <sect2>
2808 <title>Misc compiler options</title>
2809
2810 <informaltable>
2811 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2812 <thead>
2813 <row>
2814 <entry>Flag</entry>
2815 <entry>Description</entry>
2816 <entry>Static/Dynamic</entry>
2817 <entry>Reverse</entry>
2818 </row>
2819 </thead>
2820 <tbody>
2821 <row>
2822 <entry><option>-fno-hi-version-check</option></entry>
2823 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
2824 <entry>static</entry>
2825 <entry>-</entry>
2826 </row>
2827 <row>
2828 <entry><option>-dno-black-holing</option></entry>
2829 <entry>Turn off black holing (probably doesn't work)</entry>
2830 <entry>static</entry>
2831 <entry>-</entry>
2832 </row>
2833 <row>
2834 <entry><option>-fhistory-size</option></entry>
2835 <entry>Set simplification history size</entry>
2836 <entry>static</entry>
2837 <entry>-</entry>
2838 </row>
2839 <row>
2840 <entry><option>-funregisterised</option></entry>
2841 <entry><link linkend="unreg">Unregisterised</link> compilation (use <option>-unreg</option> instead)</entry>
2842 <entry>static</entry>
2843 <entry>-</entry>
2844 </row>
2845 <row>
2846 <entry><option>-fno-ghci-history</option></entry>
2847 <entry>Do not use the load/store the GHCi command history from/to <literal>ghci_history</literal>.</entry>
2848 <entry>dynamic</entry>
2849 <entry>-</entry>
2850 </row>
2851 <row>
2852 <entry><option>-fno-ghci-sandbox</option></entry>
2853 <entry>Turn off the GHCi sandbox. Means computations are run in the main thread, rather than a forked thread.</entry>
2854 <entry>dynamic</entry>
2855 <entry>-</entry>
2856 </row>
2857 </tbody>
2858 </tgroup>
2859 </informaltable>
2860 </sect2>
2861 </sect1>
2862
2863
2864 <!--
2865 Still to document:
2866
2867 Misc:
2868 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
2869
2870 -Bdir
2871 -->
2872
2873 <!-- Emacs stuff:
2874 ;;; Local Variables: ***
2875 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***
2876 ;;; End: ***
2877 -->