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>––version</option></entry>
64 <entry>display GHC version</entry>
69 <entry><option>––numeric-version</option></entry>
70 <entry>display GHC version (numeric only)</entry>
75 <entry><option>––print-libdir</option></entry>
76 <entry>display GHC library directory</entry>
81 <entry><option>-ferror-spans</option></entry>
82 <entry>output full span in error messages</entry>
87 <entry><option>-H</option><replaceable>size</replaceable></entry>
88 <entry>Set the minimum heap size to <replaceable>size</replaceable></entry>
93 <entry><option>-Rghc-timing</option></entry>
94 <entry>Summarise timing stats for GHC (same as <literal>+RTS -tstderr</literal>)</entry>
104 <title>Which phases to run</title>
106 <para><xref linkend="options-order"/></para>
109 <tgroup cols="4" align="left" colsep="1" rowsep="1">
113 <entry>Description</entry>
114 <entry>Static/Dynamic</entry>
115 <entry>Reverse</entry>
120 <entry><option>-E</option></entry>
121 <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
126 <entry><option>-C</option></entry>
127 <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
132 <entry><option>-S</option></entry>
133 <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
138 <entry><option>-c</option></entry>
139 <entry>Do not link</entry>
140 <entry>dynamic</entry>
144 <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
145 <entry>Override default behaviour for source files</entry>
146 <entry>static</entry>
155 <title>Alternative modes of operation</title>
157 <para><xref linkend="modes"/></para>
160 <tgroup cols="4" align="left" colsep="1" rowsep="1">
164 <entry>Description</entry>
165 <entry>Static/Dynamic</entry>
166 <entry>Reverse</entry>
171 <entry><option>--interactive</option></entry>
172 <entry>Interactive mode - normally used by just running <command>ghci</command>;
173 see <xref linkend="ghci"/> for details.</entry>
178 <entry><option>--make</option></entry>
179 <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>;
180 see <xref linkend="make-mode"/> for details..</entry>
185 <entry><option>-e <replaceable>expr</replaceable></option></entry>
186 <entry>Evaluate <replaceable>expr</replaceable>;
187 see <xref linkend="eval-mode"/> for details.</entry>
192 <entry><option>-M</option></entry>
193 <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>;
194 see <xref linkend="makefile-dependencies"/> for details.</entry>
204 <title>Redirecting output</title>
206 <para><xref linkend="options-output"/></para>
209 <tgroup cols="4" align="left" colsep="1" rowsep="1">
213 <entry>Description</entry>
214 <entry>Static/Dynamic</entry>
215 <entry>Reverse</entry>
220 <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
221 <entry>set the suffix to use for intermediate C files</entry>
222 <entry>dynamic</entry>
226 <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
227 <entry>set directory for interface files</entry>
228 <entry>dynamic</entry>
232 <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
233 <entry>set the suffix to use for interface files</entry>
234 <entry>dynamic</entry>
238 <entry><option>-o</option> <replaceable>filename</replaceable></entry>
239 <entry>set output filename</entry>
240 <entry>dynamic</entry>
244 <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
245 <entry>set output directory</entry>
246 <entry>dynamic</entry>
250 <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
251 <entry>set the filename in which to put the interface</entry>
252 <entry>dynamic</entry>
256 <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
257 <entry>set the output file suffix</entry>
258 <entry>dynamic</entry>
262 <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
263 <entry>redirect FFi stub files</entry>
264 <entry>dynamic</entry>
273 <title>Keeping intermediate files</title>
275 <para><xref linkend="keeping-intermediates"/></para>
278 <tgroup cols="4" align="left" colsep="1" rowsep="1">
282 <entry>Description</entry>
283 <entry>Static/Dynamic</entry>
284 <entry>Reverse</entry>
289 <entry><option>-keep-hc-file</option> or
290 <option>-keep-hc-files</option></entry>
291 <entry>retain intermediate <literal>.hc</literal> files</entry>
292 <entry>dynamic</entry>
296 <entry><option>-keep-s-file</option> or
297 <option>-keep-s-files</option></entry>
298 <entry>retain intermediate <literal>.s</literal> files</entry>
299 <entry>dynamic</entry>
303 <entry><option>-keep-raw-s-file</option> or
304 <option>-keep-raw-s-files</option></entry>
305 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
306 <entry>dynamic</entry>
310 <entry><option>-keep-tmp-files</option></entry>
311 <entry>retain all intermediate temporary files</entry>
312 <entry>dynamic</entry>
321 <title>Temporary files</title>
323 <para><xref linkend="temp-files"/></para>
326 <tgroup cols="4" align="left" colsep="1" rowsep="1">
330 <entry>Description</entry>
331 <entry>Static/Dynamic</entry>
332 <entry>Reverse</entry>
337 <entry><option>-tmpdir</option></entry>
338 <entry>set the directory for temporary files</entry>
339 <entry>dynamic</entry>
348 <title>Finding imports</title>
350 <para><xref linkend="search-path"/></para>
353 <tgroup cols="4" align="left" colsep="1" rowsep="1">
358 <entry>Description</entry>
359 <entry>Static/Dynamic</entry>
360 <entry>Reverse</entry>
365 <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
366 <entry>add <replaceable>dir</replaceable>,
367 <replaceable>dir2</replaceable>, etc. to import path</entry>
368 <entry>static/<literal>:set</literal></entry>
372 <entry><option>-i</option></entry>
373 <entry>Empty the import directory list</entry>
374 <entry>static/<literal>:set</literal></entry>
383 <title>Interface file options</title>
385 <para><xref linkend="hi-options"/></para>
388 <tgroup cols="4" align="left" colsep="1" rowsep="1">
393 <entry>Description</entry>
394 <entry>Static/Dynamic</entry>
395 <entry>Reverse</entry>
400 <entry><option>-ddump-hi</option></entry>
401 <entry>Dump the new interface to stdout</entry>
402 <entry>dynamic</entry>
406 <entry><option>-ddump-hi-diffs</option></entry>
407 <entry>Show the differences vs. the old interface</entry>
408 <entry>dynamic</entry>
412 <entry><option>-ddump-minimal-imports</option></entry>
413 <entry>Dump a minimal set of imports</entry>
414 <entry>dynamic</entry>
418 <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
419 <entry>Read the interface in
420 <replaceable>file</replaceable> and dump it as text to
421 <literal>stdout</literal>.</entry>
431 <title>Recompilation checking</title>
433 <para><xref linkend="recomp"/></para>
436 <tgroup cols="4" align="left" colsep="1" rowsep="1">
441 <entry>Description</entry>
442 <entry>Static/Dynamic</entry>
443 <entry>Reverse</entry>
448 <entry><option>-fforce-recomp</option></entry>
449 <entry>Turn off recompilation checking; implied by any
450 <option>-ddump-X</option> option</entry>
451 <entry>dynamic</entry>
452 <entry><option>-fno-force-recomp</option></entry>
460 <title>Interactive-mode options</title>
462 <para><xref linkend="ghci-dot-files"/></para>
465 <tgroup cols="4" align="left" colsep="1" rowsep="1">
469 <entry>Description</entry>
470 <entry>Static/Dynamic</entry>
471 <entry>Reverse</entry>
476 <entry><option>-ignore-dot-ghci</option></entry>
477 <entry>Disable reading of <filename>.ghci</filename> files</entry>
478 <entry>static</entry>
482 <entry><option>-read-dot-ghci</option></entry>
483 <entry>Enable reading of <filename>.ghci</filename> files</entry>
484 <entry>static</entry>
488 <entry><option>-fdebugging</option></entry>
489 <entry>Generate bytecode enabled for debugging</entry>
490 <entry>dynamic</entry>
494 <entry><option>-fno-debugging</option></entry>
495 <entry>Do not include debugging information in bytecodes</entry>
496 <entry>dynamic</entry>
500 <entry><option>-fno-print-bind-result</option></entry>
501 <entry><link linkend="ghci-stmts">Turn off printing of binding results in GHCi</link></entry>
502 <entry>dynamic</entry>
511 <title>Packages</title>
513 <para><xref linkend="packages"/></para>
516 <tgroup cols="4" align="left" colsep="1" rowsep="1">
520 <entry>Description</entry>
521 <entry>Static/Dynamic</entry>
522 <entry>Reverse</entry>
527 <entry><option>-package-name</option> <replaceable>P</replaceable></entry>
528 <entry>Compile to be part of package <replaceable>P</replaceable></entry>
529 <entry>dynamic</entry>
533 <entry><option>-package</option> <replaceable>P</replaceable></entry>
534 <entry>Expose package <replaceable>P</replaceable></entry>
535 <entry>static/<literal>:set</literal></entry>
539 <entry><option>-hide-all-packages</option></entry>
540 <entry>Hide all packages by default</entry>
541 <entry>static</entry>
545 <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
546 <entry>Hide package <replaceable>P</replaceable></entry>
547 <entry>static/<literal>:set</literal></entry>
551 <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
552 <entry>Ignore package <replaceable>P</replaceable></entry>
553 <entry>static/<literal>:set</literal></entry>
557 <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
558 <entry>Load more packages from <replaceable>file</replaceable></entry>
559 <entry>static</entry>
563 <entry><option>-no-user-package-conf</option></entry>
564 <entry>Don't load the user's package config file.</entry>
565 <entry>static</entry>
574 <title>Language options</title>
576 <para><xref linkend="options-language"/></para>
579 <tgroup cols="4" align="left" colsep="1" rowsep="1">
583 <entry>Description</entry>
584 <entry>Static/Dynamic</entry>
585 <entry>Reverse</entry>
590 <entry><option>-fglasgow-exts</option></entry>
591 <entry>Enable most language extensions</entry>
592 <entry>dynamic</entry>
593 <entry><option>-fno-glasgow-exts</option></entry>
596 <entry><option>-X=AllowOverlappingInstances</option></entry>
597 <entry>Enable <link linkend="instance-overlap">overlapping instances</link></entry>
598 <entry>dynamic</entry>
599 <entry><option>-X=NoAllowOverlappingInstances</option></entry>
602 <entry><option>-X=AllowIncoherentInstances</option></entry>
603 <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
604 Implies <option>-X=AllowOverlappingInstances</option> </entry>
605 <entry>dynamic</entry>
606 <entry><option>-X=NoAllowIncoherentInstances</option></entry>
609 <entry><option>-X=AllowUndecidableInstances</option></entry>
610 <entry>Enable <link linkend="undecidable-instances">undecidable instances</link></entry>
611 <entry>dynamic</entry>
612 <entry><option>-X=NoAllowUndecidableInstances</option></entry>
615 <entry><option>-fcontext-stack=N</option><replaceable>n</replaceable></entry>
616 <entry>set the <link linkend="undecidable-instances">limit for context reduction</link>. Default is 20.</entry>
617 <entry>dynamic</entry>
621 <entry><option>-X=Arrows</option></entry>
622 <entry>Enable <link linkend="arrow-notation">arrow
623 notation</link> extension</entry>
624 <entry>dynamic</entry>
625 <entry><option>-X=NoArrows</option></entry>
628 <entry><option>-fdisambiguate-record-fields</option></entry>
629 <entry>Enable <link linkend="disambiguate-fields">record
630 field disambiguation</link></entry>
631 <entry>dynamic</entry>
632 <entry><option>-fno-disambiguate-record-fields</option></entry>
635 <entry><option>-X=FFI</option> or <option>-X=ForeignFunctionInterface</option></entry>
636 <entry>Enable <link linkend="ffi">foreign function interface</link> (implied by
637 <option>-fglasgow-exts</option>)</entry>
638 <entry>dynamic</entry>
639 <entry><option>-X=NoFFI</option></entry>
642 <entry><option>-X=Generics</option></entry>
643 <entry>Enable <link linkend="generic-classes">generic classes</link></entry>
644 <entry>dynamic</entry>
645 <entry><option>-X=NoGenerics</option></entry>
648 <entry><option>-X=ImplicitParams</option></entry>
649 <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
650 Implied by <option>-fglasgow-exts</option>.</entry>
651 <entry>dynamic</entry>
652 <entry><option>-X=NoImplicitParams</option></entry>
655 <entry><option>-firrefutable-tuples</option></entry>
656 <entry>Make tuple pattern matching irrefutable</entry>
657 <entry>dynamic</entry>
658 <entry><option>-fno-irrefutable-tuples</option></entry>
661 <entry><option>-X=NoImplicitPrelude</option></entry>
662 <entry>Don't implicitly <literal>import Prelude</literal></entry>
663 <entry>dynamic</entry>
664 <entry><option>-X=ImplicitPrelude</option></entry>
667 <entry><option>-X=NoMonomorphismRestriction</option></entry>
668 <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
669 <entry>dynamic</entry>
670 <entry><option>-X=MonomorphismRrestriction</option></entry>
673 <entry><option>-X=NoMonoPatBinds</option></entry>
674 <entry>Make <link linkend="monomorphism">pattern bindings polymorphic</link></entry>
675 <entry>dynamic</entry>
676 <entry><option>-X=MonoPatBinds</option></entry>
679 <entry><option>-X=RelaxedPolyRed</option></entry>
680 <entry>Relaxed checking for <link linkend="typing-binds">mutually-recursive polymorphic functions</link></entry>
681 <entry>dynamic</entry>
682 <entry><option>-X=NoRelaxedPolyRec</option></entry>
685 <entry><option>-X=ExtendedDefaultRules</option></entry>
686 <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module</entry>
687 <entry>dynamic</entry>
688 <entry><option>-X=NoExtendedDefaultRules</option></entry>
691 <entry><option>-X=OverloadedStrings</option></entry>
692 <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
694 <entry>dynamic</entry>
695 <entry><option>-X=NoOverloadedStrings</option></entry>
698 <entry><option>-X=GADTs</option></entry>
699 <entry>Enable <link linkend="gadts">generalised algebraic data types</link>.
701 <entry>dynamic</entry>
702 <entry><option>-X=NoGADTs</option></entry>
705 <entry><option>-X=TypeFamilies</option></entry>
706 <entry>Enable <link linkend="type-families">type families</link>.</entry>
707 <entry>dynamic</entry>
708 <entry><option>-X=NoTypeFamilies</option></entry>
711 <entry><option>-X=ScopedTypeVariables</option></entry>
712 <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
713 Implied by <option>-fglasgow-exts</option>.</entry>
714 <entry>dynamic</entry>
715 <entry><option>-X=NoScopedTypeVariables</option></entry>
718 <entry><option>-X=TH</option> or <option>-X=TemplateHaskell</option></entry>
719 <entry>Enable <link linkend="template-haskell">Template Haskell</link>.
720 No longer implied by <option>-fglasgow-exts</option>.</entry>
721 <entry>dynamic</entry>
722 <entry><option>-X=NoTH</option></entry>
725 <entry><option>-X=BangPtterns</option></entry>
726 <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
727 <entry>dynamic</entry>
728 <entry><option>-X=NoBangPatterns</option></entry>
731 <entry><option>-X=CPP</option></entry>
732 <entry>Enable the <link linkend="c-pre-processor">C preprocessor</link>.</entry>
733 <entry>dynamic</entry>
734 <entry><option>-X=CPP</option></entry>
737 <entry><option>-X=PatternGuards</option></entry>
738 <entry>Enable <link linkend="pattern-guards">pattern guards</link>.</entry>
739 <entry>dynamic</entry>
740 <entry><option>-X=PatternGuards</option></entry>
743 <entry><option>-X=UnicodeSyntax</option></entry>
744 <entry>Enable unicode syntax.</entry>
745 <entry>dynamic</entry>
746 <entry><option>-X=UnicodeSyntax</option></entry>
749 <entry><option>-X=MagicHash</option></entry>
750 <entry>Enable the “magic hash”.</entry>
751 <entry>dynamic</entry>
752 <entry><option>-X=MagicHash</option></entry>
755 <entry><option>-X=PolymorphicComponents</option></entry>
756 <entry>Enable polymorphic components.</entry>
757 <entry>dynamic</entry>
758 <entry><option>-X=PolymorphicComponents</option></entry>
761 <entry><option>-X=ExistentialQuantification</option></entry>
762 <entry>Enable <link linkend="existential-quantification">existential quantification</link>.</entry>
763 <entry>dynamic</entry>
764 <entry><option>-X=ExistentialQuantification</option></entry>
767 <entry><option>-X=KindSignatures</option></entry>
768 <entry>Enable kind signatures.</entry>
769 <entry>dynamic</entry>
770 <entry><option>-X=KindSignatures</option></entry>
773 <entry><option>-X=PatternSignatures</option></entry>
774 <entry>Enable <link linkend="pattern-type-sigs">pattern type signatures</link>.</entry>
775 <entry>dynamic</entry>
776 <entry><option>-X=PatternSignatures</option></entry>
779 <entry><option>-X=EmptyDataDecls</option></entry>
780 <entry>Enable empty data declarations.</entry>
781 <entry>dynamic</entry>
782 <entry><option>-X=EmptyDataDecls</option></entry>
785 <entry><option>-X=ParallelListComp</option></entry>
786 <entry>Enable <link linkend="parallel-list-comprehensions">parallel list comprehensions</link>.</entry>
787 <entry>dynamic</entry>
788 <entry><option>-X=ParallelListComp</option></entry>
791 <entry><option>-X=UnliftedFFITypes</option></entry>
792 <entry>Enable unlifted FFI types.</entry>
793 <entry>dynamic</entry>
794 <entry><option>-X=UnliftedFFITypes</option></entry>
797 <entry><option>-X=PartiallyAppliedClosedTypeSynonyms</option></entry>
798 <entry>Enable partially applied type synonyms.</entry>
799 <entry>dynamic</entry>
800 <entry><option>-X=PartiallyAppliedClosedTypeSynonyms</option></entry>
803 <entry><option>-X=Rank2Types</option></entry>
804 <entry>Enable rank-2 types.</entry>
805 <entry>dynamic</entry>
806 <entry><option>-X=Rank2Types</option></entry>
809 <entry><option>-X=RankNTypes</option></entry>
810 <entry>Enable rank-N types.</entry>
811 <entry>dynamic</entry>
812 <entry><option>-X=RankNTypes</option></entry>
815 <entry><option>-X=TypeOperators</option></entry>
816 <entry>Enable type operators.</entry>
817 <entry>dynamic</entry>
818 <entry><option>-X=TypeOperators</option></entry>
821 <entry><option>-X=RecursiveDo</option></entry>
822 <entry>Enable <link linkend="mdo-notation">recursive do (mdo) notation</link>.</entry>
823 <entry>dynamic</entry>
824 <entry><option>-X=RecursiveDo</option></entry>
827 <entry><option>-X=Parr</option></entry>
828 <entry>Enable parallel arrays.</entry>
829 <entry>dynamic</entry>
830 <entry><option>-X=Parr</option></entry>
833 <entry><option>-X=RecordWildCards</option></entry>
834 <entry>Enable record wildcards.</entry>
835 <entry>dynamic</entry>
836 <entry><option>-X=RecordWildCards</option></entry>
839 <entry><option>-X=RecordPuns</option></entry>
840 <entry>Enable record puns.</entry>
841 <entry>dynamic</entry>
842 <entry><option>-X=RecordPuns</option></entry>
845 <entry><option>-X=DisambiguateRecordFields</option></entry>
846 <entry>Enable the <link linkend="disambiguate-fields">disambiguate fields.</link> exception</entry>
847 <entry>dynamic</entry>
848 <entry><option>-X=DisambiguateRecordFields</option></entry>
851 <entry><option>-X=UnboxedTuples</option></entry>
852 <entry>Enable <link linkend="unboxed-tuples">unboxed tuples</link>.</entry>
853 <entry>dynamic</entry>
854 <entry><option>-X=UnboxedTuples</option></entry>
857 <entry><option>-X=StandaloneDeriving</option></entry>
858 <entry>Enable standalone deriving.</entry>
859 <entry>dynamic</entry>
860 <entry><option>-X=StandaloneDeriving</option></entry>
863 <entry><option>-X=DeriveDataTypeable</option></entry>
864 <entry>Enable deriving for the Data and Typeable classes.</entry>
865 <entry>dynamic</entry>
866 <entry><option>-X=DeriveDataTypeable</option></entry>
869 <entry><option>-X=TypeSynonymInstances</option></entry>
870 <entry>Enable <link linkend="type-synonyms">type synonyms</link>.</entry>
871 <entry>dynamic</entry>
872 <entry><option>-X=TypeSynonymInstances</option></entry>
875 <entry><option>-X=FlexibleContexts</option></entry>
876 <entry>Enable flexible contexts.</entry>
877 <entry>dynamic</entry>
878 <entry><option>-X=FlexibleContexts</option></entry>
881 <entry><option>-X=FlexibleInstances</option></entry>
882 <entry>Enable flexible instances.</entry>
883 <entry>dynamic</entry>
884 <entry><option>-X=FlexibleInstances</option></entry>
887 <entry><option>-X=ConstrainedClassMethods</option></entry>
888 <entry>Enable constrained class methods.</entry>
889 <entry>dynamic</entry>
890 <entry><option>-X=ConstrainedClassMethods</option></entry>
893 <entry><option>-X=MultiParamTypeClasses</option></entry>
894 <entry>Enable <link linkend="multi-param-type-classes">multi parameter type classes</link>.</entry>
895 <entry>dynamic</entry>
896 <entry><option>-X=MultiParamTypeClasses</option></entry>
899 <entry><option>-X=FunctionalDependencies</option></entry>
900 <entry>Enable <link linkend="functional-dependencies">functional dependencies</link>.</entry>
901 <entry>dynamic</entry>
902 <entry><option>-X=FunctionalDependencies</option></entry>
905 <entry><option>-X=GeneralizedNewtypeDeriving</option></entry>
906 <entry>Enable <link linkend="newtype-deriving">newtype deriving</link>.</entry>
907 <entry>dynamic</entry>
908 <entry><option>-X=GeneralizedNewtypeDeriving</option></entry>
916 <title>Warnings</title>
918 <para><xref linkend="options-sanity"/></para>
921 <tgroup cols="4" align="left" colsep="1" rowsep="1">
925 <entry>Description</entry>
926 <entry>Static/Dynamic</entry>
927 <entry>Reverse</entry>
932 <entry><option>-W</option></entry>
933 <entry>enable normal warnings</entry>
934 <entry>dynamic</entry>
935 <entry><option>-w</option></entry>
938 <entry><option>-w</option></entry>
939 <entry>disable all warnings</entry>
940 <entry>dynamic</entry>
944 <entry><option>-Wall</option></entry>
945 <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
946 <entry>dynamic</entry>
947 <entry><option>-w</option></entry>
950 <entry><option>-Werror</option></entry>
951 <entry>make warnings fatal</entry>
952 <entry>dynamic</entry>
957 <entry><option>-fwarn-deprecations</option></entry>
958 <entry>warn about uses of functions & types that are deprecated</entry>
959 <entry>dynamic</entry>
960 <entry><option>-fno-warn-deprecations</option></entry>
964 <entry><option>-fwarn-duplicate-exports</option></entry>
965 <entry>warn when an entity is exported multiple times</entry>
966 <entry>dynamic</entry>
967 <entry><option>-fno-warn-duplicate-exports</option></entry>
971 <entry><option>-fwarn-hi-shadowing</option></entry>
972 <entry>warn when a <literal>.hi</literal> file in the
973 current directory shadows a library</entry>
974 <entry>dynamic</entry>
975 <entry><option>-fno-warn-hi-shadowing</option></entry>
979 <entry><option>-fwarn-implicit-prelude</option></entry>
980 <entry>warn when the Prelude is implicitly imported</entry>
981 <entry>dynamic</entry>
982 <entry><option>-fno-warn-implicit-prelude</option></entry>
986 <entry><option>-fwarn-incomplete-patterns</option></entry>
987 <entry>warn when a pattern match could fail</entry>
988 <entry>dynamic</entry>
989 <entry><option>-fno-warn-incomplete-patterns</option></entry>
993 <entry><option>-fwarn-incomplete-record-updates</option></entry>
994 <entry>warn when a record update could fail</entry>
995 <entry>dynamic</entry>
996 <entry><option>-fno-warn-incomplete-record-updates</option></entry>
1000 <entry><option>-fwarn-missing-fields</option></entry>
1001 <entry>warn when fields of a record are uninitialised</entry>
1002 <entry>dynamic</entry>
1003 <entry><option>-fno-warn-missing-fields</option></entry>
1007 <entry><option>-fwarn-missing-methods</option></entry>
1008 <entry>warn when class methods are undefined</entry>
1009 <entry>dynamic</entry>
1010 <entry><option>-fno-warn-missing-methods</option></entry>
1014 <entry><option>-fwarn-missing-signatures</option></entry>
1015 <entry>warn about top-level functions without signatures</entry>
1016 <entry>dynamic</entry>
1017 <entry><option>-fno-warn-missing-signatures</option></entry>
1021 <entry><option>-fwarn-name-shadowing</option></entry>
1022 <entry>warn when names are shadowed</entry>
1023 <entry>dynamic</entry>
1024 <entry><option>-fno-warn-name-shadowing</option></entry>
1028 <entry><option>-fwarn-orphans</option></entry>
1029 <entry>warn when the module contains "orphan" instance declarations
1030 or rewrite rules</entry>
1031 <entry>dynamic</entry>
1032 <entry><option>-fno-warn-orphans</option></entry>
1036 <entry><option>-fwarn-overlapping-patterns</option></entry>
1037 <entry>warn about overlapping patterns</entry>
1038 <entry>dynamic</entry>
1039 <entry><option>-fno-warn-overlapping-patterns</option></entry>
1043 <entry><option>-fwarn-simple-patterns</option></entry>
1044 <entry>warn about lambda-patterns that can fail</entry>
1045 <entry>dynamic</entry>
1046 <entry><option>-fno-warn-simple-patterns</option></entry>
1050 <entry><option>-fwarn-tabs</option></entry>
1051 <entry>warn if there are tabs in the source file</entry>
1052 <entry>dynamic</entry>
1053 <entry><option>-fno-warn-tabs</option></entry>
1057 <entry><option>-fwarn-type-defaults</option></entry>
1058 <entry>warn when defaulting happens</entry>
1059 <entry>dynamic</entry>
1060 <entry><option>-fno-warn-type-defaults</option></entry>
1064 <entry><option>-fwarn-monomorphism-restriction</option></entry>
1065 <entry>warn when the Monomorphism Restriction is applied</entry>
1066 <entry>dynamic</entry>
1067 <entry><option>-fno-warn-monomorphism-restriction</option></entry>
1071 <entry><option>-fwarn-unused-binds</option></entry>
1072 <entry>warn about bindings that are unused</entry>
1073 <entry>dynamic</entry>
1074 <entry><option>-fno-warn-unused-binds</option></entry>
1078 <entry><option>-fwarn-unused-imports</option></entry>
1079 <entry>warn about unnecessary imports</entry>
1080 <entry>dynamic</entry>
1081 <entry><option>-fno-warn-unused-imports</option></entry>
1085 <entry><option>-fwarn-unused-matches</option></entry>
1086 <entry>warn about variables in patterns that aren't used</entry>
1087 <entry>dynamic</entry>
1088 <entry><option>-fno-warn-unused-matches</option></entry>
1097 <title>Optimisation levels</title>
1099 <para><xref linkend="options-optimise"/></para>
1102 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1106 <entry>Description</entry>
1107 <entry>Static/Dynamic</entry>
1108 <entry>Reverse</entry>
1113 <entry><option>-O</option></entry>
1114 <entry>Enable default optimisation (level 1)</entry>
1115 <entry>dynamic</entry>
1116 <entry><option>-O0</option></entry>
1119 <entry><option>-O</option><replaceable>n</replaceable></entry>
1120 <entry>Set optimisation level <replaceable>n</replaceable></entry>
1121 <entry>dynamic</entry>
1122 <entry><option>-O0</option></entry>
1130 <title>Individual optimisations</title>
1132 <para><xref linkend="options-f"/></para>
1135 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1139 <entry>Description</entry>
1140 <entry>Static/Dynamic</entry>
1141 <entry>Reverse</entry>
1146 <entry><option>-fcase-merge</option></entry>
1147 <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
1148 <entry>dynamic</entry>
1149 <entry><option>-fno-case-merge</option></entry>
1153 <entry><option>-fdicts-strict</option></entry>
1154 <entry>Make dictionaries strict</entry>
1155 <entry>static</entry>
1156 <entry><option>-fno-dicts-strict</option></entry>
1160 <entry><option>-fdo-eta-reduction</option></entry>
1161 <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
1162 <entry>dynamic</entry>
1163 <entry><option>-fno-do-eta-reduction</option></entry>
1167 <entry><option>-fdo-lambda-eta-expansion</option></entry>
1168 <entry>Enable lambda eta-reduction</entry>
1169 <entry>dynamic</entry>
1170 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
1174 <entry><option>-fexcess-precision</option></entry>
1175 <entry>Enable excess intermediate precision</entry>
1176 <entry>dynamic</entry>
1177 <entry><option>-fno-excess-precision</option></entry>
1181 <entry><option>-fignore-asserts</option></entry>
1182 <entry>Ignore assertions in the source</entry>
1183 <entry>dynamic</entry>
1184 <entry><option>-fno-ignore-asserts</option></entry>
1188 <entry><option>-fignore-interface-pragmas</option></entry>
1189 <entry>Ignore pragmas in interface files</entry>
1190 <entry>dynamic</entry>
1191 <entry><option>-fno-ignore-interface-pragmas</option></entry>
1195 <entry><option>-fomit-interface-pragmas</option></entry>
1196 <entry>Don't generate interface pragmas</entry>
1197 <entry>dynamic</entry>
1198 <entry><option>-fno-omit-interface-pragmas</option></entry>
1202 <entry><option>-fmax-worker-args</option></entry>
1203 <entry>If a worker has that many arguments, none will be
1204 unpacked anymore (default: 10)</entry>
1205 <entry>static</entry>
1210 <entry><option>-fmax-simplifier-iterations</option></entry>
1211 <entry>Set the max iterations for the simplifier</entry>
1212 <entry>dynamic</entry>
1217 <entry><option>-fno-state-hack</option></entry>
1218 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1219 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
1220 <entry>static</entry>
1225 <entry><option>-fcse</option></entry>
1226 <entry>Turn on common sub-expression elimination. Implied by <option>-O</option>.</entry>
1227 <entry>dynamic</entry>
1228 <entry>-fno-cse</entry>
1232 <entry><option>-ffull-laziness</option></entry>
1233 <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
1234 <entry>dynamic</entry>
1235 <entry>-fno-full-laziness</entry>
1239 <entry><option>-frewrite-rules</option></entry>
1240 <entry>Switch on all rewrite rules (including rules
1241 generated by automatic specialisation of overloaded functions).
1242 Implied by <option>-O</option>. </entry>
1243 <entry>dynamic</entry>
1244 <entry><option>-fno-rewrite-rules</option></entry>
1248 <entry><option>-fstrictness</option></entry>
1249 <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1250 <entry>dynamic</entry>
1251 <entry>-fno-strictness</entry>
1255 <entry><option>-fspec-constr</option></entry>
1256 <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1257 <entry>dynamic</entry>
1258 <entry>-fno-spec-constr</entry>
1262 <entry><option>-fliberate-case</option></entry>
1263 <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
1264 <entry>dynamic</entry>
1265 <entry>-fno-liberate-case</entry>
1269 <entry><option>-fspec-threshold</option>=<replaceable>n</replaceable></entry>
1270 <entry>Set the size threshold for function specialisation to <replaceable>n</replaceable>, for both
1271 the liberate-case and SpecConstr transformations (default: 200)</entry>
1272 <entry>static</entry>
1273 <entry><option>-</option></entry>
1277 <entry><option>-funbox-strict-fields</option></entry>
1278 <entry>Flatten strict constructor fields</entry>
1279 <entry>dynamic</entry>
1280 <entry><option>-fno-unbox-strict-fields</option></entry>
1284 <entry><option>-funfolding-creation-threshold</option></entry>
1285 <entry>Tweak unfolding settings</entry>
1286 <entry>static</entry>
1287 <entry><option>-fno-unfolding-creation-threshold</option></entry>
1291 <entry><option>-funfolding-fun-discount</option></entry>
1292 <entry>Tweak unfolding settings</entry>
1293 <entry>static</entry>
1294 <entry><option>-fno-unfolding-fun-discount</option></entry>
1298 <entry><option>-funfolding-keeness-factor</option></entry>
1299 <entry>Tweak unfolding settings</entry>
1300 <entry>static</entry>
1301 <entry><option>-fno-unfolding-keeness-factor</option></entry>
1305 <entry><option>-funfolding-update-in-place</option></entry>
1306 <entry>Tweak unfolding settings</entry>
1307 <entry>static</entry>
1308 <entry><option>-fno-unfolding-update-in-place</option></entry>
1312 <entry><option>-funfolding-use-threshold</option></entry>
1313 <entry>Tweak unfolding settings</entry>
1314 <entry>static</entry>
1315 <entry><option>-fno-unfolding-use-threshold</option></entry>
1319 <entry><option>-fno-pre-inlining</option></entry>
1320 <entry>Turn off pre-inlining</entry>
1321 <entry>static</entry>
1330 <title>Profiling options</title>
1332 <para><xref linkend="profiling"/></para>
1335 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1339 <entry>Description</entry>
1340 <entry>Static/Dynamic</entry>
1341 <entry>Reverse</entry>
1346 <entry><option>-auto</option></entry>
1347 <entry>Auto-add <literal>_scc_</literal>s to all
1348 exported functions</entry>
1349 <entry>static</entry>
1350 <entry><option>-no-auto</option></entry>
1353 <entry><option>-auto-all</option></entry>
1354 <entry>Auto-add <literal>_scc_</literal>s to all
1355 top-level functions</entry>
1356 <entry>static</entry>
1357 <entry><option>-no-auto-all</option></entry>
1360 <entry><option>-caf-all</option></entry>
1361 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1362 <entry>static</entry>
1363 <entry><option>-no-caf-all</option></entry>
1366 <entry><option>-prof</option></entry>
1367 <entry>Turn on profiling</entry>
1368 <entry>static</entry>
1372 <entry><option>-ticky</option></entry>
1373 <entry>Turn on ticky-ticky profiling</entry>
1374 <entry>static</entry>
1383 <title>Program coverage options</title>
1385 <para><xref linkend="hpc"/></para>
1388 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1392 <entry>Description</entry>
1393 <entry>Static/Dynamic</entry>
1394 <entry>Reverse</entry>
1399 <entry><option>-fhpc</option></entry>
1400 <entry>Turn on Haskell program coverage instrumentation</entry>
1401 <entry>static</entry>
1402 <entry><option>-</option></entry>
1405 <entry><option>-hpcdir dir</option></entry>
1406 <entry>Directory to deposit .mix files during compilation</entry>
1407 <entry>dynamic</entry>
1408 <entry><option>-</option></entry>
1416 <title>Haskell pre-processor options</title>
1418 <para><xref linkend="pre-processor"/></para>
1421 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1425 <entry>Description</entry>
1426 <entry>Static/Dynamic</entry>
1427 <entry>Reverse</entry>
1432 <entry><option>-F</option></entry>
1434 Enable the use of a pre-processor
1435 (set with <option>-pgmF</option>)
1437 <entry>dynamic</entry>
1446 <title>C pre-processor options</title>
1448 <para><xref linkend="c-pre-processor"/></para>
1451 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1455 <entry>Description</entry>
1456 <entry>Static/Dynamic</entry>
1457 <entry>Reverse</entry>
1462 <entry><option>-cpp</option></entry>
1463 <entry>Run the C pre-processor on Haskell source files</entry>
1464 <entry>dynamic</entry>
1468 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1469 <entry>Define a symbol in the C pre-processor</entry>
1470 <entry>dynamic</entry>
1471 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1474 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1475 <entry>Undefine a symbol in the C pre-processor</entry>
1476 <entry>dynamic</entry>
1480 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1481 <entry>Add <replaceable>dir</replaceable> to the
1482 directory search list for <literal>#include</literal> files</entry>
1483 <entry>dynamic</entry>
1492 <title>C compiler options</title>
1494 <para><xref linkend="options-C-compiler"/></para>
1496 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1500 <entry>Description</entry>
1501 <entry>Static/Dynamic</entry>
1502 <entry>Reverse</entry>
1507 <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1508 <entry>Include <replaceable>file</replaceable> when
1509 compiling the <filename>.hc</filename> file</entry>
1510 <entry>dynamic</entry>
1519 <title>Code generation options</title>
1521 <para><xref linkend="options-codegen"/></para>
1524 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1528 <entry>Description</entry>
1529 <entry>Static/Dynamic</entry>
1530 <entry>Reverse</entry>
1535 <entry><option>-fasm</option></entry>
1536 <entry>Use the native code generator</entry>
1537 <entry>dynamic</entry>
1538 <entry>-fvia-C</entry>
1541 <entry><option>-fvia-C</option></entry>
1542 <entry>Compile via C</entry>
1543 <entry>dynamic</entry>
1544 <entry>-fasm</entry>
1547 <entry><option>-fno-code</option></entry>
1548 <entry>Omit code generation</entry>
1549 <entry>dynamic</entry>
1553 <entry><option>-fbyte-code</option></entry>
1554 <entry>Generate byte-code</entry>
1555 <entry>dynamic</entry>
1559 <entry><option>-fobject-code</option></entry>
1560 <entry>Generate object code</entry>
1561 <entry>dynamic</entry>
1570 <title>Linking options</title>
1572 <para><xref linkend="options-linker"/></para>
1575 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1579 <entry>Description</entry>
1580 <entry>Static/Dynamic</entry>
1581 <entry>Reverse</entry>
1586 <entry><option>-fPIC</option></entry>
1587 <entry>Generate position-independent code (where available)</entry>
1588 <entry>static</entry>
1592 <entry><option>-dynamic</option></entry>
1593 <entry>Use dynamic Haskell libraries (if available)</entry>
1594 <entry>static</entry>
1598 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1599 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1600 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1601 <entry>dynamic</entry>
1605 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1606 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1607 directories searched for frameworks.
1608 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1609 <entry>dynamic</entry>
1613 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1614 <entry>Link in library <replaceable>lib</replaceable></entry>
1615 <entry>dynamic</entry>
1619 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1620 <entry>Add <replaceable>dir</replaceable> to the list of
1621 directories searched for libraries</entry>
1622 <entry>dynamic</entry>
1626 <entry><option>-main-is</option></entry>
1627 <entry>Set main module and function</entry>
1628 <entry>dynamic</entry>
1632 <entry><option>--mk-dll</option></entry>
1633 <entry>DLL-creation mode (Windows only)</entry>
1634 <entry>dynamic</entry>
1638 <entry><option>-no-hs-main</option></entry>
1639 <entry>Don't assume this program contains <literal>main</literal></entry>
1640 <entry>dynamic</entry>
1644 <entry><option>-no-link</option></entry>
1645 <entry>Omit linking</entry>
1646 <entry>dynamic</entry>
1650 <entry><option>-split-objs</option></entry>
1651 <entry>Split objects (for libraries)</entry>
1652 <entry>dynamic</entry>
1656 <entry><option>-static</option></entry>
1657 <entry>Use static Haskell libraries</entry>
1658 <entry>static</entry>
1662 <entry><option>-threaded</option></entry>
1663 <entry>Use the threaded runtime</entry>
1664 <entry>static</entry>
1668 <entry><option>-debug</option></entry>
1669 <entry>Use the debugging runtime</entry>
1670 <entry>static</entry>
1679 <title>Replacing phases</title>
1681 <para><xref linkend="replacing-phases"/></para>
1684 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1688 <entry>Description</entry>
1689 <entry>Static/Dynamic</entry>
1690 <entry>Reverse</entry>
1695 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1696 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1697 <entry>dynamic</entry>
1701 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1702 <entry>Use <replaceable>cmd</replaceable> as the C
1703 pre-processor (with <option>-cpp</option> only)</entry>
1704 <entry>dynamic</entry>
1708 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1709 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1710 <entry>dynamic</entry>
1714 <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1715 <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1716 <entry>dynamic</entry>
1720 <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1721 <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1722 <entry>dynamic</entry>
1726 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1727 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1728 <entry>dynamic</entry>
1732 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1733 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1734 <entry>dynamic</entry>
1738 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1739 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1740 <entry>dynamic</entry>
1744 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1745 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1746 (with <option>-F</option> only)</entry>
1747 <entry>dynamic</entry>
1753 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1754 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1755 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1756 <indexterm><primary><option>-pgma</option></primary></indexterm>
1757 <indexterm><primary><option>-pgml</option></primary></indexterm>
1758 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1759 <indexterm><primary><option>-pgmF</option></primary></indexterm>
1764 <title>Forcing options to particular phases</title>
1766 <para><xref linkend="forcing-options-through"/></para>
1769 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1773 <entry>Description</entry>
1774 <entry>Static/Dynamic</entry>
1775 <entry>Reverse</entry>
1780 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1781 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1782 <entry>dynamic</entry>
1786 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1787 <entry>pass <replaceable>option</replaceable> to cpp (with
1788 <option>-cpp</option> only)</entry>
1789 <entry>dynamic</entry>
1793 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1794 <entry>pass <replaceable>option</replaceable> to the
1795 custom pre-processor</entry>
1796 <entry>dynamic</entry>
1800 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1801 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1802 <entry>dynamic</entry>
1806 <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1807 <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1808 <entry>dynamic</entry>
1812 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1813 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1814 <entry>dynamic</entry>
1818 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1819 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1820 <entry>dynamic</entry>
1824 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1825 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1826 <entry>dynamic</entry>
1830 <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1831 <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1832 <entry>dynamic</entry>
1841 <title>Platform-specific options</title>
1843 <para><xref linkend="options-platform"/></para>
1846 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1850 <entry>Description</entry>
1851 <entry>Static/Dynamic</entry>
1852 <entry>Reverse</entry>
1857 <entry><option>-monly-[432]-regs</option></entry>
1858 <entry>(x86 only) give some registers back to the C compiler</entry>
1859 <entry>dynamic</entry>
1869 <title>External core file options</title>
1871 <para><xref linkend="ext-core"/></para>
1874 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1878 <entry>Description</entry>
1879 <entry>Static/Dynamic</entry>
1880 <entry>Reverse</entry>
1885 <entry><option>-fext-core</option></entry>
1886 <entry>Generate <filename>.hcr</filename> external Core files</entry>
1887 <entry>static</entry>
1897 <title>Compiler debugging options</title>
1899 <para><xref linkend="options-debugging"/></para>
1902 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1906 <entry>Description</entry>
1907 <entry>Static/Dynamic</entry>
1908 <entry>Reverse</entry>
1913 <entry><option>-dcore-lint</option></entry>
1914 <entry>Turn on internal sanity checking</entry>
1915 <entry>dynamic</entry>
1919 <entry><option>-ddump-asm</option></entry>
1920 <entry>Dump assembly</entry>
1921 <entry>dynamic</entry>
1925 <entry><option>-ddump-bcos</option></entry>
1926 <entry>Dump interpreter byte code</entry>
1927 <entry>dynamic</entry>
1931 <entry><option>-ddump-cmm</option></entry>
1932 <entry>Dump C-- output</entry>
1933 <entry>dynamic</entry>
1937 <entry><option>-ddump-cpranal</option></entry>
1938 <entry>Dump output from CPR analysis</entry>
1939 <entry>dynamic</entry>
1943 <entry><option>-ddump-cse</option></entry>
1944 <entry>Dump CSE output</entry>
1945 <entry>dynamic</entry>
1949 <entry><option>-ddump-deriv</option></entry>
1950 <entry>Dump deriving output</entry>
1951 <entry>dynamic</entry>
1955 <entry><option>-ddump-ds</option></entry>
1956 <entry>Dump desugarer output</entry>
1957 <entry>dynamic</entry>
1961 <entry><option>-ddump-flatC</option></entry>
1962 <entry>Dump “flat” C</entry>
1963 <entry>dynamic</entry>
1967 <entry><option>-ddump-foreign</option></entry>
1968 <entry>Dump <literal>foreign export</literal> stubs</entry>
1969 <entry>dynamic</entry>
1973 <entry><option>-ddump-hpc</option></entry>
1974 <entry>Dump after intrumentation for program coverage</entry>
1975 <entry>dynamic</entry>
1979 <entry><option>-ddump-inlinings</option></entry>
1980 <entry>Dump inlining info</entry>
1981 <entry>dynamic</entry>
1985 <entry><option>-ddump-occur-anal</option></entry>
1986 <entry>Dump occurrence analysis output</entry>
1987 <entry>dynamic</entry>
1991 <entry><option>-ddump-opt-cmm</option></entry>
1992 <entry>Dump the results of C-- to C-- optimising passes</entry>
1993 <entry>dynamic</entry>
1997 <entry><option>-ddump-parsed</option></entry>
1998 <entry>Dump parse tree</entry>
1999 <entry>dynamic</entry>
2003 <entry><option>-ddump-prep</option></entry>
2004 <entry>Dump prepared core</entry>
2005 <entry>dynamic</entry>
2009 <entry><option>-ddump-rn</option></entry>
2010 <entry>Dump renamer output</entry>
2011 <entry>dynamic</entry>
2015 <entry><option>-ddump-rules</option></entry>
2016 <entry>Dump rules</entry>
2017 <entry>dynamic</entry>
2021 <entry><option>-ddump-simpl</option></entry>
2022 <entry>Dump final simplifier output</entry>
2023 <entry>dynamic</entry>
2027 <entry><option>-ddump-simpl-iterations</option></entry>
2028 <entry>Dump output from each simplifier iteration</entry>
2029 <entry>dynamic</entry>
2033 <entry><option>-ddump-spec</option></entry>
2034 <entry>Dump specialiser output</entry>
2035 <entry>dynamic</entry>
2039 <entry><option>-ddump-splices</option></entry>
2040 <entry>Dump TH splided expressions, and what they evaluate to</entry>
2041 <entry>dynamic</entry>
2045 <entry><option>-ddump-stg</option></entry>
2046 <entry>Dump final STG</entry>
2047 <entry>dynamic</entry>
2051 <entry><option>-ddump-stranal</option></entry>
2052 <entry>Dump strictness analyser output</entry>
2053 <entry>dynamic</entry>
2057 <entry><option>-ddump-tc</option></entry>
2058 <entry>Dump typechecker output</entry>
2059 <entry>dynamic</entry>
2063 <entry><option>-ddump-types</option></entry>
2064 <entry>Dump type signatures</entry>
2065 <entry>dynamic</entry>
2069 <entry><option>-ddump-worker-wrapper</option></entry>
2070 <entry>Dump worker-wrapper output</entry>
2071 <entry>dynamic</entry>
2075 <entry><option>-ddump-if-trace</option></entry>
2076 <entry>Trace interface files</entry>
2077 <entry>dynamic</entry>
2081 <entry><option>-ddump-tc-trace</option></entry>
2082 <entry>Trace typechecker</entry>
2083 <entry>dynamic</entry>
2087 <entry><option>-ddump-rn-trace</option></entry>
2088 <entry>Trace renamer</entry>
2089 <entry>dynamic</entry>
2093 <entry><option>-ddump-rn-stats</option></entry>
2094 <entry>Renamer stats</entry>
2095 <entry>dynamic</entry>
2099 <entry><option>-ddump-simpl-stats</option></entry>
2100 <entry>Dump simplifier stats</entry>
2101 <entry>dynamic</entry>
2105 <entry><option>-dppr-debug</option></entry>
2106 <entry>Turn on debug printing (more verbose)</entry>
2107 <entry>static</entry>
2111 <entry><option>-dppr-noprags</option></entry>
2112 <entry>Don't output pragma info in dumps</entry>
2113 <entry>static</entry>
2117 <entry><option>-dppr-user-length</option></entry>
2118 <entry>Set the depth for printing expressions in error msgs</entry>
2119 <entry>static</entry>
2123 <entry><option>-dsource-stats</option></entry>
2124 <entry>Dump haskell source stats</entry>
2125 <entry>dynamic</entry>
2129 <entry><option>-dcmm-lint</option></entry>
2130 <entry>C-- pass sanity checking</entry>
2131 <entry>dynamic</entry>
2135 <entry><option>-dstg-lint</option></entry>
2136 <entry>STG pass sanity checking</entry>
2137 <entry>dynamic</entry>
2141 <entry><option>-dstg-stats</option></entry>
2142 <entry>Dump STG stats</entry>
2143 <entry>dynamic</entry>
2147 <entry><option>-dverbose-core2core</option></entry>
2148 <entry>Show output from each core-to-core pass</entry>
2149 <entry>dynamic</entry>
2153 <entry><option>-dverbose-stg2stg</option></entry>
2154 <entry>Show output from each STG-to-STG pass</entry>
2155 <entry>dynamic</entry>
2159 <entry><option>-dshow-passes</option></entry>
2160 <entry>Print out each pass name as it happens</entry>
2161 <entry>dynamic</entry>
2165 <entry><option>-dfaststring-stats</option></entry>
2166 <entry>Show statistics for fast string usage when finished</entry>
2167 <entry>dynamic</entry>
2171 <entry><option>-unreg</option></entry>
2172 <entry>Enable unregisterised compilation</entry>
2173 <entry>static</entry>
2182 <title>Misc compiler options</title>
2185 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2189 <entry>Description</entry>
2190 <entry>Static/Dynamic</entry>
2191 <entry>Reverse</entry>
2196 <entry><option>-fno-hi-version-check</option></entry>
2197 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
2198 <entry>static</entry>
2202 <entry><option>-dno-black-holing</option></entry>
2203 <entry>Turn off black holing (probably doesn't work)</entry>
2204 <entry>static</entry>
2208 <entry><option>-fno-method-sharing</option></entry>
2209 <entry>Don't share specialisations of overloaded functions</entry>
2210 <entry>static</entry>
2214 <entry><option>-fhistory-size</option></entry>
2215 <entry>Set simplification history size</entry>
2216 <entry>static</entry>
2220 <entry><option>-funregisterised</option></entry>
2221 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
2222 <entry>static</entry>
2226 <entry><option>-fno-asm-mangling</option></entry>
2227 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
2228 <entry>dynamic</entry>
2242 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
2248 ;;; Local Variables: ***
2250 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***