1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <sect1 id="flag-reference">
3 <title>Flag reference</title>
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
11 <title>Help and verbosity options</title>
13 <para><xref linkend="options-help"/></para>
16 <tgroup cols="4" align="left" colsep="1" rowsep="1">
20 <entry>Description</entry>
21 <entry>Static/Dynamic</entry>
22 <entry>Reverse</entry>
27 <entry><option>-?</option></entry>
33 <entry><option>-help</option></entry>
39 <entry><option>-n</option></entry>
40 <entry>do a dry run</entry>
41 <entry>dynamic</entry>
45 <entry><option>-v</option></entry>
46 <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
47 <entry>dynamic</entry>
51 <entry><option>-v</option><replaceable>n</replaceable></entry>
52 <entry>set verbosity level</entry>
53 <entry>dynamic</entry>
57 <entry><option>-V</option></entry>
58 <entry>display GHC version</entry>
63 <entry><option>––supported-languages</option></entry>
64 <entry>display the supported language extensions</entry>
69 <entry><option>––info</option></entry>
70 <entry>display information about the compiler</entry>
75 <entry><option>––version</option></entry>
76 <entry>display GHC version</entry>
81 <entry><option>––numeric-version</option></entry>
82 <entry>display GHC version (numeric only)</entry>
87 <entry><option>––print-libdir</option></entry>
88 <entry>display GHC library directory</entry>
93 <entry><option>-ferror-spans</option></entry>
94 <entry>output full span in error messages</entry>
99 <entry><option>-H</option><replaceable>size</replaceable></entry>
100 <entry>Set the minimum heap size to <replaceable>size</replaceable></entry>
101 <entry>static</entry>
105 <entry><option>-Rghc-timing</option></entry>
106 <entry>Summarise timing stats for GHC (same as <literal>+RTS -tstderr</literal>)</entry>
107 <entry>static</entry>
116 <title>Which phases to run</title>
118 <para><xref linkend="options-order"/></para>
121 <tgroup cols="4" align="left" colsep="1" rowsep="1">
125 <entry>Description</entry>
126 <entry>Static/Dynamic</entry>
127 <entry>Reverse</entry>
132 <entry><option>-E</option></entry>
133 <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
138 <entry><option>-C</option></entry>
139 <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
144 <entry><option>-S</option></entry>
145 <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
150 <entry><option>-c</option></entry>
151 <entry>Do not link</entry>
152 <entry>dynamic</entry>
156 <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
157 <entry>Override default behaviour for source files</entry>
158 <entry>static</entry>
167 <title>Alternative modes of operation</title>
169 <para><xref linkend="modes"/></para>
172 <tgroup cols="4" align="left" colsep="1" rowsep="1">
176 <entry>Description</entry>
177 <entry>Static/Dynamic</entry>
178 <entry>Reverse</entry>
183 <entry><option>--interactive</option></entry>
184 <entry>Interactive mode - normally used by just running <command>ghci</command>;
185 see <xref linkend="ghci"/> for details.</entry>
190 <entry><option>--make</option></entry>
191 <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>;
192 see <xref linkend="make-mode"/> for details..</entry>
197 <entry><option>-e <replaceable>expr</replaceable></option></entry>
198 <entry>Evaluate <replaceable>expr</replaceable>;
199 see <xref linkend="eval-mode"/> for details.</entry>
204 <entry><option>-M</option></entry>
205 <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>;
206 see <xref linkend="makefile-dependencies"/> for details.</entry>
216 <title>Redirecting output</title>
218 <para><xref linkend="options-output"/></para>
221 <tgroup cols="4" align="left" colsep="1" rowsep="1">
225 <entry>Description</entry>
226 <entry>Static/Dynamic</entry>
227 <entry>Reverse</entry>
232 <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
233 <entry>set the suffix to use for intermediate C files</entry>
234 <entry>dynamic</entry>
238 <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
239 <entry>set directory for interface files</entry>
240 <entry>dynamic</entry>
244 <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
245 <entry>set the suffix to use for interface files</entry>
246 <entry>dynamic</entry>
250 <entry><option>-o</option> <replaceable>filename</replaceable></entry>
251 <entry>set output filename</entry>
252 <entry>dynamic</entry>
256 <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
257 <entry>set directory for object files</entry>
258 <entry>dynamic</entry>
262 <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
263 <entry>set the filename in which to put the interface</entry>
264 <entry>dynamic</entry>
268 <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
269 <entry>set the output file suffix</entry>
270 <entry>dynamic</entry>
274 <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
275 <entry>redirect FFi stub files</entry>
276 <entry>dynamic</entry>
280 <entry><option>-outputdir</option> <replaceable>dir</replaceable></entry>
281 <entry>set output directory</entry>
282 <entry>dynamic</entry>
291 <title>Keeping intermediate files</title>
293 <para><xref linkend="keeping-intermediates"/></para>
296 <tgroup cols="4" align="left" colsep="1" rowsep="1">
300 <entry>Description</entry>
301 <entry>Static/Dynamic</entry>
302 <entry>Reverse</entry>
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>
314 <entry><option>-keep-s-file</option> or
315 <option>-keep-s-files</option></entry>
316 <entry>retain intermediate <literal>.s</literal> files</entry>
317 <entry>dynamic</entry>
321 <entry><option>-keep-raw-s-file</option> or
322 <option>-keep-raw-s-files</option></entry>
323 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
324 <entry>dynamic</entry>
328 <entry><option>-keep-tmp-files</option></entry>
329 <entry>retain all intermediate temporary files</entry>
330 <entry>dynamic</entry>
339 <title>Temporary files</title>
341 <para><xref linkend="temp-files"/></para>
344 <tgroup cols="4" align="left" colsep="1" rowsep="1">
348 <entry>Description</entry>
349 <entry>Static/Dynamic</entry>
350 <entry>Reverse</entry>
355 <entry><option>-tmpdir</option></entry>
356 <entry>set the directory for temporary files</entry>
357 <entry>dynamic</entry>
366 <title>Finding imports</title>
368 <para><xref linkend="search-path"/></para>
371 <tgroup cols="4" align="left" colsep="1" rowsep="1">
376 <entry>Description</entry>
377 <entry>Static/Dynamic</entry>
378 <entry>Reverse</entry>
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>
390 <entry><option>-i</option></entry>
391 <entry>Empty the import directory list</entry>
392 <entry>static/<literal>:set</literal></entry>
401 <title>Interface file options</title>
403 <para><xref linkend="hi-options"/></para>
406 <tgroup cols="4" align="left" colsep="1" rowsep="1">
411 <entry>Description</entry>
412 <entry>Static/Dynamic</entry>
413 <entry>Reverse</entry>
418 <entry><option>-ddump-hi</option></entry>
419 <entry>Dump the new interface to stdout</entry>
420 <entry>dynamic</entry>
424 <entry><option>-ddump-hi-diffs</option></entry>
425 <entry>Show the differences vs. the old interface</entry>
426 <entry>dynamic</entry>
430 <entry><option>-ddump-minimal-imports</option></entry>
431 <entry>Dump a minimal set of imports</entry>
432 <entry>dynamic</entry>
436 <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
437 <entry>See <xref linkend="modes"/>.</entry>
445 <title>Recompilation checking</title>
447 <para><xref linkend="recomp"/></para>
450 <tgroup cols="4" align="left" colsep="1" rowsep="1">
455 <entry>Description</entry>
456 <entry>Static/Dynamic</entry>
457 <entry>Reverse</entry>
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>
473 <sect2 id="interactive-mode-options">
474 <title>Interactive-mode options</title>
476 <para><xref linkend="ghci-dot-files"/></para>
479 <tgroup cols="4" align="left" colsep="1" rowsep="1">
483 <entry>Description</entry>
484 <entry>Static/Dynamic</entry>
485 <entry>Reverse</entry>
490 <entry><option>-ignore-dot-ghci</option></entry>
491 <entry>Disable reading of <filename>.ghci</filename> files</entry>
492 <entry>static</entry>
496 <entry><option>-read-dot-ghci</option></entry>
497 <entry>Enable reading of <filename>.ghci</filename> files</entry>
498 <entry>static</entry>
502 <entry><option>-fbreak-on-exception</option></entry>
503 <entry><link linkend="ghci-debugger-exceptions">Break on any exception thrown</link></entry>
504 <entry>dynamic</entry>
505 <entry><option>-fno-break-on-exception</option></entry>
508 <entry><option>-fbreak-on-error</option></entry>
509 <entry><link linkend="ghci-debugger-exceptions">Break on uncaught exceptions and errors</link></entry>
510 <entry>dynamic</entry>
511 <entry><option>-fno-break-on-error</option></entry>
514 <entry><option>-fprint-evld-with-show</option></entry>
515 <entry><link linkend="breakpoints">Enable usage of Show instances in <literal>:print</literal></link></entry>
516 <entry>dynamic</entry>
517 <entry><option>-fno-print-evld-with-show</option></entry>
520 <entry><option>-fprint-bind-result</option></entry>
521 <entry><link linkend="ghci-stmts">Turn on printing of binding results in GHCi</link></entry>
522 <entry>dynamic</entry>
523 <entry><option>-fno-print-bind-result</option></entry>
526 <entry><option>-fno-print-bind-contents</option></entry>
527 <entry><link linkend="breakpoints">Turn off printing of binding contents in GHCi</link></entry>
528 <entry>dynamic</entry>
532 <entry><option>-fno-implicit-import-qualified</option></entry>
533 <entry><link linkend="ghci-import-qualified">Turn off
534 implicit qualified import of everything in GHCi</link></entry>
535 <entry>dynamic</entry>
545 <title>Packages</title>
547 <para><xref linkend="packages"/></para>
550 <tgroup cols="4" align="left" colsep="1" rowsep="1">
554 <entry>Description</entry>
555 <entry>Static/Dynamic</entry>
556 <entry>Reverse</entry>
561 <entry><option>-package-name</option> <replaceable>P</replaceable></entry>
562 <entry>Compile to be part of package <replaceable>P</replaceable></entry>
563 <entry>dynamic</entry>
567 <entry><option>-package</option> <replaceable>P</replaceable></entry>
568 <entry>Expose package <replaceable>P</replaceable></entry>
569 <entry>static/<literal>:set</literal></entry>
573 <entry><option>-hide-all-packages</option></entry>
574 <entry>Hide all packages by default</entry>
575 <entry>static</entry>
579 <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
580 <entry>Hide package <replaceable>P</replaceable></entry>
581 <entry>static/<literal>:set</literal></entry>
585 <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
586 <entry>Ignore package <replaceable>P</replaceable></entry>
587 <entry>static/<literal>:set</literal></entry>
591 <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
592 <entry>Load more packages from <replaceable>file</replaceable></entry>
593 <entry>static</entry>
597 <entry><option>-no-user-package-conf</option></entry>
598 <entry>Don't load the user's package config file.</entry>
599 <entry>static</entry>
608 <title>Language options</title>
610 <para>Language options can be enabled either by a command-line option
611 <option>-Xblah</option>, or by a <literal>{-# LANGUAGE blah #-}</literal>
612 pragma in the file itself. See <xref linkend="options-language"/></para>
615 <tgroup cols="4" align="left" colsep="1" rowsep="1">
619 <entry>Description</entry>
620 <entry>Static/Dynamic</entry>
621 <entry>Reverse</entry>
626 <entry><option>-fglasgow-exts</option></entry>
627 <entry>Enable most language extensions</entry>
628 <entry>dynamic</entry>
629 <entry><option>-fno-glasgow-exts</option></entry>
632 <entry><option>-XOverlappingInstances</option></entry>
633 <entry>Enable <link linkend="instance-overlap">overlapping instances</link></entry>
634 <entry>dynamic</entry>
635 <entry><option>-XNoOverlappingInstances</option></entry>
638 <entry><option>-XIncoherentInstances</option></entry>
639 <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
640 Implies <option>-XOverlappingInstances</option> </entry>
641 <entry>dynamic</entry>
642 <entry><option>-XNoIncoherentInstances</option></entry>
645 <entry><option>-XUndecidableInstances</option></entry>
646 <entry>Enable <link linkend="undecidable-instances">undecidable instances</link></entry>
647 <entry>dynamic</entry>
648 <entry><option>-XNoUndecidableInstances</option></entry>
651 <entry><option>-fcontext-stack=N</option><replaceable>n</replaceable></entry>
652 <entry>set the <link linkend="undecidable-instances">limit for context reduction</link>. Default is 20.</entry>
653 <entry>dynamic</entry>
657 <entry><option>-XArrows</option></entry>
658 <entry>Enable <link linkend="arrow-notation">arrow
659 notation</link> extension</entry>
660 <entry>dynamic</entry>
661 <entry><option>-XNoArrows</option></entry>
664 <entry><option>-XDisambiguateRecordFields</option></entry>
665 <entry>Enable <link linkend="disambiguate-fields">record
666 field disambiguation</link></entry>
667 <entry>dynamic</entry>
668 <entry><option>-XNoDisambiguateRecordFields</option></entry>
671 <entry><option>-XForeignFunctionInterface</option></entry>
672 <entry>Enable <link linkend="ffi">foreign function interface</link> (implied by
673 <option>-fglasgow-exts</option>)</entry>
674 <entry>dynamic</entry>
675 <entry><option>-XNoForeignFunctionInterface</option></entry>
678 <entry><option>-XGenerics</option></entry>
679 <entry>Enable <link linkend="generic-classes">generic classes</link></entry>
680 <entry>dynamic</entry>
681 <entry><option>-XNoGenerics</option></entry>
684 <entry><option>-XImplicitParams</option></entry>
685 <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
686 Implied by <option>-fglasgow-exts</option>.</entry>
687 <entry>dynamic</entry>
688 <entry><option>-XNoImplicitParams</option></entry>
691 <entry><option>-firrefutable-tuples</option></entry>
692 <entry>Make tuple pattern matching irrefutable</entry>
693 <entry>dynamic</entry>
694 <entry><option>-fno-irrefutable-tuples</option></entry>
697 <entry><option>-XNoImplicitPrelude</option></entry>
698 <entry>Don't implicitly <literal>import Prelude</literal></entry>
699 <entry>dynamic</entry>
700 <entry><option>-XImplicitPrelude</option></entry>
703 <entry><option>-XNoMonomorphismRestriction</option></entry>
704 <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
705 <entry>dynamic</entry>
706 <entry><option>-XMonomorphismRrestriction</option></entry>
709 <entry><option>-XNoMonoPatBinds</option></entry>
710 <entry>Make <link linkend="monomorphism">pattern bindings polymorphic</link></entry>
711 <entry>dynamic</entry>
712 <entry><option>-XMonoPatBinds</option></entry>
715 <entry><option>-XRelaxedPolyRec</option></entry>
716 <entry>Relaxed checking for <link linkend="typing-binds">mutually-recursive polymorphic functions</link></entry>
717 <entry>dynamic</entry>
718 <entry><option>-XNoRelaxedPolyRec</option></entry>
721 <entry><option>-XExtendedDefaultRules</option></entry>
722 <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module</entry>
723 <entry>dynamic</entry>
724 <entry><option>-XNoExtendedDefaultRules</option></entry>
727 <entry><option>-XOverloadedStrings</option></entry>
728 <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
730 <entry>dynamic</entry>
731 <entry><option>-XNoOverloadedStrings</option></entry>
734 <entry><option>-XGADTs</option></entry>
735 <entry>Enable <link linkend="gadt">generalised algebraic data types</link>.
737 <entry>dynamic</entry>
738 <entry><option>-XNoGADTs</option></entry>
741 <entry><option>-XTypeFamilies</option></entry>
742 <entry>Enable <link linkend="type-families">type families</link>.</entry>
743 <entry>dynamic</entry>
744 <entry><option>-XNoTypeFamilies</option></entry>
747 <entry><option>-XScopedTypeVariables</option></entry>
748 <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
749 Implied by <option>-fglasgow-exts</option>.</entry>
750 <entry>dynamic</entry>
751 <entry><option>-XNoScopedTypeVariables</option></entry>
754 <entry><option>-XTemplateHaskell</option></entry>
755 <entry>Enable <link linkend="template-haskell">Template Haskell</link>.
756 No longer implied by <option>-fglasgow-exts</option>.</entry>
757 <entry>dynamic</entry>
758 <entry><option>-XNoTemplateHaskell</option></entry>
761 <entry><option>-XQuasiQuotes</option></entry>
762 <entry>Enable <link linkend="th-quasiquotation">quasiquotation</link>.</entry>
763 <entry>dynamic</entry>
764 <entry><option>-XNoQuasiQuotes</option></entry>
767 <entry><option>-XBangPatterns</option></entry>
768 <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
769 <entry>dynamic</entry>
770 <entry><option>-XNoBangPatterns</option></entry>
773 <entry><option>-XCPP</option></entry>
774 <entry>Enable the <link linkend="c-pre-processor">C preprocessor</link>.</entry>
775 <entry>dynamic</entry>
776 <entry><option>-XNoCPP</option></entry>
779 <entry><option>-XPatternGuards</option></entry>
780 <entry>Enable <link linkend="pattern-guards">pattern guards</link>.</entry>
781 <entry>dynamic</entry>
782 <entry><option>-XNoPatternGuards</option></entry>
785 <entry><option>-XViewPatterns</option></entry>
786 <entry>Enable <link linkend="view-patterns">view patterns</link>.</entry>
787 <entry>dynamic</entry>
788 <entry><option>-XNoViewPatterns</option></entry>
791 <entry><option>-XUnicodeSyntax</option></entry>
792 <entry>Enable unicode syntax.</entry>
793 <entry>dynamic</entry>
794 <entry><option>-XNoUnicodeSyntax</option></entry>
797 <entry><option>-XMagicHash</option></entry>
798 <entry>Allow "#" as a <link linkend="magic-hash">postfix modifier on identifiers</link>.</entry>
799 <entry>dynamic</entry>
800 <entry><option>-XNoMagicHash</option></entry>
803 <entry><option>-XNewQualifiedOperators</option></entry>
804 <entry>Enable <link linkend="new-qualified-operators">new
805 qualified operator syntax</link></entry>
806 <entry>dynamic</entry>
807 <entry><option>-XNoNewQualifiedOperators</option></entry>
810 <entry><option>-XPolymorphicComponents</option></entry>
811 <entry>Enable <link linkend="universal-quantification">polymorphic components for data constructors</link>.</entry>
812 <entry>dynamic</entry>
813 <entry><option>-XNoPolymorphicComponents</option></entry>
816 <entry><option>-XRank2Types</option></entry>
817 <entry>Enable <link linkend="universal-quantification">rank-2 types</link>.</entry>
818 <entry>dynamic</entry>
819 <entry><option>-XNoRank2Types</option></entry>
822 <entry><option>-XRankNTypes</option></entry>
823 <entry>Enable <link linkend="universal-quantification">rank-N types</link>.</entry>
824 <entry>dynamic</entry>
825 <entry><option>-XNoRankNTypes</option></entry>
828 <entry><option>-XImpredicativeTypes</option></entry>
829 <entry>Enable <link linkend="impredicative-polymorphism">impredicative types</link>.</entry>
830 <entry>dynamic</entry>
831 <entry><option>-XNoImpredicativeTypes</option></entry>
834 <entry><option>-XExistentialQuantification</option></entry>
835 <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
836 <entry>dynamic</entry>
837 <entry><option>-XNoExistentialQuantification</option></entry>
840 <entry><option>-XKindSignatures</option></entry>
841 <entry>Enable <link linkend="kinding">kind signatures</link>.</entry>
842 <entry>dynamic</entry>
843 <entry><option>-XNoKindSignatures</option></entry>
846 <entry><option>-XEmptyDataDecls</option></entry>
847 <entry>Enable empty data declarations.</entry>
848 <entry>dynamic</entry>
849 <entry><option>-XNoEmptyDataDecls</option></entry>
852 <entry><option>-XParallelListComp</option></entry>
853 <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.</entry>
854 <entry>dynamic</entry>
855 <entry><option>-XNoParallelListComp</option></entry>
858 <entry><option>-XTransformListComp</option></entry>
859 <entry>Enable <link linkend="generalised-list-comprehensions">transform list comprehensions</link>.</entry>
860 <entry>dynamic</entry>
861 <entry><option>-XNoTransformListComp</option></entry>
864 <entry><option>-XUnliftedFFITypes</option></entry>
865 <entry>Enable unlifted FFI types.</entry>
866 <entry>dynamic</entry>
867 <entry><option>-XNoUnliftedFFITypes</option></entry>
870 <entry><option>-XLiberalTypeSynonyms</option></entry>
871 <entry>Enable <link linkend="type-synonyms">liberalised type synonyms</link>.</entry>
872 <entry>dynamic</entry>
873 <entry><option>-XNoLiberalTypeSynonyms</option></entry>
876 <entry><option>-XTypeOperators</option></entry>
877 <entry>Enable type operators.</entry>
878 <entry>dynamic</entry>
879 <entry><option>-XNoTypeOperators</option></entry>
882 <entry><option>-XRecursiveDo</option></entry>
883 <entry>Enable <link linkend="mdo-notation">recursive do (mdo) notation</link>.</entry>
884 <entry>dynamic</entry>
885 <entry><option>-XNoRecursiveDo</option></entry>
888 <entry><option>-XPArr</option></entry>
889 <entry>Enable parallel arrays.</entry>
890 <entry>dynamic</entry>
891 <entry><option>-XNoPArr</option></entry>
894 <entry><option>-XRecordWildCards</option></entry>
895 <entry>Enable <link linkend="record-wildcards">record wildcards</link>.</entry>
896 <entry>dynamic</entry>
897 <entry><option>-XNoRecordWildCards</option></entry>
900 <entry><option>-XNamedFieldPuns</option></entry>
901 <entry>Enable <link linkend="record-puns">record puns</link>.</entry>
902 <entry>dynamic</entry>
903 <entry><option>-XNoNamedFieldPuns</option></entry>
906 <entry><option>-XDisambiguateRecordFields</option></entry>
907 <entry>Enable <link linkend="disambiguate-fields">record field disambiguation</link>. </entry>
908 <entry>dynamic</entry>
909 <entry><option>-XNoDisambiguateRecordFields</option></entry>
912 <entry><option>-XUnboxedTuples</option></entry>
913 <entry>Enable <link linkend="unboxed-tuples">unboxed tuples</link>.</entry>
914 <entry>dynamic</entry>
915 <entry><option>-XNoUnboxedTuples</option></entry>
918 <entry><option>-XStandaloneDeriving</option></entry>
919 <entry>Enable <link linkend="stand-alone-deriving">standalone deriving</link>.</entry>
920 <entry>dynamic</entry>
921 <entry><option>-XNoStandaloneDeriving</option></entry>
924 <entry><option>-XDeriveDataTypeable</option></entry>
925 <entry>Enable <link linkend="deriving-typeable">deriving for the Data and Typeable classes</link>.</entry>
926 <entry>dynamic</entry>
927 <entry><option>-XNoDeriveDataTypeable</option></entry>
930 <entry><option>-XGeneralizedNewtypeDeriving</option></entry>
931 <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
932 <entry>dynamic</entry>
933 <entry><option>-XNoGeneralizedNewtypeDeriving</option></entry>
936 <entry><option>-XTypeSynonymInstances</option></entry>
937 <entry>Enable <link linkend="flexible-instance-head">type synonyms in instance heads</link>.</entry>
938 <entry>dynamic</entry>
939 <entry><option>-XNoTypeSynonymInstances</option></entry>
942 <entry><option>-XFlexibleContexts</option></entry>
943 <entry>Enable <link linkend="flexible-contexts">flexible contexts</link>.</entry>
944 <entry>dynamic</entry>
945 <entry><option>-XNoFlexibleContexts</option></entry>
948 <entry><option>-XFlexibleInstances</option></entry>
949 <entry>Enable <link linkend="instance-rules">flexible instances</link>.</entry>
950 <entry>dynamic</entry>
951 <entry><option>-XNoFlexibleInstances</option></entry>
954 <entry><option>-XConstrainedClassMethods</option></entry>
955 <entry>Enable <link linkend="class-method-types">constrained class methods</link>.</entry>
956 <entry>dynamic</entry>
957 <entry><option>-XNoConstrainedClassMethods</option></entry>
960 <entry><option>-XMultiParamTypeClasses</option></entry>
961 <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.</entry>
962 <entry>dynamic</entry>
963 <entry><option>-XNoMultiParamTypeClasses</option></entry>
966 <entry><option>-XFunctionalDependencies</option></entry>
967 <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.</entry>
968 <entry>dynamic</entry>
969 <entry><option>-XNoFunctionalDependencies</option></entry>
972 <entry><option>-XPackageImports</option></entry>
973 <entry>Enable <link linkend="package-imports">package-qualified imports</link>.</entry>
974 <entry>dynamic</entry>
975 <entry><option>-XNoPackageImports</option></entry>
983 <title>Warnings</title>
985 <para><xref linkend="options-sanity"/></para>
988 <tgroup cols="4" align="left" colsep="1" rowsep="1">
992 <entry>Description</entry>
993 <entry>Static/Dynamic</entry>
994 <entry>Reverse</entry>
999 <entry><option>-W</option></entry>
1000 <entry>enable normal warnings</entry>
1001 <entry>dynamic</entry>
1002 <entry><option>-w</option></entry>
1005 <entry><option>-w</option></entry>
1006 <entry>disable all warnings</entry>
1007 <entry>dynamic</entry>
1011 <entry><option>-Wall</option></entry>
1012 <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
1013 <entry>dynamic</entry>
1014 <entry><option>-w</option></entry>
1017 <entry><option>-Werror</option></entry>
1018 <entry>make warnings fatal</entry>
1019 <entry>dynamic</entry>
1020 <entry>-Wwarn</entry>
1023 <entry><option>-Wwarn</option></entry>
1024 <entry>make warnings non-fatal</entry>
1025 <entry>dynamic</entry>
1026 <entry>-Werror</entry>
1030 <entry><option>-fwarn-warnings-deprecations</option></entry>
1031 <entry>warn about uses of functions & types that have warnings or deprecated pragmas</entry>
1032 <entry>dynamic</entry>
1033 <entry><option>-fno-warn-warnings-deprecations</option></entry>
1037 <entry><option>-fwarn-deprecated-flags</option></entry>
1038 <entry>warn about uses of commandline flags that are deprecated</entry>
1039 <entry>dynamic</entry>
1040 <entry><option>-fno-warn-deprecated-flags</option></entry>
1044 <entry><option>-fwarn-duplicate-exports</option></entry>
1045 <entry>warn when an entity is exported multiple times</entry>
1046 <entry>dynamic</entry>
1047 <entry><option>-fno-warn-duplicate-exports</option></entry>
1051 <entry><option>-fwarn-hi-shadowing</option></entry>
1052 <entry>warn when a <literal>.hi</literal> file in the
1053 current directory shadows a library</entry>
1054 <entry>dynamic</entry>
1055 <entry><option>-fno-warn-hi-shadowing</option></entry>
1059 <entry><option>-fwarn-implicit-prelude</option></entry>
1060 <entry>warn when the Prelude is implicitly imported</entry>
1061 <entry>dynamic</entry>
1062 <entry><option>-fno-warn-implicit-prelude</option></entry>
1066 <entry><option>-fwarn-incomplete-patterns</option></entry>
1067 <entry>warn when a pattern match could fail</entry>
1068 <entry>dynamic</entry>
1069 <entry><option>-fno-warn-incomplete-patterns</option></entry>
1073 <entry><option>-fwarn-incomplete-record-updates</option></entry>
1074 <entry>warn when a record update could fail</entry>
1075 <entry>dynamic</entry>
1076 <entry><option>-fno-warn-incomplete-record-updates</option></entry>
1080 <entry><option>-fwarn-missing-fields</option></entry>
1081 <entry>warn when fields of a record are uninitialised</entry>
1082 <entry>dynamic</entry>
1083 <entry><option>-fno-warn-missing-fields</option></entry>
1087 <entry><option>-fwarn-missing-methods</option></entry>
1088 <entry>warn when class methods are undefined</entry>
1089 <entry>dynamic</entry>
1090 <entry><option>-fno-warn-missing-methods</option></entry>
1094 <entry><option>-fwarn-missing-signatures</option></entry>
1095 <entry>warn about top-level functions without signatures</entry>
1096 <entry>dynamic</entry>
1097 <entry><option>-fno-warn-missing-signatures</option></entry>
1101 <entry><option>-fwarn-name-shadowing</option></entry>
1102 <entry>warn when names are shadowed</entry>
1103 <entry>dynamic</entry>
1104 <entry><option>-fno-warn-name-shadowing</option></entry>
1108 <entry><option>-fwarn-orphans</option></entry>
1109 <entry>warn when the module contains <link linkend="orphan-modules">orphan instance declarations
1110 or rewrite rules</link></entry>
1111 <entry>dynamic</entry>
1112 <entry><option>-fno-warn-orphans</option></entry>
1116 <entry><option>-fwarn-overlapping-patterns</option></entry>
1117 <entry>warn about overlapping patterns</entry>
1118 <entry>dynamic</entry>
1119 <entry><option>-fno-warn-overlapping-patterns</option></entry>
1123 <entry><option>-fwarn-simple-patterns</option></entry>
1124 <entry>warn about lambda-patterns that can fail</entry>
1125 <entry>dynamic</entry>
1126 <entry><option>-fno-warn-simple-patterns</option></entry>
1130 <entry><option>-fwarn-tabs</option></entry>
1131 <entry>warn if there are tabs in the source file</entry>
1132 <entry>dynamic</entry>
1133 <entry><option>-fno-warn-tabs</option></entry>
1137 <entry><option>-fwarn-type-defaults</option></entry>
1138 <entry>warn when defaulting happens</entry>
1139 <entry>dynamic</entry>
1140 <entry><option>-fno-warn-type-defaults</option></entry>
1144 <entry><option>-fwarn-monomorphism-restriction</option></entry>
1145 <entry>warn when the Monomorphism Restriction is applied</entry>
1146 <entry>dynamic</entry>
1147 <entry><option>-fno-warn-monomorphism-restriction</option></entry>
1151 <entry><option>-fwarn-unused-binds</option></entry>
1152 <entry>warn about bindings that are unused</entry>
1153 <entry>dynamic</entry>
1154 <entry><option>-fno-warn-unused-binds</option></entry>
1158 <entry><option>-fwarn-unused-imports</option></entry>
1159 <entry>warn about unnecessary imports</entry>
1160 <entry>dynamic</entry>
1161 <entry><option>-fno-warn-unused-imports</option></entry>
1165 <entry><option>-fwarn-unused-matches</option></entry>
1166 <entry>warn about variables in patterns that aren't used</entry>
1167 <entry>dynamic</entry>
1168 <entry><option>-fno-warn-unused-matches</option></entry>
1177 <title>Optimisation levels</title>
1179 <para><xref linkend="options-optimise"/></para>
1182 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1186 <entry>Description</entry>
1187 <entry>Static/Dynamic</entry>
1188 <entry>Reverse</entry>
1193 <entry><option>-O</option></entry>
1194 <entry>Enable default optimisation (level 1)</entry>
1195 <entry>dynamic</entry>
1196 <entry><option>-O0</option></entry>
1199 <entry><option>-O</option><replaceable>n</replaceable></entry>
1200 <entry>Set optimisation level <replaceable>n</replaceable></entry>
1201 <entry>dynamic</entry>
1202 <entry><option>-O0</option></entry>
1210 <title>Individual optimisations</title>
1212 <para><xref linkend="options-f"/></para>
1215 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1219 <entry>Description</entry>
1220 <entry>Static/Dynamic</entry>
1221 <entry>Reverse</entry>
1226 <entry><option>-fcase-merge</option></entry>
1227 <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
1228 <entry>dynamic</entry>
1229 <entry><option>-fno-case-merge</option></entry>
1233 <entry><option>-fdicts-strict</option></entry>
1234 <entry>Make dictionaries strict</entry>
1235 <entry>static</entry>
1236 <entry><option>-fno-dicts-strict</option></entry>
1240 <entry><option>-fmethod-sharing</option></entry>
1241 <entry>Share specialisations of overloaded functions (default)</entry>
1242 <entry>dynamic</entry>
1243 <entry><option>-fno-method-sharing</option></entry>
1247 <entry><option>-fdo-eta-reduction</option></entry>
1248 <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
1249 <entry>dynamic</entry>
1250 <entry><option>-fno-do-eta-reduction</option></entry>
1254 <entry><option>-fdo-lambda-eta-expansion</option></entry>
1255 <entry>Enable lambda eta-reduction</entry>
1256 <entry>dynamic</entry>
1257 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
1261 <entry><option>-fexcess-precision</option></entry>
1262 <entry>Enable excess intermediate precision</entry>
1263 <entry>dynamic</entry>
1264 <entry><option>-fno-excess-precision</option></entry>
1268 <entry><option>-fignore-asserts</option></entry>
1269 <entry>Ignore assertions in the source</entry>
1270 <entry>dynamic</entry>
1271 <entry><option>-fno-ignore-asserts</option></entry>
1275 <entry><option>-fignore-interface-pragmas</option></entry>
1276 <entry>Ignore pragmas in interface files</entry>
1277 <entry>dynamic</entry>
1278 <entry><option>-fno-ignore-interface-pragmas</option></entry>
1282 <entry><option>-fomit-interface-pragmas</option></entry>
1283 <entry>Don't generate interface pragmas</entry>
1284 <entry>dynamic</entry>
1285 <entry><option>-fno-omit-interface-pragmas</option></entry>
1289 <entry><option>-fmax-worker-args</option></entry>
1290 <entry>If a worker has that many arguments, none will be
1291 unpacked anymore (default: 10)</entry>
1292 <entry>static</entry>
1297 <entry><option>-fsimplifier-phases</option></entry>
1298 <entry>Set the number of phases for the simplifier (default 2).
1299 Ignored with <option>-O0</option>.</entry>
1300 <entry>dynamic</entry>
1305 <entry><option>-fmax-simplifier-iterations</option></entry>
1306 <entry>Set the max iterations for the simplifier</entry>
1307 <entry>dynamic</entry>
1312 <entry><option>-fno-state-hack</option></entry>
1313 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1314 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
1315 <entry>static</entry>
1320 <entry><option>-fcse</option></entry>
1321 <entry>Turn on common sub-expression elimination. Implied by <option>-O</option>.</entry>
1322 <entry>dynamic</entry>
1323 <entry>-fno-cse</entry>
1327 <entry><option>-ffull-laziness</option></entry>
1328 <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
1329 <entry>dynamic</entry>
1330 <entry>-fno-full-laziness</entry>
1334 <entry><option>-frewrite-rules</option></entry>
1335 <entry>Switch on all rewrite rules (including rules
1336 generated by automatic specialisation of overloaded functions).
1337 Implied by <option>-O</option>. </entry>
1338 <entry>dynamic</entry>
1339 <entry><option>-fno-rewrite-rules</option></entry>
1343 <entry><option>-fstrictness</option></entry>
1344 <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1345 <entry>dynamic</entry>
1346 <entry>-fno-strictness</entry>
1350 <entry><option>-fspec-constr</option></entry>
1351 <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1352 <entry>dynamic</entry>
1353 <entry>-fno-spec-constr</entry>
1357 <entry><option>-fspec-constr-threshold</option>=<replaceable>n</replaceable></entry>
1358 <entry>Set the size threshold for the SpecConstr transformation to <replaceable>n</replaceable> (default: 200)</entry>
1359 <entry>static</entry>
1360 <entry><option>-fno-spec-constr-threshold</option></entry>
1364 <entry><option>-fspec-constr-count</option>=<replaceable>n</replaceable></entry>
1365 <entry>Set to <replaceable>n</replaceable> (default: 3) the maximum number of
1366 specialisations that will be created for any one function
1367 by the SpecConstr transformation</entry>
1368 <entry>static</entry>
1369 <entry><option>-fno-spec-constr-count</option></entry>
1373 <entry><option>-fliberate-case</option></entry>
1374 <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
1375 <entry>dynamic</entry>
1376 <entry>-fno-liberate-case</entry>
1380 <entry><option>-fstatic-argument-transformation</option></entry>
1381 <entry>Turn on the static argument transformation. Implied by <option>-O2</option>.</entry>
1382 <entry>dynamic</entry>
1383 <entry>-fno-static-argument-transformation</entry>
1387 <entry><option>-fliberate-case-threshold</option>=<replaceable>n</replaceable></entry>
1388 <entry>Set the size threshold for the liberate-case transformation to <replaceable>n</replaceable> (default: 200)</entry>
1389 <entry>static</entry>
1390 <entry><option>-fno-liberate-case-threshold</option></entry>
1394 <entry><option>-funbox-strict-fields</option></entry>
1395 <entry>Flatten strict constructor fields</entry>
1396 <entry>dynamic</entry>
1397 <entry><option>-fno-unbox-strict-fields</option></entry>
1401 <entry><option>-funfolding-creation-threshold</option></entry>
1402 <entry>Tweak unfolding settings</entry>
1403 <entry>static</entry>
1404 <entry><option>-fno-unfolding-creation-threshold</option></entry>
1408 <entry><option>-funfolding-fun-discount</option></entry>
1409 <entry>Tweak unfolding settings</entry>
1410 <entry>static</entry>
1411 <entry><option>-fno-unfolding-fun-discount</option></entry>
1415 <entry><option>-funfolding-keeness-factor</option></entry>
1416 <entry>Tweak unfolding settings</entry>
1417 <entry>static</entry>
1418 <entry><option>-fno-unfolding-keeness-factor</option></entry>
1422 <entry><option>-funfolding-use-threshold</option></entry>
1423 <entry>Tweak unfolding settings</entry>
1424 <entry>static</entry>
1425 <entry><option>-fno-unfolding-use-threshold</option></entry>
1429 <entry><option>-fno-pre-inlining</option></entry>
1430 <entry>Turn off pre-inlining</entry>
1431 <entry>static</entry>
1436 <entry><option>-feager-blackholing</option></entry>
1437 <entry>Turn on <link linkend="parallel-compile-options">eager blackholing</link></entry>
1438 <entry>dynamic</entry>
1447 <title>Profiling options</title>
1449 <para><xref linkend="profiling"/></para>
1452 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1456 <entry>Description</entry>
1457 <entry>Static/Dynamic</entry>
1458 <entry>Reverse</entry>
1463 <entry><option>-auto</option></entry>
1464 <entry>Auto-add <literal>_scc_</literal>s to all
1465 exported functions</entry>
1466 <entry>dynamic</entry>
1467 <entry><option>-no-auto</option></entry>
1470 <entry><option>-auto-all</option></entry>
1471 <entry>Auto-add <literal>_scc_</literal>s to all
1472 top-level functions</entry>
1473 <entry>dynamic</entry>
1474 <entry><option>-no-auto-all</option></entry>
1477 <entry><option>-caf-all</option></entry>
1478 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1479 <entry>dynamic</entry>
1480 <entry><option>-no-caf-all</option></entry>
1483 <entry><option>-prof</option></entry>
1484 <entry>Turn on profiling</entry>
1485 <entry>static</entry>
1489 <entry><option>-ticky</option></entry>
1490 <entry>Turn on ticky-ticky profiling</entry>
1491 <entry>static</entry>
1500 <title>Program coverage options</title>
1502 <para><xref linkend="hpc"/></para>
1505 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1509 <entry>Description</entry>
1510 <entry>Static/Dynamic</entry>
1511 <entry>Reverse</entry>
1516 <entry><option>-fhpc</option></entry>
1517 <entry>Turn on Haskell program coverage instrumentation</entry>
1518 <entry>static</entry>
1519 <entry><option>-</option></entry>
1522 <entry><option>-hpcdir dir</option></entry>
1523 <entry>Directory to deposit .mix files during compilation (default is .hpc)</entry>
1524 <entry>dynamic</entry>
1525 <entry><option>-</option></entry>
1533 <title>Haskell pre-processor options</title>
1535 <para><xref linkend="pre-processor"/></para>
1538 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1542 <entry>Description</entry>
1543 <entry>Static/Dynamic</entry>
1544 <entry>Reverse</entry>
1549 <entry><option>-F</option></entry>
1551 Enable the use of a pre-processor
1552 (set with <option>-pgmF</option>)
1554 <entry>dynamic</entry>
1563 <title>C pre-processor options</title>
1565 <para><xref linkend="c-pre-processor"/></para>
1568 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1572 <entry>Description</entry>
1573 <entry>Static/Dynamic</entry>
1574 <entry>Reverse</entry>
1579 <entry><option>-cpp</option></entry>
1580 <entry>Run the C pre-processor on Haskell source files</entry>
1581 <entry>dynamic</entry>
1585 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1586 <entry>Define a symbol in the C pre-processor</entry>
1587 <entry>dynamic</entry>
1588 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1591 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1592 <entry>Undefine a symbol in the C pre-processor</entry>
1593 <entry>dynamic</entry>
1597 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1598 <entry>Add <replaceable>dir</replaceable> to the
1599 directory search list for <literal>#include</literal> files</entry>
1600 <entry>dynamic</entry>
1609 <title>C compiler options</title>
1611 <para><xref linkend="options-C-compiler"/></para>
1613 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1617 <entry>Description</entry>
1618 <entry>Static/Dynamic</entry>
1619 <entry>Reverse</entry>
1624 <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1625 <entry>Include <replaceable>file</replaceable> when
1626 compiling the <filename>.hc</filename> file</entry>
1627 <entry>dynamic</entry>
1636 <title>Code generation options</title>
1638 <para><xref linkend="options-codegen"/></para>
1641 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1645 <entry>Description</entry>
1646 <entry>Static/Dynamic</entry>
1647 <entry>Reverse</entry>
1652 <entry><option>-fasm</option></entry>
1653 <entry>Use the native code generator</entry>
1654 <entry>dynamic</entry>
1655 <entry>-fvia-C</entry>
1658 <entry><option>-fvia-C</option></entry>
1659 <entry>Compile via C</entry>
1660 <entry>dynamic</entry>
1661 <entry>-fasm</entry>
1664 <entry><option>-fno-code</option></entry>
1665 <entry>Omit code generation</entry>
1666 <entry>dynamic</entry>
1670 <entry><option>-fbyte-code</option></entry>
1671 <entry>Generate byte-code</entry>
1672 <entry>dynamic</entry>
1676 <entry><option>-fobject-code</option></entry>
1677 <entry>Generate object code</entry>
1678 <entry>dynamic</entry>
1687 <title>Linking options</title>
1689 <para><xref linkend="options-linker"/></para>
1692 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1696 <entry>Description</entry>
1697 <entry>Static/Dynamic</entry>
1698 <entry>Reverse</entry>
1703 <entry><option>-fPIC</option></entry>
1704 <entry>Generate position-independent code (where available)</entry>
1705 <entry>static</entry>
1709 <entry><option>-dynamic</option></entry>
1710 <entry>Use dynamic Haskell libraries (if available)</entry>
1711 <entry>static</entry>
1715 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1716 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1717 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1718 <entry>dynamic</entry>
1722 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1723 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1724 directories searched for frameworks.
1725 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1726 <entry>dynamic</entry>
1730 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1731 <entry>Link in library <replaceable>lib</replaceable></entry>
1732 <entry>dynamic</entry>
1736 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1737 <entry>Add <replaceable>dir</replaceable> to the list of
1738 directories searched for libraries</entry>
1739 <entry>dynamic</entry>
1743 <entry><option>-main-is</option></entry>
1744 <entry>Set main module and function</entry>
1745 <entry>dynamic</entry>
1749 <entry><option>--mk-dll</option></entry>
1750 <entry>DLL-creation mode (Windows only)</entry>
1751 <entry>dynamic</entry>
1755 <entry><option>-no-hs-main</option></entry>
1756 <entry>Don't assume this program contains <literal>main</literal></entry>
1757 <entry>dynamic</entry>
1761 <entry><option>-no-link</option></entry>
1762 <entry>Omit linking</entry>
1763 <entry>dynamic</entry>
1767 <entry><option>-split-objs</option></entry>
1768 <entry>Split objects (for libraries)</entry>
1769 <entry>dynamic</entry>
1773 <entry><option>-static</option></entry>
1774 <entry>Use static Haskell libraries</entry>
1775 <entry>static</entry>
1779 <entry><option>-threaded</option></entry>
1780 <entry>Use the threaded runtime</entry>
1781 <entry>static</entry>
1785 <entry><option>-debug</option></entry>
1786 <entry>Use the debugging runtime</entry>
1787 <entry>static</entry>
1791 <entry><option>-fno-gen-manifest</option></entry>
1792 <entry>Do not generate a manifest file (Windows only)</entry>
1793 <entry>dynamic</entry>
1797 <entry><option>-fno-embed-manifest</option></entry>
1798 <entry>Do not embed the manifest in the executable (Windows only)</entry>
1799 <entry>dynamic</entry>
1808 <title>Replacing phases</title>
1810 <para><xref linkend="replacing-phases"/></para>
1813 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1817 <entry>Description</entry>
1818 <entry>Static/Dynamic</entry>
1819 <entry>Reverse</entry>
1824 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1825 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1826 <entry>dynamic</entry>
1830 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1831 <entry>Use <replaceable>cmd</replaceable> as the C
1832 pre-processor (with <option>-cpp</option> only)</entry>
1833 <entry>dynamic</entry>
1837 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1838 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1839 <entry>dynamic</entry>
1843 <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1844 <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1845 <entry>dynamic</entry>
1849 <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1850 <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1851 <entry>dynamic</entry>
1855 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1856 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1857 <entry>dynamic</entry>
1861 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1862 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1863 <entry>dynamic</entry>
1867 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1868 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1869 <entry>dynamic</entry>
1873 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1874 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1875 (with <option>-F</option> only)</entry>
1876 <entry>dynamic</entry>
1880 <entry><option>-pgmwindres</option> <replaceable>cmd</replaceable></entry>
1881 <entry>Use <replaceable>cmd</replaceable> as the program for
1882 embedding manifests on Windows.</entry>
1883 <entry>dynamic</entry>
1889 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1890 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1891 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1892 <indexterm><primary><option>-pgma</option></primary></indexterm>
1893 <indexterm><primary><option>-pgml</option></primary></indexterm>
1894 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1895 <indexterm><primary><option>-pgmF</option></primary></indexterm>
1900 <title>Forcing options to particular phases</title>
1902 <para><xref linkend="forcing-options-through"/></para>
1905 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1909 <entry>Description</entry>
1910 <entry>Static/Dynamic</entry>
1911 <entry>Reverse</entry>
1916 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1917 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1918 <entry>dynamic</entry>
1922 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1923 <entry>pass <replaceable>option</replaceable> to cpp (with
1924 <option>-cpp</option> only)</entry>
1925 <entry>dynamic</entry>
1929 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1930 <entry>pass <replaceable>option</replaceable> to the
1931 custom pre-processor</entry>
1932 <entry>dynamic</entry>
1936 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1937 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1938 <entry>dynamic</entry>
1942 <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1943 <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1944 <entry>dynamic</entry>
1948 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1949 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1950 <entry>dynamic</entry>
1954 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1955 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1956 <entry>dynamic</entry>
1960 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1961 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1962 <entry>dynamic</entry>
1966 <entry><option>-optwindres</option> <replaceable>option</replaceable></entry>
1967 <entry>pass <replaceable>option</replaceable> to <literal>windres</literal>.</entry>
1968 <entry>dynamic</entry>
1977 <title>Platform-specific options</title>
1979 <para><xref linkend="options-platform"/></para>
1982 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1986 <entry>Description</entry>
1987 <entry>Static/Dynamic</entry>
1988 <entry>Reverse</entry>
1993 <entry><option>-monly-[432]-regs</option></entry>
1994 <entry>(x86 only) give some registers back to the C compiler</entry>
1995 <entry>dynamic</entry>
2005 <title>External core file options</title>
2007 <para><xref linkend="ext-core"/></para>
2010 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2014 <entry>Description</entry>
2015 <entry>Static/Dynamic</entry>
2016 <entry>Reverse</entry>
2021 <entry><option>-fext-core</option></entry>
2022 <entry>Generate <filename>.hcr</filename> external Core files</entry>
2023 <entry>static</entry>
2033 <title>Compiler debugging options</title>
2035 <para><xref linkend="options-debugging"/></para>
2038 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2042 <entry>Description</entry>
2043 <entry>Static/Dynamic</entry>
2044 <entry>Reverse</entry>
2049 <entry><option>-dcore-lint</option></entry>
2050 <entry>Turn on internal sanity checking</entry>
2051 <entry>dynamic</entry>
2055 <entry><option>-ddump-asm</option></entry>
2056 <entry>Dump assembly</entry>
2057 <entry>dynamic</entry>
2061 <entry><option>-ddump-bcos</option></entry>
2062 <entry>Dump interpreter byte code</entry>
2063 <entry>dynamic</entry>
2067 <entry><option>-ddump-cmm</option></entry>
2068 <entry>Dump C-- output</entry>
2069 <entry>dynamic</entry>
2073 <entry><option>-ddump-cpranal</option></entry>
2074 <entry>Dump output from CPR analysis</entry>
2075 <entry>dynamic</entry>
2079 <entry><option>-ddump-cse</option></entry>
2080 <entry>Dump CSE output</entry>
2081 <entry>dynamic</entry>
2085 <entry><option>-ddump-deriv</option></entry>
2086 <entry>Dump deriving output</entry>
2087 <entry>dynamic</entry>
2091 <entry><option>-ddump-ds</option></entry>
2092 <entry>Dump desugarer output</entry>
2093 <entry>dynamic</entry>
2097 <entry><option>-ddump-flatC</option></entry>
2098 <entry>Dump “flat” C</entry>
2099 <entry>dynamic</entry>
2103 <entry><option>-ddump-foreign</option></entry>
2104 <entry>Dump <literal>foreign export</literal> stubs</entry>
2105 <entry>dynamic</entry>
2109 <entry><option>-ddump-hpc</option></entry>
2110 <entry>Dump after instrumentation for program coverage</entry>
2111 <entry>dynamic</entry>
2115 <entry><option>-ddump-inlinings</option></entry>
2116 <entry>Dump inlining info</entry>
2117 <entry>dynamic</entry>
2121 <entry><option>-ddump-occur-anal</option></entry>
2122 <entry>Dump occurrence analysis output</entry>
2123 <entry>dynamic</entry>
2127 <entry><option>-ddump-opt-cmm</option></entry>
2128 <entry>Dump the results of C-- to C-- optimising passes</entry>
2129 <entry>dynamic</entry>
2133 <entry><option>-ddump-parsed</option></entry>
2134 <entry>Dump parse tree</entry>
2135 <entry>dynamic</entry>
2139 <entry><option>-ddump-prep</option></entry>
2140 <entry>Dump prepared core</entry>
2141 <entry>dynamic</entry>
2145 <entry><option>-ddump-rn</option></entry>
2146 <entry>Dump renamer output</entry>
2147 <entry>dynamic</entry>
2151 <entry><option>-ddump-rules</option></entry>
2152 <entry>Dump rules</entry>
2153 <entry>dynamic</entry>
2157 <entry><option>-ddump-simpl</option></entry>
2158 <entry>Dump final simplifier output</entry>
2159 <entry>dynamic</entry>
2163 <entry><option>-ddump-simpl-phases</option></entry>
2164 <entry>Dump output from each simplifier phase</entry>
2165 <entry>dynamic</entry>
2169 <entry><option>-ddump-simpl-iterations</option></entry>
2170 <entry>Dump output from each simplifier iteration</entry>
2171 <entry>dynamic</entry>
2175 <entry><option>-ddump-spec</option></entry>
2176 <entry>Dump specialiser output</entry>
2177 <entry>dynamic</entry>
2181 <entry><option>-ddump-splices</option></entry>
2182 <entry>Dump TH spliced expressions, and what they evaluate to</entry>
2183 <entry>dynamic</entry>
2187 <entry><option>-ddump-stg</option></entry>
2188 <entry>Dump final STG</entry>
2189 <entry>dynamic</entry>
2193 <entry><option>-ddump-stranal</option></entry>
2194 <entry>Dump strictness analyser output</entry>
2195 <entry>dynamic</entry>
2199 <entry><option>-ddump-tc</option></entry>
2200 <entry>Dump typechecker output</entry>
2201 <entry>dynamic</entry>
2205 <entry><option>-ddump-types</option></entry>
2206 <entry>Dump type signatures</entry>
2207 <entry>dynamic</entry>
2211 <entry><option>-ddump-worker-wrapper</option></entry>
2212 <entry>Dump worker-wrapper output</entry>
2213 <entry>dynamic</entry>
2217 <entry><option>-ddump-if-trace</option></entry>
2218 <entry>Trace interface files</entry>
2219 <entry>dynamic</entry>
2223 <entry><option>-ddump-tc-trace</option></entry>
2224 <entry>Trace typechecker</entry>
2225 <entry>dynamic</entry>
2229 <entry><option>-ddump-rn-trace</option></entry>
2230 <entry>Trace renamer</entry>
2231 <entry>dynamic</entry>
2235 <entry><option>-ddump-rn-stats</option></entry>
2236 <entry>Renamer stats</entry>
2237 <entry>dynamic</entry>
2241 <entry><option>-ddump-simpl-stats</option></entry>
2242 <entry>Dump simplifier stats</entry>
2243 <entry>dynamic</entry>
2247 <entry><option>-dno-debug-output</option></entry>
2248 <entry>Suppress unsolicited debugging output</entry>
2249 <entry>static</entry>
2253 <entry><option>-dppr-debug</option></entry>
2254 <entry>Turn on debug printing (more verbose)</entry>
2255 <entry>static</entry>
2259 <entry><option>-dsuppress-uniques</option></entry>
2260 <entry>Suppress the printing of uniques in debug output (easier to use <command>diff</command>.</entry>
2261 <entry>static</entry>
2265 <entry><option>-dppr-noprags</option></entry>
2266 <entry>Don't output pragma info in dumps</entry>
2267 <entry>static</entry>
2271 <entry><option>-dppr-user-length</option></entry>
2272 <entry>Set the depth for printing expressions in error msgs</entry>
2273 <entry>static</entry>
2277 <entry><option>-dsource-stats</option></entry>
2278 <entry>Dump haskell source stats</entry>
2279 <entry>dynamic</entry>
2283 <entry><option>-dcmm-lint</option></entry>
2284 <entry>C-- pass sanity checking</entry>
2285 <entry>dynamic</entry>
2289 <entry><option>-dstg-lint</option></entry>
2290 <entry>STG pass sanity checking</entry>
2291 <entry>dynamic</entry>
2295 <entry><option>-dstg-stats</option></entry>
2296 <entry>Dump STG stats</entry>
2297 <entry>dynamic</entry>
2301 <entry><option>-dverbose-core2core</option></entry>
2302 <entry>Show output from each core-to-core pass</entry>
2303 <entry>dynamic</entry>
2307 <entry><option>-dverbose-stg2stg</option></entry>
2308 <entry>Show output from each STG-to-STG pass</entry>
2309 <entry>dynamic</entry>
2313 <entry><option>-dshow-passes</option></entry>
2314 <entry>Print out each pass name as it happens</entry>
2315 <entry>dynamic</entry>
2319 <entry><option>-dfaststring-stats</option></entry>
2320 <entry>Show statistics for fast string usage when finished</entry>
2321 <entry>dynamic</entry>
2330 <title>Misc compiler options</title>
2333 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2337 <entry>Description</entry>
2338 <entry>Static/Dynamic</entry>
2339 <entry>Reverse</entry>
2344 <entry><option>-fno-hi-version-check</option></entry>
2345 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
2346 <entry>static</entry>
2350 <entry><option>-dno-black-holing</option></entry>
2351 <entry>Turn off black holing (probably doesn't work)</entry>
2352 <entry>static</entry>
2356 <entry><option>-fhistory-size</option></entry>
2357 <entry>Set simplification history size</entry>
2358 <entry>static</entry>
2362 <entry><option>-funregisterised</option></entry>
2363 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
2364 <entry>static</entry>
2368 <entry><option>-fno-asm-mangling</option></entry>
2369 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
2370 <entry>dynamic</entry>
2384 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
2390 ;;; Local Variables: ***
2392 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***