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 output directory</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>
285 <title>Keeping intermediate files</title>
287 <para><xref linkend="keeping-intermediates"/></para>
290 <tgroup cols="4" align="left" colsep="1" rowsep="1">
294 <entry>Description</entry>
295 <entry>Static/Dynamic</entry>
296 <entry>Reverse</entry>
301 <entry><option>-keep-hc-file</option> or
302 <option>-keep-hc-files</option></entry>
303 <entry>retain intermediate <literal>.hc</literal> files</entry>
304 <entry>dynamic</entry>
308 <entry><option>-keep-s-file</option> or
309 <option>-keep-s-files</option></entry>
310 <entry>retain intermediate <literal>.s</literal> files</entry>
311 <entry>dynamic</entry>
315 <entry><option>-keep-raw-s-file</option> or
316 <option>-keep-raw-s-files</option></entry>
317 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
318 <entry>dynamic</entry>
322 <entry><option>-keep-tmp-files</option></entry>
323 <entry>retain all intermediate temporary files</entry>
324 <entry>dynamic</entry>
333 <title>Temporary files</title>
335 <para><xref linkend="temp-files"/></para>
338 <tgroup cols="4" align="left" colsep="1" rowsep="1">
342 <entry>Description</entry>
343 <entry>Static/Dynamic</entry>
344 <entry>Reverse</entry>
349 <entry><option>-tmpdir</option></entry>
350 <entry>set the directory for temporary files</entry>
351 <entry>dynamic</entry>
360 <title>Finding imports</title>
362 <para><xref linkend="search-path"/></para>
365 <tgroup cols="4" align="left" colsep="1" rowsep="1">
370 <entry>Description</entry>
371 <entry>Static/Dynamic</entry>
372 <entry>Reverse</entry>
377 <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
378 <entry>add <replaceable>dir</replaceable>,
379 <replaceable>dir2</replaceable>, etc. to import path</entry>
380 <entry>static/<literal>:set</literal></entry>
384 <entry><option>-i</option></entry>
385 <entry>Empty the import directory list</entry>
386 <entry>static/<literal>:set</literal></entry>
395 <title>Interface file options</title>
397 <para><xref linkend="hi-options"/></para>
400 <tgroup cols="4" align="left" colsep="1" rowsep="1">
405 <entry>Description</entry>
406 <entry>Static/Dynamic</entry>
407 <entry>Reverse</entry>
412 <entry><option>-ddump-hi</option></entry>
413 <entry>Dump the new interface to stdout</entry>
414 <entry>dynamic</entry>
418 <entry><option>-ddump-hi-diffs</option></entry>
419 <entry>Show the differences vs. the old interface</entry>
420 <entry>dynamic</entry>
424 <entry><option>-ddump-minimal-imports</option></entry>
425 <entry>Dump a minimal set of imports</entry>
426 <entry>dynamic</entry>
430 <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
431 <entry>See <xref linkend="modes"/>.</entry>
439 <title>Recompilation checking</title>
441 <para><xref linkend="recomp"/></para>
444 <tgroup cols="4" align="left" colsep="1" rowsep="1">
449 <entry>Description</entry>
450 <entry>Static/Dynamic</entry>
451 <entry>Reverse</entry>
456 <entry><option>-fforce-recomp</option></entry>
457 <entry>Turn off recompilation checking; implied by any
458 <option>-ddump-X</option> option</entry>
459 <entry>dynamic</entry>
460 <entry><option>-fno-force-recomp</option></entry>
467 <sect2 id="interactive-mode-options">
468 <title>Interactive-mode options</title>
470 <para><xref linkend="ghci-dot-files"/></para>
473 <tgroup cols="4" align="left" colsep="1" rowsep="1">
477 <entry>Description</entry>
478 <entry>Static/Dynamic</entry>
479 <entry>Reverse</entry>
484 <entry><option>-ignore-dot-ghci</option></entry>
485 <entry>Disable reading of <filename>.ghci</filename> files</entry>
486 <entry>static</entry>
490 <entry><option>-read-dot-ghci</option></entry>
491 <entry>Enable reading of <filename>.ghci</filename> files</entry>
492 <entry>static</entry>
496 <entry><option>-fbreak-on-exception</option></entry>
497 <entry><link linkend="ghci-debugger-exceptions">Break on any exception thrown</link></entry>
498 <entry>dynamic</entry>
499 <entry><option>-fno-break-on-exception</option></entry>
502 <entry><option>-fbreak-on-error</option></entry>
503 <entry><link linkend="ghci-debugger-exceptions">Break on uncaught exceptions and errors</link></entry>
504 <entry>dynamic</entry>
505 <entry><option>-fno-break-on-error</option></entry>
508 <entry><option>-fprint-evld-with-show</option></entry>
509 <entry><link linkend="breakpoints">Enable usage of Show instances in <literal>:print</literal></link></entry>
510 <entry>dynamic</entry>
511 <entry><option>-fno-print-evld-with-show</option></entry>
514 <entry><option>-fprint-bind-result</option></entry>
515 <entry><link linkend="ghci-stmts">Turn on printing of binding results in GHCi</link></entry>
516 <entry>dynamic</entry>
517 <entry><option>-fno-print-bind-result</option></entry>
520 <entry><option>-fno-print-bind-contents</option></entry>
521 <entry><link linkend="breakpoints">Turn off printing of binding contents in GHCi</link></entry>
522 <entry>dynamic</entry>
532 <title>Packages</title>
534 <para><xref linkend="packages"/></para>
537 <tgroup cols="4" align="left" colsep="1" rowsep="1">
541 <entry>Description</entry>
542 <entry>Static/Dynamic</entry>
543 <entry>Reverse</entry>
548 <entry><option>-package-name</option> <replaceable>P</replaceable></entry>
549 <entry>Compile to be part of package <replaceable>P</replaceable></entry>
550 <entry>dynamic</entry>
554 <entry><option>-package</option> <replaceable>P</replaceable></entry>
555 <entry>Expose package <replaceable>P</replaceable></entry>
556 <entry>static/<literal>:set</literal></entry>
560 <entry><option>-hide-all-packages</option></entry>
561 <entry>Hide all packages by default</entry>
562 <entry>static</entry>
566 <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
567 <entry>Hide package <replaceable>P</replaceable></entry>
568 <entry>static/<literal>:set</literal></entry>
572 <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
573 <entry>Ignore package <replaceable>P</replaceable></entry>
574 <entry>static/<literal>:set</literal></entry>
578 <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
579 <entry>Load more packages from <replaceable>file</replaceable></entry>
580 <entry>static</entry>
584 <entry><option>-no-user-package-conf</option></entry>
585 <entry>Don't load the user's package config file.</entry>
586 <entry>static</entry>
595 <title>Language options</title>
597 <para><xref linkend="options-language"/></para>
600 <tgroup cols="4" align="left" colsep="1" rowsep="1">
604 <entry>Description</entry>
605 <entry>Static/Dynamic</entry>
606 <entry>Reverse</entry>
611 <entry><option>-fglasgow-exts</option></entry>
612 <entry>Enable most language extensions</entry>
613 <entry>dynamic</entry>
614 <entry><option>-fno-glasgow-exts</option></entry>
617 <entry><option>-XOverlappingInstances</option></entry>
618 <entry>Enable <link linkend="instance-overlap">overlapping instances</link></entry>
619 <entry>dynamic</entry>
620 <entry><option>-XNoOverlappingInstances</option></entry>
623 <entry><option>-XIncoherentInstances</option></entry>
624 <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
625 Implies <option>-XOverlappingInstances</option> </entry>
626 <entry>dynamic</entry>
627 <entry><option>-XNoIncoherentInstances</option></entry>
630 <entry><option>-XUndecidableInstances</option></entry>
631 <entry>Enable <link linkend="undecidable-instances">undecidable instances</link></entry>
632 <entry>dynamic</entry>
633 <entry><option>-XNoUndecidableInstances</option></entry>
636 <entry><option>-fcontext-stack=N</option><replaceable>n</replaceable></entry>
637 <entry>set the <link linkend="undecidable-instances">limit for context reduction</link>. Default is 20.</entry>
638 <entry>dynamic</entry>
642 <entry><option>-XArrows</option></entry>
643 <entry>Enable <link linkend="arrow-notation">arrow
644 notation</link> extension</entry>
645 <entry>dynamic</entry>
646 <entry><option>-XNoArrows</option></entry>
649 <entry><option>-fdisambiguate-record-fields</option></entry>
650 <entry>Enable <link linkend="disambiguate-fields">record
651 field disambiguation</link></entry>
652 <entry>dynamic</entry>
653 <entry><option>-fno-disambiguate-record-fields</option></entry>
656 <entry><option>-XForeignFunctionInterface</option></entry>
657 <entry>Enable <link linkend="ffi">foreign function interface</link> (implied by
658 <option>-fglasgow-exts</option>)</entry>
659 <entry>dynamic</entry>
660 <entry><option>-XNoForeignFunctionInterface</option></entry>
663 <entry><option>-XGenerics</option></entry>
664 <entry>Enable <link linkend="generic-classes">generic classes</link></entry>
665 <entry>dynamic</entry>
666 <entry><option>-XNoGenerics</option></entry>
669 <entry><option>-XImplicitParams</option></entry>
670 <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
671 Implied by <option>-fglasgow-exts</option>.</entry>
672 <entry>dynamic</entry>
673 <entry><option>-XNoImplicitParams</option></entry>
676 <entry><option>-firrefutable-tuples</option></entry>
677 <entry>Make tuple pattern matching irrefutable</entry>
678 <entry>dynamic</entry>
679 <entry><option>-fno-irrefutable-tuples</option></entry>
682 <entry><option>-XNoImplicitPrelude</option></entry>
683 <entry>Don't implicitly <literal>import Prelude</literal></entry>
684 <entry>dynamic</entry>
685 <entry><option>-XImplicitPrelude</option></entry>
688 <entry><option>-XNoMonomorphismRestriction</option></entry>
689 <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
690 <entry>dynamic</entry>
691 <entry><option>-XMonomorphismRrestriction</option></entry>
694 <entry><option>-XNoMonoPatBinds</option></entry>
695 <entry>Make <link linkend="monomorphism">pattern bindings polymorphic</link></entry>
696 <entry>dynamic</entry>
697 <entry><option>-XMonoPatBinds</option></entry>
700 <entry><option>-XRelaxedPolyRec</option></entry>
701 <entry>Relaxed checking for <link linkend="typing-binds">mutually-recursive polymorphic functions</link></entry>
702 <entry>dynamic</entry>
703 <entry><option>-XNoRelaxedPolyRec</option></entry>
706 <entry><option>-XExtendedDefaultRules</option></entry>
707 <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module</entry>
708 <entry>dynamic</entry>
709 <entry><option>-XNoExtendedDefaultRules</option></entry>
712 <entry><option>-XOverloadedStrings</option></entry>
713 <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
715 <entry>dynamic</entry>
716 <entry><option>-XNoOverloadedStrings</option></entry>
719 <entry><option>-XGADTs</option></entry>
720 <entry>Enable <link linkend="gadt">generalised algebraic data types</link>.
722 <entry>dynamic</entry>
723 <entry><option>-XNoGADTs</option></entry>
726 <entry><option>-XTypeFamilies</option></entry>
727 <entry>Enable <link linkend="type-families">type families</link>.</entry>
728 <entry>dynamic</entry>
729 <entry><option>-XNoTypeFamilies</option></entry>
732 <entry><option>-XScopedTypeVariables</option></entry>
733 <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
734 Implied by <option>-fglasgow-exts</option>.</entry>
735 <entry>dynamic</entry>
736 <entry><option>-XNoScopedTypeVariables</option></entry>
739 <entry><option>-XTemplateHaskell</option></entry>
740 <entry>Enable <link linkend="template-haskell">Template Haskell</link>.
741 No longer implied by <option>-fglasgow-exts</option>.</entry>
742 <entry>dynamic</entry>
743 <entry><option>-XNoTemplateHaskell</option></entry>
746 <entry><option>-XQuasiQuotes</option></entry>
747 <entry>Enable <link linkend="th-quasiquotation">quasiquotation</link>.</entry>
748 <entry>dynamic</entry>
749 <entry><option>-XNoQuasiQuotes</option></entry>
752 <entry><option>-XBangPatterns</option></entry>
753 <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
754 <entry>dynamic</entry>
755 <entry><option>-XNoBangPatterns</option></entry>
758 <entry><option>-XCPP</option></entry>
759 <entry>Enable the <link linkend="c-pre-processor">C preprocessor</link>.</entry>
760 <entry>dynamic</entry>
761 <entry><option>-XNoCPP</option></entry>
764 <entry><option>-XPatternGuards</option></entry>
765 <entry>Enable <link linkend="pattern-guards">pattern guards</link>.</entry>
766 <entry>dynamic</entry>
767 <entry><option>-XNoPatternGuards</option></entry>
770 <entry><option>-XViewPatterns</option></entry>
771 <entry>Enable <link linkend="view-patterns">view patterns</link>.</entry>
772 <entry>dynamic</entry>
773 <entry><option>-XNoViewPatterns</option></entry>
776 <entry><option>-XUnicodeSyntax</option></entry>
777 <entry>Enable unicode syntax.</entry>
778 <entry>dynamic</entry>
779 <entry><option>-XNoUnicodeSyntax</option></entry>
782 <entry><option>-XMagicHash</option></entry>
783 <entry>Enable the “magic hash”.</entry>
784 <entry>dynamic</entry>
785 <entry><option>-XNoMagicHash</option></entry>
788 <entry><option>-XPolymorphicComponents</option></entry>
789 <entry>Enable <link linkend="universal-quantification">polymorphic components for data constructors</link>.</entry>
790 <entry>dynamic</entry>
791 <entry><option>-XNoPolymorphicComponents</option></entry>
794 <entry><option>-XRank2Types</option></entry>
795 <entry>Enable <link linkend="universal-quantification">rank-2 types</link>.</entry>
796 <entry>dynamic</entry>
797 <entry><option>-XNoRank2Types</option></entry>
800 <entry><option>-XRankNTypes</option></entry>
801 <entry>Enable <link linkend="universal-quantification">rank-N types</link>.</entry>
802 <entry>dynamic</entry>
803 <entry><option>-XNoRankNTypes</option></entry>
806 <entry><option>-XImpredicativeTypes</option></entry>
807 <entry>Enable <link linkend="impredicative-polymorphism">impredicative types</link>.</entry>
808 <entry>dynamic</entry>
809 <entry><option>-XNoImpredicativeTypes</option></entry>
812 <entry><option>-XExistentialQuantification</option></entry>
813 <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
814 <entry>dynamic</entry>
815 <entry><option>-XNoExistentialQuantification</option></entry>
818 <entry><option>-XKindSignatures</option></entry>
819 <entry>Enable <link linkend="kinding">kind signatures</link>.</entry>
820 <entry>dynamic</entry>
821 <entry><option>-XNoKindSignatures</option></entry>
824 <entry><option>-XPatternSignatures</option></entry>
825 <entry>Enable <link linkend="pattern-type-sigs">pattern type signatures</link>.</entry>
826 <entry>dynamic</entry>
827 <entry><option>-XNoPatternSignatures</option></entry>
830 <entry><option>-XEmptyDataDecls</option></entry>
831 <entry>Enable empty data declarations.</entry>
832 <entry>dynamic</entry>
833 <entry><option>-XNoEmptyDataDecls</option></entry>
836 <entry><option>-XParallelListComp</option></entry>
837 <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.</entry>
838 <entry>dynamic</entry>
839 <entry><option>-XNoParallelListComp</option></entry>
842 <entry><option>-XTransformListComp</option></entry>
843 <entry>Enable <link linkend="generalised-list-comprehensions">transform list comprehensions</link>.</entry>
844 <entry>dynamic</entry>
845 <entry><option>-XNoTransformListComp</option></entry>
848 <entry><option>-XUnliftedFFITypes</option></entry>
849 <entry>Enable unlifted FFI types.</entry>
850 <entry>dynamic</entry>
851 <entry><option>-XNoUnliftedFFITypes</option></entry>
854 <entry><option>-XLiberalTypeSynonyms</option></entry>
855 <entry>Enable <link linkend="type-synonyms">liberalised type synonyms</link>.</entry>
856 <entry>dynamic</entry>
857 <entry><option>-XNoLiberalTypeSynonyms</option></entry>
860 <entry><option>-XTypeOperators</option></entry>
861 <entry>Enable type operators.</entry>
862 <entry>dynamic</entry>
863 <entry><option>-XNoTypeOperators</option></entry>
866 <entry><option>-XRecursiveDo</option></entry>
867 <entry>Enable <link linkend="mdo-notation">recursive do (mdo) notation</link>.</entry>
868 <entry>dynamic</entry>
869 <entry><option>-XNoRecursiveDo</option></entry>
872 <entry><option>-XPArr</option></entry>
873 <entry>Enable parallel arrays.</entry>
874 <entry>dynamic</entry>
875 <entry><option>-XNoPArr</option></entry>
878 <entry><option>-XRecordWildCards</option></entry>
879 <entry>Enable <link linkend="record-wildcards">record wildcards</link>.</entry>
880 <entry>dynamic</entry>
881 <entry><option>-XNoRecordWildCards</option></entry>
884 <entry><option>-XNamedFieldPuns</option></entry>
885 <entry>Enable <link linkend="record-puns">record puns</link>.</entry>
886 <entry>dynamic</entry>
887 <entry><option>-XNoNamedFieldPuns</option></entry>
890 <entry><option>-XDisambiguateRecordFields</option></entry>
891 <entry>Enable <link linkend="disambiguate-fields">record field disambiguation</link>. </entry>
892 <entry>dynamic</entry>
893 <entry><option>-XNoDisambiguateRecordFields</option></entry>
896 <entry><option>-XUnboxedTuples</option></entry>
897 <entry>Enable <link linkend="unboxed-tuples">unboxed tuples</link>.</entry>
898 <entry>dynamic</entry>
899 <entry><option>-XNoUnboxedTuples</option></entry>
902 <entry><option>-XStandaloneDeriving</option></entry>
903 <entry>Enable <link linkend="stand-alone-deriving">standalone deriving</link>.</entry>
904 <entry>dynamic</entry>
905 <entry><option>-XNoStandaloneDeriving</option></entry>
908 <entry><option>-XDeriveDataTypeable</option></entry>
909 <entry>Enable <link linkend="deriving-typeable">deriving for the Data and Typeable classes</link>.</entry>
910 <entry>dynamic</entry>
911 <entry><option>-XNoDeriveDataTypeable</option></entry>
914 <entry><option>-XGeneralizedNewtypeDeriving</option></entry>
915 <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
916 <entry>dynamic</entry>
917 <entry><option>-XNoGeneralizedNewtypeDeriving</option></entry>
920 <entry><option>-XTypeSynonymInstances</option></entry>
921 <entry>Enable <link linkend="type-synonyms">type synonyms</link>.</entry>
922 <entry>dynamic</entry>
923 <entry><option>-XNoTypeSynonymInstances</option></entry>
926 <entry><option>-XFlexibleContexts</option></entry>
927 <entry>Enable <link linkend="flexible-contexts">flexible contexts</link>.</entry>
928 <entry>dynamic</entry>
929 <entry><option>-XNoFlexibleContexts</option></entry>
932 <entry><option>-XFlexibleInstances</option></entry>
933 <entry>Enable <link linkend="instance-rules">flexible instances</link>.</entry>
934 <entry>dynamic</entry>
935 <entry><option>-XNoFlexibleInstances</option></entry>
938 <entry><option>-XConstrainedClassMethods</option></entry>
939 <entry>Enable <link linkend="class-method-types">constrained class methods</link>.</entry>
940 <entry>dynamic</entry>
941 <entry><option>-XNoConstrainedClassMethods</option></entry>
944 <entry><option>-XMultiParamTypeClasses</option></entry>
945 <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.</entry>
946 <entry>dynamic</entry>
947 <entry><option>-XNoMultiParamTypeClasses</option></entry>
950 <entry><option>-XFunctionalDependencies</option></entry>
951 <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.</entry>
952 <entry>dynamic</entry>
953 <entry><option>-XNoFunctionalDependencies</option></entry>
961 <title>Warnings</title>
963 <para><xref linkend="options-sanity"/></para>
966 <tgroup cols="4" align="left" colsep="1" rowsep="1">
970 <entry>Description</entry>
971 <entry>Static/Dynamic</entry>
972 <entry>Reverse</entry>
977 <entry><option>-W</option></entry>
978 <entry>enable normal warnings</entry>
979 <entry>dynamic</entry>
980 <entry><option>-w</option></entry>
983 <entry><option>-w</option></entry>
984 <entry>disable all warnings</entry>
985 <entry>dynamic</entry>
989 <entry><option>-Wall</option></entry>
990 <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
991 <entry>dynamic</entry>
992 <entry><option>-w</option></entry>
995 <entry><option>-Werror</option></entry>
996 <entry>make warnings fatal</entry>
997 <entry>dynamic</entry>
998 <entry>-Wwarn</entry>
1001 <entry><option>-Wwarn</option></entry>
1002 <entry>make warnings non-fatal</entry>
1003 <entry>dynamic</entry>
1004 <entry>-Werror</entry>
1008 <entry><option>-fwarn-deprecations</option></entry>
1009 <entry>warn about uses of functions & types that are deprecated</entry>
1010 <entry>dynamic</entry>
1011 <entry><option>-fno-warn-deprecations</option></entry>
1015 <entry><option>-fwarn-deprecated-flags</option></entry>
1016 <entry>warn about uses of commandline flags that are deprecated</entry>
1017 <entry>dynamic</entry>
1018 <entry><option>-fno-warn-deprecated-flags</option></entry>
1022 <entry><option>-fwarn-duplicate-exports</option></entry>
1023 <entry>warn when an entity is exported multiple times</entry>
1024 <entry>dynamic</entry>
1025 <entry><option>-fno-warn-duplicate-exports</option></entry>
1029 <entry><option>-fwarn-hi-shadowing</option></entry>
1030 <entry>warn when a <literal>.hi</literal> file in the
1031 current directory shadows a library</entry>
1032 <entry>dynamic</entry>
1033 <entry><option>-fno-warn-hi-shadowing</option></entry>
1037 <entry><option>-fwarn-implicit-prelude</option></entry>
1038 <entry>warn when the Prelude is implicitly imported</entry>
1039 <entry>dynamic</entry>
1040 <entry><option>-fno-warn-implicit-prelude</option></entry>
1044 <entry><option>-fwarn-incomplete-patterns</option></entry>
1045 <entry>warn when a pattern match could fail</entry>
1046 <entry>dynamic</entry>
1047 <entry><option>-fno-warn-incomplete-patterns</option></entry>
1051 <entry><option>-fwarn-incomplete-record-updates</option></entry>
1052 <entry>warn when a record update could fail</entry>
1053 <entry>dynamic</entry>
1054 <entry><option>-fno-warn-incomplete-record-updates</option></entry>
1058 <entry><option>-fwarn-missing-fields</option></entry>
1059 <entry>warn when fields of a record are uninitialised</entry>
1060 <entry>dynamic</entry>
1061 <entry><option>-fno-warn-missing-fields</option></entry>
1065 <entry><option>-fwarn-missing-methods</option></entry>
1066 <entry>warn when class methods are undefined</entry>
1067 <entry>dynamic</entry>
1068 <entry><option>-fno-warn-missing-methods</option></entry>
1072 <entry><option>-fwarn-missing-signatures</option></entry>
1073 <entry>warn about top-level functions without signatures</entry>
1074 <entry>dynamic</entry>
1075 <entry><option>-fno-warn-missing-signatures</option></entry>
1079 <entry><option>-fwarn-name-shadowing</option></entry>
1080 <entry>warn when names are shadowed</entry>
1081 <entry>dynamic</entry>
1082 <entry><option>-fno-warn-name-shadowing</option></entry>
1086 <entry><option>-fwarn-orphans</option></entry>
1087 <entry>warn when the module contains <link linkend="orphan-modules">orphan instance declarations
1088 or rewrite rules</link></entry>
1089 <entry>dynamic</entry>
1090 <entry><option>-fno-warn-orphans</option></entry>
1094 <entry><option>-fwarn-overlapping-patterns</option></entry>
1095 <entry>warn about overlapping patterns</entry>
1096 <entry>dynamic</entry>
1097 <entry><option>-fno-warn-overlapping-patterns</option></entry>
1101 <entry><option>-fwarn-simple-patterns</option></entry>
1102 <entry>warn about lambda-patterns that can fail</entry>
1103 <entry>dynamic</entry>
1104 <entry><option>-fno-warn-simple-patterns</option></entry>
1108 <entry><option>-fwarn-tabs</option></entry>
1109 <entry>warn if there are tabs in the source file</entry>
1110 <entry>dynamic</entry>
1111 <entry><option>-fno-warn-tabs</option></entry>
1115 <entry><option>-fwarn-type-defaults</option></entry>
1116 <entry>warn when defaulting happens</entry>
1117 <entry>dynamic</entry>
1118 <entry><option>-fno-warn-type-defaults</option></entry>
1122 <entry><option>-fwarn-monomorphism-restriction</option></entry>
1123 <entry>warn when the Monomorphism Restriction is applied</entry>
1124 <entry>dynamic</entry>
1125 <entry><option>-fno-warn-monomorphism-restriction</option></entry>
1129 <entry><option>-fwarn-unused-binds</option></entry>
1130 <entry>warn about bindings that are unused</entry>
1131 <entry>dynamic</entry>
1132 <entry><option>-fno-warn-unused-binds</option></entry>
1136 <entry><option>-fwarn-unused-imports</option></entry>
1137 <entry>warn about unnecessary imports</entry>
1138 <entry>dynamic</entry>
1139 <entry><option>-fno-warn-unused-imports</option></entry>
1143 <entry><option>-fwarn-unused-matches</option></entry>
1144 <entry>warn about variables in patterns that aren't used</entry>
1145 <entry>dynamic</entry>
1146 <entry><option>-fno-warn-unused-matches</option></entry>
1155 <title>Optimisation levels</title>
1157 <para><xref linkend="options-optimise"/></para>
1160 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1164 <entry>Description</entry>
1165 <entry>Static/Dynamic</entry>
1166 <entry>Reverse</entry>
1171 <entry><option>-O</option></entry>
1172 <entry>Enable default optimisation (level 1)</entry>
1173 <entry>dynamic</entry>
1174 <entry><option>-O0</option></entry>
1177 <entry><option>-O</option><replaceable>n</replaceable></entry>
1178 <entry>Set optimisation level <replaceable>n</replaceable></entry>
1179 <entry>dynamic</entry>
1180 <entry><option>-O0</option></entry>
1188 <title>Individual optimisations</title>
1190 <para><xref linkend="options-f"/></para>
1193 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1197 <entry>Description</entry>
1198 <entry>Static/Dynamic</entry>
1199 <entry>Reverse</entry>
1204 <entry><option>-fcase-merge</option></entry>
1205 <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
1206 <entry>dynamic</entry>
1207 <entry><option>-fno-case-merge</option></entry>
1211 <entry><option>-fdicts-strict</option></entry>
1212 <entry>Make dictionaries strict</entry>
1213 <entry>static</entry>
1214 <entry><option>-fno-dicts-strict</option></entry>
1218 <entry><option>-fmethod-sharing</option></entry>
1219 <entry>Share specialisations of overloaded functions (default)</entry>
1220 <entry>dynamic</entry>
1221 <entry><option>-fno-method-sharing</option></entry>
1225 <entry><option>-fdo-eta-reduction</option></entry>
1226 <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
1227 <entry>dynamic</entry>
1228 <entry><option>-fno-do-eta-reduction</option></entry>
1232 <entry><option>-fdo-lambda-eta-expansion</option></entry>
1233 <entry>Enable lambda eta-reduction</entry>
1234 <entry>dynamic</entry>
1235 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
1239 <entry><option>-fexcess-precision</option></entry>
1240 <entry>Enable excess intermediate precision</entry>
1241 <entry>dynamic</entry>
1242 <entry><option>-fno-excess-precision</option></entry>
1246 <entry><option>-fignore-asserts</option></entry>
1247 <entry>Ignore assertions in the source</entry>
1248 <entry>dynamic</entry>
1249 <entry><option>-fno-ignore-asserts</option></entry>
1253 <entry><option>-fignore-interface-pragmas</option></entry>
1254 <entry>Ignore pragmas in interface files</entry>
1255 <entry>dynamic</entry>
1256 <entry><option>-fno-ignore-interface-pragmas</option></entry>
1260 <entry><option>-fomit-interface-pragmas</option></entry>
1261 <entry>Don't generate interface pragmas</entry>
1262 <entry>dynamic</entry>
1263 <entry><option>-fno-omit-interface-pragmas</option></entry>
1267 <entry><option>-fmax-worker-args</option></entry>
1268 <entry>If a worker has that many arguments, none will be
1269 unpacked anymore (default: 10)</entry>
1270 <entry>static</entry>
1275 <entry><option>-fsimplifier-phases</option></entry>
1276 <entry>Set the number of phases for the simplifier (default 2).
1277 Ignored with <option>-O0</option>.</entry>
1278 <entry>dynamic</entry>
1283 <entry><option>-fmax-simplifier-iterations</option></entry>
1284 <entry>Set the max iterations for the simplifier</entry>
1285 <entry>dynamic</entry>
1290 <entry><option>-fno-state-hack</option></entry>
1291 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1292 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
1293 <entry>static</entry>
1298 <entry><option>-fcse</option></entry>
1299 <entry>Turn on common sub-expression elimination. Implied by <option>-O</option>.</entry>
1300 <entry>dynamic</entry>
1301 <entry>-fno-cse</entry>
1305 <entry><option>-ffull-laziness</option></entry>
1306 <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
1307 <entry>dynamic</entry>
1308 <entry>-fno-full-laziness</entry>
1312 <entry><option>-frewrite-rules</option></entry>
1313 <entry>Switch on all rewrite rules (including rules
1314 generated by automatic specialisation of overloaded functions).
1315 Implied by <option>-O</option>. </entry>
1316 <entry>dynamic</entry>
1317 <entry><option>-fno-rewrite-rules</option></entry>
1321 <entry><option>-fstrictness</option></entry>
1322 <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1323 <entry>dynamic</entry>
1324 <entry>-fno-strictness</entry>
1328 <entry><option>-fspec-constr</option></entry>
1329 <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1330 <entry>dynamic</entry>
1331 <entry>-fno-spec-constr</entry>
1335 <entry><option>-fspec-constr-threshold</option>=<replaceable>n</replaceable></entry>
1336 <entry>Set the size threshold for the SpecConstr transformation to <replaceable>n</replaceable> (default: 200)</entry>
1337 <entry>static</entry>
1338 <entry><option>-fno-spec-constr-threshold</option></entry>
1342 <entry><option>-fspec-constr-count</option>=<replaceable>n</replaceable></entry>
1343 <entry>Set to <replaceable>n</replaceable> (default: 3) the maximum number of
1344 specialisations that will be created for any one function
1345 by the SpecConstr transformation</entry>
1346 <entry>static</entry>
1347 <entry><option>-fno-spec-constr-count</option></entry>
1351 <entry><option>-fliberate-case</option></entry>
1352 <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
1353 <entry>dynamic</entry>
1354 <entry>-fno-liberate-case</entry>
1358 <entry><option>-fstatic-argument-transformation</option></entry>
1359 <entry>Turn on the static argument transformation. Implied by <option>-O2</option>.</entry>
1360 <entry>dynamic</entry>
1361 <entry>-fno-static-argument-transformation</entry>
1365 <entry><option>-fliberate-case-threshold</option>=<replaceable>n</replaceable></entry>
1366 <entry>Set the size threshold for the liberate-case transformation to <replaceable>n</replaceable> (default: 200)</entry>
1367 <entry>static</entry>
1368 <entry><option>-fno-liberate-case-threshold</option></entry>
1372 <entry><option>-funbox-strict-fields</option></entry>
1373 <entry>Flatten strict constructor fields</entry>
1374 <entry>dynamic</entry>
1375 <entry><option>-fno-unbox-strict-fields</option></entry>
1379 <entry><option>-funfolding-creation-threshold</option></entry>
1380 <entry>Tweak unfolding settings</entry>
1381 <entry>static</entry>
1382 <entry><option>-fno-unfolding-creation-threshold</option></entry>
1386 <entry><option>-funfolding-fun-discount</option></entry>
1387 <entry>Tweak unfolding settings</entry>
1388 <entry>static</entry>
1389 <entry><option>-fno-unfolding-fun-discount</option></entry>
1393 <entry><option>-funfolding-keeness-factor</option></entry>
1394 <entry>Tweak unfolding settings</entry>
1395 <entry>static</entry>
1396 <entry><option>-fno-unfolding-keeness-factor</option></entry>
1400 <entry><option>-funfolding-use-threshold</option></entry>
1401 <entry>Tweak unfolding settings</entry>
1402 <entry>static</entry>
1403 <entry><option>-fno-unfolding-use-threshold</option></entry>
1407 <entry><option>-fno-pre-inlining</option></entry>
1408 <entry>Turn off pre-inlining</entry>
1409 <entry>static</entry>
1418 <title>Profiling options</title>
1420 <para><xref linkend="profiling"/></para>
1423 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1427 <entry>Description</entry>
1428 <entry>Static/Dynamic</entry>
1429 <entry>Reverse</entry>
1434 <entry><option>-auto</option></entry>
1435 <entry>Auto-add <literal>_scc_</literal>s to all
1436 exported functions</entry>
1437 <entry>static</entry>
1438 <entry><option>-no-auto</option></entry>
1441 <entry><option>-auto-all</option></entry>
1442 <entry>Auto-add <literal>_scc_</literal>s to all
1443 top-level functions</entry>
1444 <entry>static</entry>
1445 <entry><option>-no-auto-all</option></entry>
1448 <entry><option>-caf-all</option></entry>
1449 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1450 <entry>static</entry>
1451 <entry><option>-no-caf-all</option></entry>
1454 <entry><option>-prof</option></entry>
1455 <entry>Turn on profiling</entry>
1456 <entry>static</entry>
1460 <entry><option>-ticky</option></entry>
1461 <entry>Turn on ticky-ticky profiling</entry>
1462 <entry>static</entry>
1471 <title>Program coverage options</title>
1473 <para><xref linkend="hpc"/></para>
1476 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1480 <entry>Description</entry>
1481 <entry>Static/Dynamic</entry>
1482 <entry>Reverse</entry>
1487 <entry><option>-fhpc</option></entry>
1488 <entry>Turn on Haskell program coverage instrumentation</entry>
1489 <entry>static</entry>
1490 <entry><option>-</option></entry>
1493 <entry><option>-hpcdir dir</option></entry>
1494 <entry>Directory to deposit .mix files during compilation (default is .hpc)</entry>
1495 <entry>dynamic</entry>
1496 <entry><option>-</option></entry>
1504 <title>Haskell pre-processor options</title>
1506 <para><xref linkend="pre-processor"/></para>
1509 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1513 <entry>Description</entry>
1514 <entry>Static/Dynamic</entry>
1515 <entry>Reverse</entry>
1520 <entry><option>-F</option></entry>
1522 Enable the use of a pre-processor
1523 (set with <option>-pgmF</option>)
1525 <entry>dynamic</entry>
1534 <title>C pre-processor options</title>
1536 <para><xref linkend="c-pre-processor"/></para>
1539 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1543 <entry>Description</entry>
1544 <entry>Static/Dynamic</entry>
1545 <entry>Reverse</entry>
1550 <entry><option>-cpp</option></entry>
1551 <entry>Run the C pre-processor on Haskell source files</entry>
1552 <entry>dynamic</entry>
1556 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1557 <entry>Define a symbol in the C pre-processor</entry>
1558 <entry>dynamic</entry>
1559 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1562 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1563 <entry>Undefine a symbol in the C pre-processor</entry>
1564 <entry>dynamic</entry>
1568 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1569 <entry>Add <replaceable>dir</replaceable> to the
1570 directory search list for <literal>#include</literal> files</entry>
1571 <entry>dynamic</entry>
1580 <title>C compiler options</title>
1582 <para><xref linkend="options-C-compiler"/></para>
1584 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1588 <entry>Description</entry>
1589 <entry>Static/Dynamic</entry>
1590 <entry>Reverse</entry>
1595 <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1596 <entry>Include <replaceable>file</replaceable> when
1597 compiling the <filename>.hc</filename> file</entry>
1598 <entry>dynamic</entry>
1607 <title>Code generation options</title>
1609 <para><xref linkend="options-codegen"/></para>
1612 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1616 <entry>Description</entry>
1617 <entry>Static/Dynamic</entry>
1618 <entry>Reverse</entry>
1623 <entry><option>-fasm</option></entry>
1624 <entry>Use the native code generator</entry>
1625 <entry>dynamic</entry>
1626 <entry>-fvia-C</entry>
1629 <entry><option>-fvia-C</option></entry>
1630 <entry>Compile via C</entry>
1631 <entry>dynamic</entry>
1632 <entry>-fasm</entry>
1635 <entry><option>-fno-code</option></entry>
1636 <entry>Omit code generation</entry>
1637 <entry>dynamic</entry>
1641 <entry><option>-fbyte-code</option></entry>
1642 <entry>Generate byte-code</entry>
1643 <entry>dynamic</entry>
1647 <entry><option>-fobject-code</option></entry>
1648 <entry>Generate object code</entry>
1649 <entry>dynamic</entry>
1658 <title>Linking options</title>
1660 <para><xref linkend="options-linker"/></para>
1663 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1667 <entry>Description</entry>
1668 <entry>Static/Dynamic</entry>
1669 <entry>Reverse</entry>
1674 <entry><option>-fPIC</option></entry>
1675 <entry>Generate position-independent code (where available)</entry>
1676 <entry>static</entry>
1680 <entry><option>-dynamic</option></entry>
1681 <entry>Use dynamic Haskell libraries (if available)</entry>
1682 <entry>static</entry>
1686 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1687 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1688 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1689 <entry>dynamic</entry>
1693 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1694 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1695 directories searched for frameworks.
1696 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1697 <entry>dynamic</entry>
1701 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1702 <entry>Link in library <replaceable>lib</replaceable></entry>
1703 <entry>dynamic</entry>
1707 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1708 <entry>Add <replaceable>dir</replaceable> to the list of
1709 directories searched for libraries</entry>
1710 <entry>dynamic</entry>
1714 <entry><option>-main-is</option></entry>
1715 <entry>Set main module and function</entry>
1716 <entry>dynamic</entry>
1720 <entry><option>--mk-dll</option></entry>
1721 <entry>DLL-creation mode (Windows only)</entry>
1722 <entry>dynamic</entry>
1726 <entry><option>-no-hs-main</option></entry>
1727 <entry>Don't assume this program contains <literal>main</literal></entry>
1728 <entry>dynamic</entry>
1732 <entry><option>-no-link</option></entry>
1733 <entry>Omit linking</entry>
1734 <entry>dynamic</entry>
1738 <entry><option>-split-objs</option></entry>
1739 <entry>Split objects (for libraries)</entry>
1740 <entry>dynamic</entry>
1744 <entry><option>-static</option></entry>
1745 <entry>Use static Haskell libraries</entry>
1746 <entry>static</entry>
1750 <entry><option>-threaded</option></entry>
1751 <entry>Use the threaded runtime</entry>
1752 <entry>static</entry>
1756 <entry><option>-debug</option></entry>
1757 <entry>Use the debugging runtime</entry>
1758 <entry>static</entry>
1762 <entry><option>-fno-gen-manifest</option></entry>
1763 <entry>Do not generate a manifest file (Windows only)</entry>
1764 <entry>dynamic</entry>
1768 <entry><option>-fno-embed-manifest</option></entry>
1769 <entry>Do not embed the manifest in the executable (Windows only)</entry>
1770 <entry>dynamic</entry>
1779 <title>Replacing phases</title>
1781 <para><xref linkend="replacing-phases"/></para>
1784 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1788 <entry>Description</entry>
1789 <entry>Static/Dynamic</entry>
1790 <entry>Reverse</entry>
1795 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1796 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1797 <entry>dynamic</entry>
1801 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1802 <entry>Use <replaceable>cmd</replaceable> as the C
1803 pre-processor (with <option>-cpp</option> only)</entry>
1804 <entry>dynamic</entry>
1808 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1809 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1810 <entry>dynamic</entry>
1814 <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1815 <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1816 <entry>dynamic</entry>
1820 <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1821 <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1822 <entry>dynamic</entry>
1826 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1827 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1828 <entry>dynamic</entry>
1832 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1833 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1834 <entry>dynamic</entry>
1838 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1839 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1840 <entry>dynamic</entry>
1844 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1845 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1846 (with <option>-F</option> only)</entry>
1847 <entry>dynamic</entry>
1851 <entry><option>-pgmwindres</option> <replaceable>cmd</replaceable></entry>
1852 <entry>Use <replaceable>cmd</replaceable> as the program for
1853 embedding manifests on Windows.</entry>
1854 <entry>dynamic</entry>
1860 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1861 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1862 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1863 <indexterm><primary><option>-pgma</option></primary></indexterm>
1864 <indexterm><primary><option>-pgml</option></primary></indexterm>
1865 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1866 <indexterm><primary><option>-pgmF</option></primary></indexterm>
1871 <title>Forcing options to particular phases</title>
1873 <para><xref linkend="forcing-options-through"/></para>
1876 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1880 <entry>Description</entry>
1881 <entry>Static/Dynamic</entry>
1882 <entry>Reverse</entry>
1887 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1888 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1889 <entry>dynamic</entry>
1893 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1894 <entry>pass <replaceable>option</replaceable> to cpp (with
1895 <option>-cpp</option> only)</entry>
1896 <entry>dynamic</entry>
1900 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1901 <entry>pass <replaceable>option</replaceable> to the
1902 custom pre-processor</entry>
1903 <entry>dynamic</entry>
1907 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1908 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1909 <entry>dynamic</entry>
1913 <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1914 <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1915 <entry>dynamic</entry>
1919 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1920 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1921 <entry>dynamic</entry>
1925 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1926 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1927 <entry>dynamic</entry>
1931 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1932 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1933 <entry>dynamic</entry>
1937 <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1938 <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1939 <entry>dynamic</entry>
1943 <entry><option>-optwindres</option> <replaceable>option</replaceable></entry>
1944 <entry>pass <replaceable>option</replaceable> to <literal>windres</literal>.</entry>
1945 <entry>dynamic</entry>
1954 <title>Platform-specific options</title>
1956 <para><xref linkend="options-platform"/></para>
1959 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1963 <entry>Description</entry>
1964 <entry>Static/Dynamic</entry>
1965 <entry>Reverse</entry>
1970 <entry><option>-monly-[432]-regs</option></entry>
1971 <entry>(x86 only) give some registers back to the C compiler</entry>
1972 <entry>dynamic</entry>
1982 <title>External core file options</title>
1984 <para><xref linkend="ext-core"/></para>
1987 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1991 <entry>Description</entry>
1992 <entry>Static/Dynamic</entry>
1993 <entry>Reverse</entry>
1998 <entry><option>-fext-core</option></entry>
1999 <entry>Generate <filename>.hcr</filename> external Core files</entry>
2000 <entry>static</entry>
2010 <title>Compiler debugging options</title>
2012 <para><xref linkend="options-debugging"/></para>
2015 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2019 <entry>Description</entry>
2020 <entry>Static/Dynamic</entry>
2021 <entry>Reverse</entry>
2026 <entry><option>-dcore-lint</option></entry>
2027 <entry>Turn on internal sanity checking</entry>
2028 <entry>dynamic</entry>
2032 <entry><option>-ddump-asm</option></entry>
2033 <entry>Dump assembly</entry>
2034 <entry>dynamic</entry>
2038 <entry><option>-ddump-bcos</option></entry>
2039 <entry>Dump interpreter byte code</entry>
2040 <entry>dynamic</entry>
2044 <entry><option>-ddump-cmm</option></entry>
2045 <entry>Dump C-- output</entry>
2046 <entry>dynamic</entry>
2050 <entry><option>-ddump-cpranal</option></entry>
2051 <entry>Dump output from CPR analysis</entry>
2052 <entry>dynamic</entry>
2056 <entry><option>-ddump-cse</option></entry>
2057 <entry>Dump CSE output</entry>
2058 <entry>dynamic</entry>
2062 <entry><option>-ddump-deriv</option></entry>
2063 <entry>Dump deriving output</entry>
2064 <entry>dynamic</entry>
2068 <entry><option>-ddump-ds</option></entry>
2069 <entry>Dump desugarer output</entry>
2070 <entry>dynamic</entry>
2074 <entry><option>-ddump-flatC</option></entry>
2075 <entry>Dump “flat” C</entry>
2076 <entry>dynamic</entry>
2080 <entry><option>-ddump-foreign</option></entry>
2081 <entry>Dump <literal>foreign export</literal> stubs</entry>
2082 <entry>dynamic</entry>
2086 <entry><option>-ddump-hpc</option></entry>
2087 <entry>Dump after instrumentation for program coverage</entry>
2088 <entry>dynamic</entry>
2092 <entry><option>-ddump-inlinings</option></entry>
2093 <entry>Dump inlining info</entry>
2094 <entry>dynamic</entry>
2098 <entry><option>-ddump-occur-anal</option></entry>
2099 <entry>Dump occurrence analysis output</entry>
2100 <entry>dynamic</entry>
2104 <entry><option>-ddump-opt-cmm</option></entry>
2105 <entry>Dump the results of C-- to C-- optimising passes</entry>
2106 <entry>dynamic</entry>
2110 <entry><option>-ddump-parsed</option></entry>
2111 <entry>Dump parse tree</entry>
2112 <entry>dynamic</entry>
2116 <entry><option>-ddump-prep</option></entry>
2117 <entry>Dump prepared core</entry>
2118 <entry>dynamic</entry>
2122 <entry><option>-ddump-rn</option></entry>
2123 <entry>Dump renamer output</entry>
2124 <entry>dynamic</entry>
2128 <entry><option>-ddump-rules</option></entry>
2129 <entry>Dump rules</entry>
2130 <entry>dynamic</entry>
2134 <entry><option>-ddump-simpl</option></entry>
2135 <entry>Dump final simplifier output</entry>
2136 <entry>dynamic</entry>
2140 <entry><option>-ddump-simpl-phases</option></entry>
2141 <entry>Dump output from each simplifier phase</entry>
2142 <entry>dynamic</entry>
2146 <entry><option>-ddump-simpl-iterations</option></entry>
2147 <entry>Dump output from each simplifier iteration</entry>
2148 <entry>dynamic</entry>
2152 <entry><option>-ddump-spec</option></entry>
2153 <entry>Dump specialiser output</entry>
2154 <entry>dynamic</entry>
2158 <entry><option>-ddump-splices</option></entry>
2159 <entry>Dump TH spliced expressions, and what they evaluate to</entry>
2160 <entry>dynamic</entry>
2164 <entry><option>-ddump-stg</option></entry>
2165 <entry>Dump final STG</entry>
2166 <entry>dynamic</entry>
2170 <entry><option>-ddump-stranal</option></entry>
2171 <entry>Dump strictness analyser output</entry>
2172 <entry>dynamic</entry>
2176 <entry><option>-ddump-tc</option></entry>
2177 <entry>Dump typechecker output</entry>
2178 <entry>dynamic</entry>
2182 <entry><option>-ddump-types</option></entry>
2183 <entry>Dump type signatures</entry>
2184 <entry>dynamic</entry>
2188 <entry><option>-ddump-worker-wrapper</option></entry>
2189 <entry>Dump worker-wrapper output</entry>
2190 <entry>dynamic</entry>
2194 <entry><option>-ddump-if-trace</option></entry>
2195 <entry>Trace interface files</entry>
2196 <entry>dynamic</entry>
2200 <entry><option>-ddump-tc-trace</option></entry>
2201 <entry>Trace typechecker</entry>
2202 <entry>dynamic</entry>
2206 <entry><option>-ddump-rn-trace</option></entry>
2207 <entry>Trace renamer</entry>
2208 <entry>dynamic</entry>
2212 <entry><option>-ddump-rn-stats</option></entry>
2213 <entry>Renamer stats</entry>
2214 <entry>dynamic</entry>
2218 <entry><option>-ddump-simpl-stats</option></entry>
2219 <entry>Dump simplifier stats</entry>
2220 <entry>dynamic</entry>
2224 <entry><option>-dno-debug-output</option></entry>
2225 <entry>Suppress unsolicited debugging output</entry>
2226 <entry>static</entry>
2230 <entry><option>-dppr-debug</option></entry>
2231 <entry>Turn on debug printing (more verbose)</entry>
2232 <entry>static</entry>
2236 <entry><option>-dppr-noprags</option></entry>
2237 <entry>Don't output pragma info in dumps</entry>
2238 <entry>static</entry>
2242 <entry><option>-dppr-user-length</option></entry>
2243 <entry>Set the depth for printing expressions in error msgs</entry>
2244 <entry>static</entry>
2248 <entry><option>-dsource-stats</option></entry>
2249 <entry>Dump haskell source stats</entry>
2250 <entry>dynamic</entry>
2254 <entry><option>-dcmm-lint</option></entry>
2255 <entry>C-- pass sanity checking</entry>
2256 <entry>dynamic</entry>
2260 <entry><option>-dstg-lint</option></entry>
2261 <entry>STG pass sanity checking</entry>
2262 <entry>dynamic</entry>
2266 <entry><option>-dstg-stats</option></entry>
2267 <entry>Dump STG stats</entry>
2268 <entry>dynamic</entry>
2272 <entry><option>-dverbose-core2core</option></entry>
2273 <entry>Show output from each core-to-core pass</entry>
2274 <entry>dynamic</entry>
2278 <entry><option>-dverbose-stg2stg</option></entry>
2279 <entry>Show output from each STG-to-STG pass</entry>
2280 <entry>dynamic</entry>
2284 <entry><option>-dshow-passes</option></entry>
2285 <entry>Print out each pass name as it happens</entry>
2286 <entry>dynamic</entry>
2290 <entry><option>-dfaststring-stats</option></entry>
2291 <entry>Show statistics for fast string usage when finished</entry>
2292 <entry>dynamic</entry>
2301 <title>Misc compiler options</title>
2304 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2308 <entry>Description</entry>
2309 <entry>Static/Dynamic</entry>
2310 <entry>Reverse</entry>
2315 <entry><option>-fno-hi-version-check</option></entry>
2316 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
2317 <entry>static</entry>
2321 <entry><option>-dno-black-holing</option></entry>
2322 <entry>Turn off black holing (probably doesn't work)</entry>
2323 <entry>static</entry>
2327 <entry><option>-fhistory-size</option></entry>
2328 <entry>Set simplification history size</entry>
2329 <entry>static</entry>
2333 <entry><option>-funregisterised</option></entry>
2334 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
2335 <entry>static</entry>
2339 <entry><option>-fno-asm-mangling</option></entry>
2340 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
2341 <entry>dynamic</entry>
2355 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
2361 ;;; Local Variables: ***
2363 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***