.\" Man page generated from reStructuredText. . .TH "GHC" "1" "Dec 17, 2016" "8.0.1" "Glasgow Haskell Compiler" .SH NAME ghc \- the Glasgow Haskell Compiler . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C ghc [option|filename] ghci [option|filename] .ft P .fi .UNINDENT .UNINDENT .SH DESCRIPTION .sp This manual page documents briefly the \fBghc\fP and \fBghci\fP commands. Note that \fBghci\fP is not yet available on all architectures. Extensive documentation is available in various other formats including PDF and HTML; see below. .sp Each of GHC\(aqs command line options is classified as either \fIstatic\fP or \fIdynamic\fP\&. A static flag may only be specified on the command line, whereas a dynamic flag may also be given in an \fBOPTIONS\fP pragma in a source file or set from the GHCi command\-line with \fB:set\fP . .sp As a rule of thumb, all the language options are dynamic, as are the warning options and the debugging options. .sp The rest are static, with the notable exceptions of \fB\-v\fP, \fB\-cpp\fP, \fB\-fasm\fP, \fB\-fvia\-C\fP, \fB\-fllvm\fP, and \fB\-#include\fP\&. The OPTIONS sections lists the status of each flag. .sp Common suffixes of file names for Haskell are: .INDENT 0.0 .TP .B \fB\&.hs\fP Haskell source code; preprocess, compile .TP .B \fB\&.lhs\fP literate Haskell source; unlit, preprocess, compile .TP .B \fB\&.hi\fP Interface file; contains information about exported symbols .TP .B \fB\&.hc\fP intermediate C files .TP .B \fB\&.⟨way⟩_o\fP object files for "way" ⟨way⟩; common ways are: .INDENT 7.0 .TP .B \fBdyn\fP dynamically\-linked .TP .B \fBp\fP built with profiling .UNINDENT .TP .B \fB\&.⟨way⟩_hi\fP interface files for "way" ⟨way⟩; common ways are: .UNINDENT .SH OPTIONS .INDENT 0.0 .TP .B Code generation \fB\-fasm\fP \fB\-fllvm\fP \fB\-fno\-code\fP \fB\-fwrite\-interface\fP \fB\-fbyte\-code\fP \fB\-fobject\-code\fP \fB\-g⟨n⟩\fP \fB\-dynamic\fP \fB\-dynamic\-too\fP .TP .B Debugging the compiler \fB\-dcore\-lint\fP \fB\-ddump\-to\-file\fP \fB\-ddump\-asm\fP \fB\-ddump\-bcos\fP \fB\-ddump\-cmm\fP \fB\-ddump\-core\-stats\fP \fB\-ddump\-cse\fP \fB\-ddump\-deriv\fP \fB\-ddump\-ds\fP \fB\-ddump\-foreign\fP \fB\-ddump\-hpc\fP \fB\-ddump\-inlinings\fP \fB\-ddump\-llvm\fP \fB\-ddump\-occur\-anal\fP \fB\-ddump\-opt\-cmm\fP \fB\-ddump\-parsed\fP \fB\-ddump\-prep\fP \fB\-ddump\-rn\fP \fB\-ddump\-rule\-firings\fP \fB\-ddump\-rule\-rewrites\fP \fB\-ddump\-rules\fP \fB\-ddump\-vect\fP \fB\-ddump\-simpl\fP \fB\-ddump\-simpl\-iterations\fP \fB\-ddump\-spec\fP \fB\-ddump\-splices\fP \fB\-ddump\-stg\fP \fB\-ddump\-stranal\fP \fB\-ddump\-str\-signatures\fP \fB\-ddump\-tc\fP \fB\-dth\-dec\-file\fP \fB\-ddump\-types\fP \fB\-ddump\-worker\-wrapper\fP \fB\-ddump\-if\-trace\fP \fB\-ddump\-tc\-trace\fP \fB\-ddump\-vt\-trace\fP \fB\-ddump\-rn\-trace\fP \fB\-ddump\-rn\-stats\fP \fB\-ddump\-simpl\-stats\fP \fB\-dno\-debug\-output\fP \fB\-dppr\-debug\fP \fB\-dppr\-user\-length\fP \fB\-dppr\-cols⟨N⟩\fP \fB\-dppr\-case\-as\-let\fP \fB\-dsuppress\-all\fP \fB\-dsuppress\-uniques\fP \fB\-dsuppress\-idinfo\fP \fB\-dsuppress\-unfoldings\fP \fB\-dsuppress\-module\-prefixes\fP \fB\-dsuppress\-type\-signatures\fP \fB\-dsuppress\-type\-applications\fP \fB\-dsuppress\-coercions\fP \fB\-dsource\-stats\fP \fB\-dcmm\-lint\fP \fB\-dstg\-lint\fP \fB\-dstg\-stats\fP \fB\-dverbose\-core2core\fP \fB\-dverbose\-stg2stg\fP \fB\-dshow\-passes\fP \fB\-dfaststring\-stats\fP \fB\-frule\-check\fP .TP .B C pre\-processor \fB\-cpp\fP \fB\-D⟨symbol⟩[=⟨value⟩]\fP \fB\-U⟨symbol⟩\fP \fB\-I⟨dir⟩\fP .TP .B Finding imports \fB\-i ⟨dir1⟩:⟨dir2⟩:...\fP \fB\-i\fP .TP .B Interactive mode \fB\-ignore\-dot\-ghci\fP \fB\-ghci\-script\fP \fB\-fbreak\-on\-error\fP \fB\-fbreak\-on\-exception\fP \fB\-fghci\-hist\-size=⟨n⟩\fP \fB\-fprint\-evld\-with\-show\fP \fB\-fprint\-bind\-result\fP \fB\-fno\-print\-bind\-contents\fP \fB\-fno\-implicit\-import\-qualified\fP \fB\-interactive\-print\fP .TP .B Interface files \fB\-ddump\-hi\fP \fB\-ddump\-hi\-diffs\fP \fB\-ddump\-minimal\-imports\fP \fB\-\-show\-iface ⟨file⟩\fP .TP .B Keeping intermediate files \fB\-keep\-hc\-file, \-keep\-hc\-files\fP \fB\-keep\-llvm\-file, \-keep\-llvm\-files\fP \fB\-keep\-s\-file, \-keep\-s\-files\fP \fB\-keep\-tmp\-files\fP .TP .B Language options \fB\-fconstraint\-solver\-iterations=⟨n⟩\fP \fB\-freduction\-depth=⟨n⟩\fP \fB\-fcontext\-stack=⟨n⟩\fP \fB\-fglasgow\-exts\fP \fB\-firrefutable\-tuples\fP \fB\-fpackage\-trust\fP \fB\-ftype\-function\-depth=⟨n⟩\fP \fB\-XAllowAmbiguousTypes\fP \fB\-XArrows\fP \fB\-XApplicativeDo\fP \fB\-XAutoDeriveTypeable\fP \fB\-XBangPatterns\fP \fB\-XBinaryLiterals\fP \fB\-XCApiFFI\fP \fB\-XConstrainedClassMethods\fP \fB\-XConstraintKinds\fP \fB\-XCPP\fP \fB\-XDataKinds\fP \fB\-XDefaultSignatures\fP \fB\-XDeriveAnyClass\fP \fB\-XDeriveDataTypeable\fP \fB\-XDeriveFunctor\fP \fB\-XDeriveFoldable\fP \fB\-XDeriveGeneric\fP \fB\-XDeriveGeneric\fP \fB\-XDeriveLift\fP \fB\-XDeriveTraversable\fP \fB\-XDisambiguateRecordFields\fP \fB\-XEmptyCase\fP \fB\-XEmptyDataDecls\fP \fB\-XExistentialQuantification\fP \fB\-XExplicitForAll\fP \fB\-XExplicitNamespaces\fP \fB\-XExtendedDefaultRules\fP \fB\-XFlexibleContexts\fP \fB\-XFlexibleInstances\fP \fB\-XForeignFunctionInterface\fP \fB\-XFunctionalDependencies\fP \fB\-XGADTs\fP \fB\-XGADTSyntax\fP \fB\-XGeneralizedNewtypeDeriving\fP \fB\-XGenerics\fP \fB\-XImplicitParams\fP \fB\-XNoImplicitPrelude\fP \fB\-XImpredicativeTypes\fP \fB\-XIncoherentInstances\fP \fB\-XTypeFamilyDependencies\fP \fB\-XInstanceSigs\fP \fB\-XInterruptibleFFI\fP \fB\-XKindSignatures\fP \fB\-XLambdaCase\fP \fB\-XLiberalTypeSynonyms\fP \fB\-XMagicHash\fP \fB\-XMonadComprehensions\fP \fB\-XMonoLocalBinds\fP \fB\-XNoMonomorphismRestriction\fP \fB\-XMultiParamTypeClasses\fP \fB\-XMultiWayIf\fP \fB\-XNamedFieldPuns\fP \fB\-XNamedWildCards\fP \fB\-XNegativeLiterals\fP \fB\-XNoNPlusKPatterns\fP \fB\-XNullaryTypeClasses\fP \fB\-XNumDecimals\fP \fB\-XOverlappingInstances\fP \fB\-XOverloadedLists\fP \fB\-XOverloadedStrings\fP \fB\-XPackageImports\fP \fB\-XParallelArrays\fP \fB\-XParallelListComp\fP \fB\-XPartialTypeSignatures\fP \fB\-XPatternGuards\fP \fB\-XPatternSynonyms\fP \fB\-XPolyKinds\fP \fB\-XPolymorphicComponents\fP \fB\-XPostfixOperators\fP \fB\-XQuasiQuotes\fP \fB\-XRank2Types\fP \fB\-XRankNTypes\fP \fB\-XRebindableSyntax\fP \fB\-XRecordWildCards\fP \fB\-XRecursiveDo\fP \fB\-XRelaxedPolyRec\fP \fB\-XRoleAnnotations\fP \fB\-XSafe\fP \fB\-XScopedTypeVariables\fP \fB\-XStandaloneDeriving\fP \fB\-XStrictData\fP \fB\-XTemplateHaskell\fP \fB\-XTemplateHaskellQuotes\fP \fB\-XNoTraditionalRecordSyntax\fP \fB\-XTransformListComp\fP \fB\-XTrustworthy\fP \fB\-XTupleSections\fP \fB\-XTypeFamilies\fP \fB\-XTypeOperators\fP \fB\-XTypeSynonymInstances\fP \fB\-XUnboxedTuples\fP \fB\-XUndecidableInstances\fP \fB\-XUnicodeSyntax\fP \fB\-XUnliftedFFITypes\fP \fB\-XUnsafe\fP \fB\-XViewPatterns\fP .TP .B Linking options \fB\-shared\fP \fB\-staticlib\fP \fB\-fPIC\fP \fB\-dynload\fP \fB\-framework⟨name⟩\fP \fB\-framework\-path⟨name⟩\fP \fB\-l⟨lib⟩\fP \fB\-L⟨dir⟩\fP \fB\-main\-is\fP \fB\-\-mk\-dll\fP \fB\-no\-hs\-main\fP \fB\-rtsopts,\-rtsopts={none,some,all}\fP \fB\-with\-rtsopts=opts\fP \fB\-no\-rtsopts\-suggestions\fP \fB\-no\-link\fP \fB\-split\-objs\fP \fB\-split\-sections\fP \fB\-static\fP \fB\-threaded\fP \fB\-debug\fP \fB\-ticky\fP \fB\-eventlog\fP \fB\-fno\-gen\-manifest\fP \fB\-fno\-embed\-manifest\fP \fB\-fno\-shared\-implib\fP \fB\-dylib\-install\-name ⟨path⟩\fP \fB\-rdynamic\fP .TP .B Miscellaneous options \fB\-jN\fP \fB\-fno\-hi\-version\-check\fP \fB\-fhistory\-size\fP \fB\-fno\-ghci\-history\fP \fB\-fno\-ghci\-sandbox\fP \fB\-freverse\-errors\fP .TP .B Modes of operation \fB\-\-help,\-?\fP \fB\-\-interactive\fP \fB\-\-make\fP \fB\-e expr\fP \fB\-\-show\-iface\fP \fB\-M\fP \fB\-\-frontend ⟨module⟩\fP \fB\-\-supported\-extensions, \-\-supported\-languages\fP \fB\-\-show\-options\fP \fB\-\-info\fP \fB\-\-version, \-V\fP \fB\-\-numeric\-version\fP \fB\-\-print\-libdir\fP .TP .B Individual optimizations \fB\-fcall\-arity\fP \fB\-fcase\-merge\fP \fB\-fcmm\-elim\-common\-blocks\fP \fB\-fcmm\-sink\fP \fB\-fcpr\-anal\fP \fB\-fcse\fP \fB\-fdicts\-cheap\fP \fB\-fdicts\-strict\fP \fB\-fdmd\-tx\-dict\-sel\fP \fB\-fdo\-eta\-reduction\fP \fB\-fdo\-lambda\-eta\-expansion\fP \fB\-feager\-blackholing\fP \fB\-fenable\-rewrite\-rules\fP \fB\-fexcess\-precision\fP \fB\-fexpose\-all\-unfoldings\fP \fB\-ffloat\-in\fP \fB\-ffull\-laziness\fP \fB\-ffun\-to\-thunk\fP \fB\-fignore\-asserts\fP \fB\-fignore\-interface\-pragmas\fP \fB\-flate\-dmd\-anal\fP \fB\-fliberate\-case\fP \fB\-fliberate\-case\-threshold=⟨n⟩\fP \fB\-floopification\fP \fB\-fmax\-inline\-alloc\-size=⟨n⟩\fP \fB\-fmax\-inline\-memcpy\-insns=⟨n⟩\fP \fB\-fmax\-inline\-memset\-insns=⟨n⟩\fP \fB\-fmax\-relevant\-binds=⟨n⟩\fP \fB\-fmax\-simplifier\-iterations=⟨n⟩\fP \fB\-fmax\-worker\-args=⟨n⟩\fP \fB\-fno\-opt\-coercion\fP \fB\-fno\-pre\-inlining\fP \fB\-fno\-state\-hack\fP \fB\-fomit\-interface\-pragmas\fP \fB\-fomit\-yields\fP \fB\-fpedantic\-bottoms\fP \fB\-fregs\-graph\fP \fB\-fregs\-iterative\fP \fB\-fsimplifier\-phases=⟨n⟩\fP \fB\-fsimpl\-tick\-factor=⟨n⟩\fP \fB\-fspec\-constr\fP \fB\-fspec\-constr\-count=⟨n⟩\fP \fB\-fspec\-constr\-threshold=⟨n⟩\fP \fB\-fspecialise\fP \fB\-fcross\-module\-specialise\fP \fB\-fstatic\-argument\-transformation\fP \fB\-fstrictness\fP \fB\-fstrictness\-before=⟨n⟩\fP \fB\-funbox\-small\-strict\-fields\fP \fB\-funbox\-strict\-fields\fP \fB\-funfolding\-creation\-threshold=⟨n⟩\fP \fB\-funfolding\-dict\-discount=⟨n⟩\fP \fB\-funfolding\-fun\-discount=⟨n⟩\fP \fB\-funfolding\-keeness\-factor=⟨n⟩\fP \fB\-funfolding\-use\-threshold=⟨n⟩\fP \fB\-fvectorisation\-avoidance\fP \fB\-fvectorise\fP \fB\-fworker\-wrapper\fP .TP .B Optimization levels \fB\-O0\fP \fB\-O, \-O1\fP \fB\-O2\fP \fB\-Odph\fP .TP .B Package options \fB\-this\-unit\-id⟨P⟩\fP \fB\-package⟨P⟩\fP \fB\-hide\-all\-packages\fP \fB\-hide\-package⟨name⟩\fP \fB\-ignore\-package⟨name⟩\fP \fB\-package\-db⟨file⟩\fP \fB\-clear\-package\-db\fP \fB\-no\-global\-package\-db\fP \fB\-global\-package\-db\fP \fB\-no\-user\-package\-db\fP \fB\-user\-package\-db\fP \fB\-no\-auto\-link\-packages\fP \fB\-trust⟨P⟩\fP \fB\-distrust⟨P⟩\fP \fB\-distrust\-all\fP .TP .B Phases of compilation \fB\-F\fP \fB\-E\fP \fB\-C\fP \fB\-S\fP \fB\-c\fP \fB\-x⟨suffix⟩\fP .TP .B Overriding external programs \fB\-pgmL⟨cmd⟩\fP \fB\-pgmP⟨cmd⟩\fP \fB\-pgmc⟨cmd⟩\fP \fB\-pgmlo⟨cmd⟩\fP \fB\-pgmlc⟨cmd⟩\fP \fB\-pgms⟨cmd⟩\fP \fB\-pgma⟨cmd⟩\fP \fB\-pgml⟨cmd⟩\fP \fB\-pgmdll⟨cmd⟩\fP \fB\-pgmF⟨cmd⟩\fP \fB\-pgmwindres⟨cmd⟩\fP \fB\-pgmlibtool⟨cmd⟩\fP .TP .B Phase\-specific options \fB\-optL⟨option⟩\fP \fB\-optP⟨option⟩\fP \fB\-optF⟨option⟩\fP \fB\-optc⟨option⟩\fP \fB\-optlo⟨option⟩\fP \fB\-optlc⟨option⟩\fP \fB\-opta⟨option⟩\fP \fB\-optl⟨option⟩\fP \fB\-optdll⟨option⟩\fP \fB\-optwindres⟨option⟩\fP .TP .B Platform\-specific options \fB\-msse2\fP \fB\-msse4.2\fP .TP .B Compiler plugins \fB\-fplugin=⟨module⟩\fP \fB\-fplugin\-opt=⟨module:args⟩\fP .TP .B Profiling \fB\-prof\fP \fB\-fprof\-auto\fP \fB\-fprof\-auto\-top\fP \fB\-fprof\-auto\-exported\fP \fB\-fprof\-cafs\fP \fB\-fno\-prof\-count\-entries\fP \fB\-ticky\fP .TP .B Program coverage \fB\-fhpc\fP \fB\-hpcdir dir\fP .TP .B Recompilation checking \fB\-fforce\-recomp\fP .TP .B Redirecting output \fB\-hcsuf ⟨suffix⟩\fP \fB\-hidir ⟨dir⟩\fP \fB\-hisuf ⟨suffix⟩\fP \fB\-o ⟨filename⟩\fP \fB\-odir ⟨dir⟩\fP \fB\-ohi ⟨filename⟩\fP \fB\-osuf ⟨suffix⟩\fP \fB\-stubdir ⟨dir⟩\fP \fB\-dumpdir ⟨dir⟩\fP \fB\-outputdir ⟨dir⟩\fP \fB\-dyno \fP \fB\-dynosuf \fP \fB\-dynhisuf \fP .TP .B Temporary files \fB\-tmpdir ⟨dir⟩\fP .TP .B Verbosity options \fB\-v\fP \fB\-v⟨n⟩\fP \fB\-fprint\-potential\-instances\fP \fB\-fprint\-explicit\-foralls\fP \fB\-fprint\-explicit\-kinds\fP \fB\-fprint\-explicit\-runtime\-reps\fP \fB\-fprint\-unicode\-syntax\fP \fB\-fprint\-expanded\-synonyms\fP \fB\-fprint\-typechecker\-elaboration\fP \fB\-ferror\-spans\fP \fB\-Rghc\-timing\fP .TP .B Warnings \fB\-W\fP \fB\-w\fP \fB\-Wall\fP \fB\-Wcompat\fP \fB\-Werror\fP \fB\-Wwarn\fP \fB\-Wunrecognised\-warning\-flags\fP \fB\-fshow\-warning\-groups\fP \fB\-fdefer\-type\-errors\fP \fB\-fdefer\-typed\-holes\fP \fB\-fhelpful\-errors\fP \fB\-Wdeprecated\-flags\fP \fB\-Wduplicate\-constraints\fP \fB\-Wduplicate\-exports\fP \fB\-Whi\-shadowing\fP \fB\-Widentities\fP \fB\-Wimplicit\-prelude\fP \fB\-Wincomplete\-patterns\fP \fB\-Wincomplete\-uni\-patterns\fP \fB\-Wmax\-pmcheck\-iterations=\fP \fB\-Wincomplete\-record\-updates\fP \fB\-Wmissing\-fields\fP \fB\-Wmissing\-import\-lists\fP \fB\-Wmissing\-methods\fP \fB\-Wmissing\-signatures\fP \fB\-Wmissing\-exported\-sigs\fP \fB\-Wmissing\-exported\-signatures\fP \fB\-Wmissing\-local\-sigs\fP \fB\-Wmissing\-local\-signatures\fP \fB\-Wmissing\-monadfail\-instances\fP \fB\-Wsemigroup\fP \fB\-Wmissed\-specialisations\fP \fB\-Wall\-missed\-specialisations\fP \fB\-Wmonomorphism\-restriction\fP \fB\-Wname\-shadowing\fP \fB\-Wnoncanonical\-monad\-instances\fP \fB\-Wnoncanonical\-monadfail\-instances\fP \fB\-Wnoncanonical\-monoid\-instances\fP \fB\-Worphans\fP \fB\-Woverlapping\-patterns\fP \fB\-Wtabs\fP \fB\-Wtype\-defaults\fP \fB\-Wunrecognised\-pragmas\fP \fB\-Wunticked\-promoted\-constructors\fP \fB\-Wunused\-binds\fP \fB\-Wunused\-top\-binds\fP \fB\-Wunused\-local\-binds\fP \fB\-Wunused\-pattern\-binds\fP \fB\-Wunused\-imports\fP \fB\-Wunused\-matches\fP \fB\-Wunused\-foralls\fP \fB\-Wunused\-type\-variables\fP \fB\-Wunused\-do\-bind\fP \fB\-Wwrong\-do\-bind\fP \fB\-Wunsafe\fP \fB\-Wsafe\fP \fB\-Wtrustworthy\-safe\fP \fB\-Wwarnings\-deprecations\fP \fB\-Wamp\fP \fB\-Wredundant\-constraints\fP \fB\-Wdeferred\-type\-errors\fP \fB\-Wtyped\-holes\fP \fB\-Wpartial\-type\-signatures\fP \fB\-Wderiving\-typeable\fP .UNINDENT .SS Code generation .INDENT 0.0 .TP .B \fB\-fasm\fP Use the native code generator .TP .B \fB\-fllvm\fP Compile using the LLVM code generator .TP .B \fB\-fno\-code\fP Omit code generation .TP .B \fB\-fwrite\-interface\fP Always write interface files .TP .B \fB\-fbyte\-code\fP Generate byte\-code .TP .B \fB\-fobject\-code\fP Generate object code .TP .B \fB\-g⟨n⟩\fP Produce DWARF debug information in compiled object files.⟨n⟩ can be 0, 1, or 2, with higher numbers producing richer output. If ⟨n⟩ is omitted level 2 is assumed. .TP .B \fB\-dynamic\fP Build dynamically\-linked object files and executables .TP .B \fB\-dynamic\-too\fP Build dynamic object files \fIas well as\fP static object files during compilation .UNINDENT .SS Debugging the compiler .INDENT 0.0 .TP .B \fB\-dcore\-lint\fP Turn on internal sanity checking .TP .B \fB\-ddump\-to\-file\fP Dump to files instead of stdout .TP .B \fB\-ddump\-asm\fP Dump assembly .TP .B \fB\-ddump\-bcos\fP Dump interpreter byte code .TP .B \fB\-ddump\-cmm\fP Dump C\-\- output .TP .B \fB\-ddump\-core\-stats\fP Print a one\-line summary of the size of the Core program at the end of the optimisation pipeline .TP .B \fB\-ddump\-cse\fP Dump CSE output .TP .B \fB\-ddump\-deriv\fP Dump deriving output .TP .B \fB\-ddump\-ds\fP Dump desugarer output .TP .B \fB\-ddump\-foreign\fP Dump \fBforeign export\fP stubs .TP .B \fB\-ddump\-hpc\fP Dump after instrumentation for program coverage .TP .B \fB\-ddump\-inlinings\fP Dump inlining info .TP .B \fB\-ddump\-llvm\fP Dump LLVM intermediate code. Implies \fB\-fllvm\fP\&. .TP .B \fB\-ddump\-occur\-anal\fP Dump occurrence analysis output .TP .B \fB\-ddump\-opt\-cmm\fP Dump the results of C\-\- to C\-\- optimising passes .TP .B \fB\-ddump\-parsed\fP Dump parse tree .TP .B \fB\-ddump\-prep\fP Dump prepared core .TP .B \fB\-ddump\-rn\fP Dump renamer output .TP .B \fB\-ddump\-rule\-firings\fP Dump rule firing info .TP .B \fB\-ddump\-rule\-rewrites\fP Dump detailed rule firing info .TP .B \fB\-ddump\-rules\fP Dump rules .TP .B \fB\-ddump\-vect\fP Dump vectoriser input and output .TP .B \fB\-ddump\-simpl\fP Dump final simplifier output .TP .B \fB\-ddump\-simpl\-iterations\fP Dump output from each simplifier iteration .TP .B \fB\-ddump\-spec\fP Dump specialiser output .TP .B \fB\-ddump\-splices\fP Dump TH spliced expressions, and what they evaluate to .TP .B \fB\-ddump\-stg\fP Dump final STG .TP .B \fB\-ddump\-stranal\fP Dump strictness analyser output .TP .B \fB\-ddump\-str\-signatures\fP Dump strictness signatures .TP .B \fB\-ddump\-tc\fP Dump typechecker output .TP .B \fB\-dth\-dec\-file\fP Show evaluated TH declarations in a .th.hs file .TP .B \fB\-ddump\-types\fP Dump type signatures .TP .B \fB\-ddump\-worker\-wrapper\fP Dump worker\-wrapper output .TP .B \fB\-ddump\-if\-trace\fP Trace interface files .TP .B \fB\-ddump\-tc\-trace\fP Trace typechecker .TP .B \fB\-ddump\-vt\-trace\fP Trace vectoriser .TP .B \fB\-ddump\-rn\-trace\fP Trace renamer .TP .B \fB\-ddump\-rn\-stats\fP Renamer stats .TP .B \fB\-ddump\-simpl\-stats\fP Dump simplifier stats .TP .B \fB\-dno\-debug\-output\fP Suppress unsolicited debugging output .TP .B \fB\-dppr\-debug\fP Turn on debug printing (more verbose) .TP .B \fB\-dppr\-user\-length\fP Set the depth for printing expressions in error msgs .TP .B \fB\-dppr\-cols⟨N⟩\fP Set the width of debugging output. For example \fB\-dppr\-cols200\fP .TP .B \fB\-dppr\-case\-as\-let\fP Print single alternative case expressions as strict lets. .TP .B \fB\-dsuppress\-all\fP In core dumps, suppress everything (except for uniques) that is suppressible. .TP .B \fB\-dsuppress\-uniques\fP Suppress the printing of uniques in debug output (easier to use \fBdiff\fP) .TP .B \fB\-dsuppress\-idinfo\fP Suppress extended information about identifiers where they are bound .TP .B \fB\-dsuppress\-unfoldings\fP Suppress the printing of the stable unfolding of a variable at its binding site .TP .B \fB\-dsuppress\-module\-prefixes\fP Suppress the printing of module qualification prefixes .TP .B \fB\-dsuppress\-type\-signatures\fP Suppress type signatures .TP .B \fB\-dsuppress\-type\-applications\fP Suppress type applications .TP .B \fB\-dsuppress\-coercions\fP Suppress the printing of coercions in Core dumps to make them shorter .TP .B \fB\-dsource\-stats\fP Dump haskell source stats .TP .B \fB\-dcmm\-lint\fP C\-\- pass sanity checking .TP .B \fB\-dstg\-lint\fP STG pass sanity checking .TP .B \fB\-dstg\-stats\fP Dump STG stats .TP .B \fB\-dverbose\-core2core\fP Show output from each core\-to\-core pass .TP .B \fB\-dverbose\-stg2stg\fP Show output from each STG\-to\-STG pass .TP .B \fB\-dshow\-passes\fP Print out each pass name as it happens .TP .B \fB\-dfaststring\-stats\fP Show statistics for fast string usage when finished .TP .B \fB\-frule\-check\fP Report sites with rules that could have fired but didn\(aqt. Takes a string argument. .UNINDENT .SS C pre\-processor .INDENT 0.0 .TP .B \fB\-cpp\fP Run the C pre\-processor on Haskell source files .TP .B \fB\-D⟨symbol⟩[=⟨value⟩]\fP Define a symbol in the C pre\-processor .TP .B \fB\-U⟨symbol⟩\fP Undefine a symbol in the C pre\-processor .TP .B \fB\-I⟨dir⟩\fP Add ⟨dir⟩ to the directory search list for \fB#include\fP files .UNINDENT .SS Finding imports .INDENT 0.0 .TP .B \fB\-i ⟨dir1⟩:⟨dir2⟩:...\fP add ⟨dir⟩, ⟨dir2⟩, etc. to import path .TP .B \fB\-i\fP Empty the import directory list .UNINDENT .SS Interactive mode .INDENT 0.0 .TP .B \fB\-ignore\-dot\-ghci\fP Disable reading of \fB\&.ghci\fP files .TP .B \fB\-ghci\-script\fP Read additional \fB\&.ghci\fP files .TP .B \fB\-fbreak\-on\-error\fP Break on uncaught exceptions and errors .TP .B \fB\-fbreak\-on\-exception\fP Break on any exception thrown .TP .B \fB\-fghci\-hist\-size=⟨n⟩\fP Set the number of entries GHCi keeps for \fB:history\fP\&. See ghci\-debugger\&. .TP .B \fB\-fprint\-evld\-with\-show\fP Enable usage of \fBShow\fP instances in \fB:print\fP\&. See breakpoints\&. .TP .B \fB\-fprint\-bind\-result\fP Turn on printing of binding results in GHCi .TP .B \fB\-fno\-print\-bind\-contents\fP Turn off printing of binding contents in GHCi .TP .B \fB\-fno\-implicit\-import\-qualified\fP Turn off implicit qualified import of everything in GHCi .TP .B \fB\-interactive\-print\fP Select the function to use for printing evaluated expressions in GHCi .UNINDENT .SS Interface files .INDENT 0.0 .TP .B \fB\-ddump\-hi\fP Dump the new interface to stdout .TP .B \fB\-ddump\-hi\-diffs\fP Show the differences vs. the old interface .TP .B \fB\-ddump\-minimal\-imports\fP Dump a minimal set of imports .TP .B \fB\-\-show\-iface ⟨file⟩\fP See modes\&. .UNINDENT .SS Keeping intermediate files .INDENT 0.0 .TP .B \fB\-keep\-hc\-file, \-keep\-hc\-files\fP Retain intermediate \fB\&.hc\fP files. .TP .B \fB\-keep\-llvm\-file, \-keep\-llvm\-files\fP Retain intermediate LLVM \fB\&.ll\fP files. Implies \fB\-fllvm\fP\&. .TP .B \fB\-keep\-s\-file, \-keep\-s\-files\fP Retain intermediate \fB\&.s\fP files. .TP .B \fB\-keep\-tmp\-files\fP Retain all intermediate temporary files. .UNINDENT .SS Language options .INDENT 0.0 .TP .B \fB\-fconstraint\-solver\-iterations=⟨n⟩\fP \fIdefault: 4.\fP Set the iteration limit for the type\-constraint solver. Typically one iteration suffices; so please yell if you find you need to set it higher than the default. Zero means infinity. .TP .B \fB\-freduction\-depth=⟨n⟩\fP \fIdefault: 200.\fP Set the limit for type simplification\&. Zero means infinity. .TP .B \fB\-fcontext\-stack=⟨n⟩\fP Deprecated. Use \fB\-freduction\-depth=⟨n⟩\fP instead. .TP .B \fB\-fglasgow\-exts\fP Deprecated. Enable most language extensions; see options\-language for exactly which ones. .TP .B \fB\-firrefutable\-tuples\fP Make tuple pattern matching irrefutable .TP .B \fB\-fpackage\-trust\fP Enable Safe Haskell trusted package requirement for trustworthy modules. .TP .B \fB\-ftype\-function\-depth=⟨n⟩\fP Deprecated. Use \fB\-freduction\-depth=⟨n⟩\fP instead. .TP .B \fB\-XAllowAmbiguousTypes\fP Allow the user to write ambiguous types, and the type inference engine to infer them. .TP .B \fB\-XArrows\fP Enable arrow notation extension .TP .B \fB\-XApplicativeDo\fP Enable Applicative do\-notation desugaring .TP .B \fB\-XAutoDeriveTypeable\fP As of GHC 7.10, this option is not needed, and should not be used. Previously this would automatically derive Typeable instances for every datatype and type class declaration\&. Implies \fBXDeriveDataTypeable\fP\&. .TP .B \fB\-XBangPatterns\fP Enable bang patterns\&. .TP .B \fB\-XBinaryLiterals\fP Enable support for binary literals\&. .TP .B \fB\-XCApiFFI\fP Enable the CAPI calling convention\&. .TP .B \fB\-XConstrainedClassMethods\fP Enable constrained class methods\&. .TP .B \fB\-XConstraintKinds\fP Enable a kind of constraints\&. .TP .B \fB\-XCPP\fP Enable the C preprocessor\&. .TP .B \fB\-XDataKinds\fP Enable datatype promotion\&. .TP .B \fB\-XDefaultSignatures\fP Enable default signatures\&. .TP .B \fB\-XDeriveAnyClass\fP Enable deriving for any class\&. .TP .B \fB\-XDeriveDataTypeable\fP Enable \fBderiving\fP for the Data class\&. Implied by \fBXAutoDeriveTypeable\fP\&. .TP .B \fB\-XDeriveFunctor\fP Enable deriving for the Functor class\&. Implied by \fBXDeriveTraversable\fP\&. .TP .B \fB\-XDeriveFoldable\fP Enable deriving for the Foldable class\&. Implied by \fBXDeriveTraversable\fP\&. .TP .B \fB\-XDeriveGeneric\fP Enable deriving for the Generic class\&. .TP .B \fB\-XDeriveGeneric\fP Enable deriving for the Generic class\&. .TP .B \fB\-XDeriveLift\fP Enable deriving for the Lift class .TP .B \fB\-XDeriveTraversable\fP Enable deriving for the Traversable class\&. Implies \fBXDeriveFunctor\fP and \fBXDeriveFoldable\fP\&. .TP .B \fB\-XDisambiguateRecordFields\fP Enable record field disambiguation\&. Implied by \fBXRecordWildCards\fP\&. .TP .B \fB\-XEmptyCase\fP Allow empty case alternatives\&. .TP .B \fB\-XEmptyDataDecls\fP Enable empty data declarations. .TP .B \fB\-XExistentialQuantification\fP Enable existential quantification\&. .TP .B \fB\-XExplicitForAll\fP Enable explicit universal quantification\&. Implied by \fBXScopedTypeVariables\fP, \fBXLiberalTypeSynonyms\fP, \fBXRankNTypes\fP and \fBXExistentialQuantification\fP\&. .TP .B \fB\-XExplicitNamespaces\fP Enable using the keyword \fBtype\fP to specify the namespace of entries in imports and exports (explicit\-namespaces). Implied by \fBXTypeOperators\fP and \fBXTypeFamilies\fP\&. .TP .B \fB\-XExtendedDefaultRules\fP Use GHCi\(aqs extended default rules in a normal module. .TP .B \fB\-XFlexibleContexts\fP Enable flexible contexts\&. Implied by \fBXImplicitParams\fP\&. .TP .B \fB\-XFlexibleInstances\fP Enable flexible instances\&. Implies \fBXTypeSynonymInstances\fP\&. Implied by \fBXImplicitParams\fP\&. .TP .B \fB\-XForeignFunctionInterface\fP Enable foreign function interface\&. .TP .B \fB\-XFunctionalDependencies\fP Enable functional dependencies\&. Implies \fBXMultiParamTypeClasses\fP\&. .TP .B \fB\-XGADTs\fP Enable generalised algebraic data types\&. Implies \fBXGADTSyntax\fP and \fBXMonoLocalBinds\fP\&. .TP .B \fB\-XGADTSyntax\fP Enable generalised algebraic data type syntax\&. .TP .B \fB\-XGeneralizedNewtypeDeriving\fP Enable newtype deriving\&. .TP .B \fB\-XGenerics\fP Deprecated, does nothing. No longer enables generic classes\&. See also GHC\(aqs support for generic programming\&. .TP .B \fB\-XImplicitParams\fP Enable Implicit Parameters\&. Implies \fBXFlexibleContexts\fP and \fBXFlexibleInstances\fP\&. .TP .B \fB\-XNoImplicitPrelude\fP Don\(aqt implicitly \fBimport Prelude\fP\&. Implied by \fBXRebindableSyntax\fP\&. .TP .B \fB\-XImpredicativeTypes\fP Enable impredicative types\&. Implies \fBXRankNTypes\fP\&. .TP .B \fB\-XIncoherentInstances\fP Enable incoherent instances\&. Implies \fBXOverlappingInstances\fP\&. .TP .B \fB\-XTypeFamilyDependencies\fP Enable injective type families\&. Implies \fBXTypeFamilies\fP\&. .TP .B \fB\-XInstanceSigs\fP Enable instance signatures\&. .TP .B \fB\-XInterruptibleFFI\fP Enable interruptible FFI. .TP .B \fB\-XKindSignatures\fP Enable kind signatures\&. Implied by \fBXTypeFamilies\fP and \fBXPolyKinds\fP\&. .TP .B \fB\-XLambdaCase\fP Enable lambda\-case expressions\&. .TP .B \fB\-XLiberalTypeSynonyms\fP Enable liberalised type synonyms\&. .TP .B \fB\-XMagicHash\fP Allow \fB#\fP as a postfix modifier on identifiers\&. .TP .B \fB\-XMonadComprehensions\fP Enable monad comprehensions\&. .TP .B \fB\-XMonoLocalBinds\fP Enable do not generalise local bindings\&. Implied by \fBXTypeFamilies\fP and \fBXGADTs\fP\&. .TP .B \fB\-XNoMonomorphismRestriction\fP Disable the monomorphism restriction\&. .TP .B \fB\-XMultiParamTypeClasses\fP Enable multi parameter type classes\&. Implied by \fBXFunctionalDependencies\fP\&. .TP .B \fB\-XMultiWayIf\fP Enable multi\-way if\-expressions\&. .TP .B \fB\-XNamedFieldPuns\fP Enable record puns\&. .TP .B \fB\-XNamedWildCards\fP Enable named wildcards\&. .TP .B \fB\-XNegativeLiterals\fP Enable support for negative literals\&. .TP .B \fB\-XNoNPlusKPatterns\fP Disable support for \fBn+k\fP patterns. .TP .B \fB\-XNullaryTypeClasses\fP Deprecated, does nothing. nullary (no parameter) type classes are now enabled using \fBXMultiParamTypeClasses\fP\&. .TP .B \fB\-XNumDecimals\fP Enable support for \(aqfractional\(aq integer literals. .TP .B \fB\-XOverlappingInstances\fP Enable overlapping instances\&. .TP .B \fB\-XOverloadedLists\fP Enable overloaded lists\&. .TP .B \fB\-XOverloadedStrings\fP Enable overloaded string literals\&. .TP .B \fB\-XPackageImports\fP Enable package\-qualified imports\&. .TP .B \fB\-XParallelArrays\fP Enable parallel arrays. Implies \fBXParallelListComp\fP\&. .TP .B \fB\-XParallelListComp\fP Enable parallel list comprehensions\&. Implied by \fBXParallelArrays\fP\&. .TP .B \fB\-XPartialTypeSignatures\fP Enable partial type signatures\&. .TP .B \fB\-XPatternGuards\fP Enable pattern guards\&. .TP .B \fB\-XPatternSynonyms\fP Enable pattern synonyms\&. .TP .B \fB\-XPolyKinds\fP Enable kind polymorphism\&. Implies \fBXKindSignatures\fP\&. .TP .B \fB\-XPolymorphicComponents\fP Enable polymorphic components for data constructors\&. Synonym for \fBXRankNTypes\fP\&. .TP .B \fB\-XPostfixOperators\fP Enable postfix operators\&. .TP .B \fB\-XQuasiQuotes\fP Enable quasiquotation\&. .TP .B \fB\-XRank2Types\fP Enable rank\-2 types\&. Synonym for \fBXRankNTypes\fP\&. .TP .B \fB\-XRankNTypes\fP Enable rank\-N types\&. Implied by \fBXImpredicativeTypes\fP\&. .TP .B \fB\-XRebindableSyntax\fP Employ rebindable syntax\&. Implies \fBXNoImplicitPrelude\fP\&. .TP .B \fB\-XRecordWildCards\fP Enable record wildcards\&. Implies \fBXDisambiguateRecordFields\fP\&. .TP .B \fB\-XRecursiveDo\fP Enable recursive do (mdo) notation\&. .TP .B \fB\-XRelaxedPolyRec\fP \fI(deprecated)\fP Relaxed checking for mutually\-recursive polymorphic functions\&. .TP .B \fB\-XRoleAnnotations\fP Enable role annotations\&. .TP .B \fB\-XSafe\fP Enable the Safe Haskell Safe mode. .TP .B \fB\-XScopedTypeVariables\fP Enable lexically\-scoped type variables\&. .TP .B \fB\-XStandaloneDeriving\fP Enable standalone deriving\&. .TP .B \fB\-XStrictData\fP Enable default strict datatype fields\&. .TP .B \fB\-XTemplateHaskell\fP Enable Template Haskell\&. .TP .B \fB\-XTemplateHaskellQuotes\fP Enable quotation subset of Template Haskell\&. .TP .B \fB\-XNoTraditionalRecordSyntax\fP Disable support for traditional record syntax (as supported by Haskell 98) \fBC {f = x}\fP .TP .B \fB\-XTransformListComp\fP Enable generalised list comprehensions\&. .TP .B \fB\-XTrustworthy\fP Enable the Safe Haskell Trustworthy mode. .TP .B \fB\-XTupleSections\fP Enable tuple sections\&. .TP .B \fB\-XTypeFamilies\fP Enable type families\&. Implies \fBXExplicitNamespaces\fP, \fBXKindSignatures\fP, and \fBXMonoLocalBinds\fP\&. .TP .B \fB\-XTypeOperators\fP Enable type operators\&. Implies \fBXExplicitNamespaces\fP\&. .TP .B \fB\-XTypeSynonymInstances\fP Enable type synonyms in instance heads\&. Implied by \fBXFlexibleInstances\fP\&. .TP .B \fB\-XUnboxedTuples\fP Enable unboxed tuples\&. .TP .B \fB\-XUndecidableInstances\fP Enable undecidable instances\&. .TP .B \fB\-XUnicodeSyntax\fP Enable unicode syntax\&. .TP .B \fB\-XUnliftedFFITypes\fP Enable unlifted FFI types. .TP .B \fB\-XUnsafe\fP Enable Safe Haskell Unsafe mode. .TP .B \fB\-XViewPatterns\fP Enable view patterns\&. .UNINDENT .SS Linking options .INDENT 0.0 .TP .B \fB\-shared\fP Generate a shared library (as opposed to an executable) .TP .B \fB\-staticlib\fP On Darwin/OS X/iOS only, generate a standalone static library (as opposed to an executable). This is the usual way to compile for iOS. .TP .B \fB\-fPIC\fP Generate position\-independent code (where available) .TP .B \fB\-dynload\fP Selects one of a number of modes for finding shared libraries at runtime. .TP .B \fB\-framework⟨name⟩\fP On Darwin/OS X/iOS only, link in the framework ⟨name⟩. This option corresponds to the \fB\-framework\fP option for Apple\(aqs Linker. .TP .B \fB\-framework\-path⟨name⟩\fP On Darwin/OS X/iOS only, add ⟨dir⟩ to the list of directories searched for frameworks. This option corresponds to the \fB\-F\fP option for Apple\(aqs Linker. .TP .B \fB\-l⟨lib⟩\fP Link in library ⟨lib⟩ .TP .B \fB\-L⟨dir⟩\fP Add ⟨dir⟩ to the list of directories searched for libraries .TP .B \fB\-main\-is\fP Set main module and function .TP .B \fB\-\-mk\-dll\fP DLL\-creation mode (Windows only) .TP .B \fB\-no\-hs\-main\fP Don\(aqt assume this program contains \fBmain\fP .TP .B \fB\-rtsopts,\-rtsopts={none,some,all}\fP Control whether the RTS behaviour can be tweaked via command\-lineflags and the \fBGHCRTS\fP environment variable. Using \fBnone\fP means no RTS flags can be given; \fBsome\fP means only a minimum of safe options can be given (the default), and \fBall\fP (or no argument at all) means that all RTS flags are permitted. .TP .B \fB\-with\-rtsopts=opts\fP Set the default RTS options to ⟨opts⟩. .TP .B \fB\-no\-rtsopts\-suggestions\fP Don\(aqt print RTS suggestions about linking with \fBrtsopts\fP\&. .TP .B \fB\-no\-link\fP Omit linking .TP .B \fB\-split\-objs\fP Split objects (for libraries) .TP .B \fB\-split\-sections\fP Split sections for link\-time dead\-code stripping .TP .B \fB\-static\fP Use static Haskell libraries .TP .B \fB\-threaded\fP Use the threaded runtime .TP .B \fB\-debug\fP Use the debugging runtime .TP .B \fB\-ticky\fP For linking, this simply implies \fBdebug\fP; see ticky\-ticky\&. .TP .B \fB\-eventlog\fP Enable runtime event tracing .TP .B \fB\-fno\-gen\-manifest\fP Do not generate a manifest file (Windows only) .TP .B \fB\-fno\-embed\-manifest\fP Do not embed the manifest in the executable (Windows only) .TP .B \fB\-fno\-shared\-implib\fP Don\(aqt generate an import library for a DLL (Windows only) .TP .B \fB\-dylib\-install\-name ⟨path⟩\fP Set the install name (via \fB\-install_name\fP passed to Apple\(aqs linker), specifying the full install path of the library file. Any libraries or executables that link with it later will pick up that path as their runtime search location for it. (Darwin/OS X only) .TP .B \fB\-rdynamic\fP This instructs the linker to add all symbols, not only used ones, to the dynamic symbol table. Currently Linux and Windows/MinGW32 only. This is equivalent to using \fB\-optl \-rdynamic\fP on Linux, and \fB\-optl \-export\-all\-symbols\fP on Windows. .UNINDENT .SS Miscellaneous options .INDENT 0.0 .TP .B \fB\-jN\fP When compiling with \fB\-make\fP, compile ⟨N⟩ modules in parallel. .TP .B \fB\-fno\-hi\-version\-check\fP Don\(aqt complain about \fB\&.hi\fP file mismatches .TP .B \fB\-fhistory\-size\fP Set simplification history size .TP .B \fB\-fno\-ghci\-history\fP Do not use the load/store the GHCi command history from/to \fBghci_history\fP\&. .TP .B \fB\-fno\-ghci\-sandbox\fP Turn off the GHCi sandbox. Means computations are run in the main thread, rather than a forked thread. .TP .B \fB\-freverse\-errors\fP Display errors in GHC/GHCi sorted by reverse order of source code line numbers. .UNINDENT .SS Modes of operation .INDENT 0.0 .TP .B \fB\-\-help,\-?\fP Display help .TP .B \fB\-\-interactive\fP Interactive mode \- normally used by just running \fBghci\fP; see ghci for details. .TP .B \fB\-\-make\fP Build a multi\-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using \fBmake\fP; see make\-mode for details. .TP .B \fB\-e expr\fP Evaluate \fBexpr\fP; see eval\-mode for details. .TP .B \fB\-\-show\-iface\fP display the contents of an interface file. .TP .B \fB\-M\fP generate dependency information suitable for use in a \fBMakefile\fP; see makefile\-dependencies for details. .TP .B \fB\-\-frontend ⟨module⟩\fP run GHC with the given frontend plugin; see frontend_plugins for details. .TP .B \fB\-\-supported\-extensions, \-\-supported\-languages\fP display the supported language extensions .TP .B \fB\-\-show\-options\fP display the supported command line options .TP .B \fB\-\-info\fP display information about the compiler .TP .B \fB\-\-version, \-V\fP display GHC version .TP .B \fB\-\-numeric\-version\fP display GHC version (numeric only) .TP .B \fB\-\-print\-libdir\fP display GHC library directory .UNINDENT .SS Individual optimizations .INDENT 0.0 .TP .B \fB\-fcall\-arity\fP Enable call\-arity optimisation. Implied by \fBO\fP\&. .TP .B \fB\-fcase\-merge\fP Enable case\-merging. Implied by \fBO\fP\&. .TP .B \fB\-fcmm\-elim\-common\-blocks\fP Enable Cmm common block elimination. Implied by \fBO\fP\&. .TP .B \fB\-fcmm\-sink\fP Enable Cmm sinking. Implied by \fBO\fP\&. .TP .B \fB\-fcpr\-anal\fP Turn on CPR analysis in the demand analyser. Implied by \fBO\fP\&. .TP .B \fB\-fcse\fP Enable common sub\-expression elimination. Implied by \fBO\fP\&. .TP .B \fB\-fdicts\-cheap\fP Make dictionary\-valued expressions seem cheap to the optimiser. .TP .B \fB\-fdicts\-strict\fP Make dictionaries strict .TP .B \fB\-fdmd\-tx\-dict\-sel\fP Use a special demand transformer for dictionary selectors. Always enabled by default. .TP .B \fB\-fdo\-eta\-reduction\fP Enable eta\-reduction. Implied by \fBO\fP\&. .TP .B \fB\-fdo\-lambda\-eta\-expansion\fP Enable lambda eta\-expansion. Always enabled by default. .TP .B \fB\-feager\-blackholing\fP Turn on eager blackholing .TP .B \fB\-fenable\-rewrite\-rules\fP Switch on all rewrite rules (including rules generated by automatic specialisation of overloaded functions). Implied by \fBO\fP\&. .TP .B \fB\-fexcess\-precision\fP Enable excess intermediate precision .TP .B \fB\-fexpose\-all\-unfoldings\fP Expose all unfoldings, even for very large or recursive functions. .TP .B \fB\-ffloat\-in\fP Turn on the float\-in transformation. Implied by \fBO\fP\&. .TP .B \fB\-ffull\-laziness\fP Turn on full laziness (floating bindings outwards). Implied by \fBO\fP\&. .TP .B \fB\-ffun\-to\-thunk\fP Allow worker\-wrapper to convert a function closure into a thunk if the function does not use any of its arguments. Off by default. .TP .B \fB\-fignore\-asserts\fP Ignore assertions in the source. Implied by \fBO\fP\&. .TP .B \fB\-fignore\-interface\-pragmas\fP Ignore pragmas in interface files. Implied by \fBO0\fP only. .TP .B \fB\-flate\-dmd\-anal\fP Run demand analysis again, at the end of the simplification pipeline .TP .B \fB\-fliberate\-case\fP Turn on the liberate\-case transformation. Implied by \fBO2\fP\&. .TP .B \fB\-fliberate\-case\-threshold=⟨n⟩\fP \fIdefault: 2000.\fP Set the size threshold for the liberate\-case transformation to ⟨n⟩ .TP .B \fB\-floopification\fP Turn saturated self\-recursive tail\-calls into local jumps in the generated assembly. Implied by \fBO\fP\&. .TP .B \fB\-fmax\-inline\-alloc\-size=⟨n⟩\fP \fIdefault: 128.\fP Set the maximum size of inline array allocations to ⟨n⟩ bytes (default: 128). GHC will allocate non\-pinned arrays of statically known size in the current nursery block if they\(aqre no bigger than ⟨n⟩ bytes, ignoring GC overheap. This value should be quite a bit smaller than the block size (typically: 4096). .TP .B \fB\-fmax\-inline\-memcpy\-insns=⟨n⟩\fP \fIdefault: 32.\fP Inline \fBmemcpy\fP calls if they would generate no more than ⟨n⟩ pseudo instructions. .TP .B \fB\-fmax\-inline\-memset\-insns=⟨n⟩\fP \fIdefault: 32.\fP Inline \fBmemset\fP calls if they would generate no more than ⟨n⟩ pseudo instructions .TP .B \fB\-fmax\-relevant\-binds=⟨n⟩\fP \fIdefault: 6.\fP Set the maximum number of bindings to display in type error messages. .TP .B \fB\-fmax\-simplifier\-iterations=⟨n⟩\fP \fIdefault: 4.\fP Set the max iterations for the simplifier. .TP .B \fB\-fmax\-worker\-args=⟨n⟩\fP \fIdefault: 10.\fP If a worker has that many arguments, none will be unpacked anymore. .TP .B \fB\-fno\-opt\-coercion\fP Turn off the coercion optimiser .TP .B \fB\-fno\-pre\-inlining\fP Turn off pre\-inlining .TP .B \fB\-fno\-state\-hack\fP Turn off the "state hack" whereby any lambda with a real\-world state token as argument is considered to be single\-entry. Hence OK to inline things inside it. .TP .B \fB\-fomit\-interface\-pragmas\fP Don\(aqt generate interface pragmas. Implied by \fBO0\fP only. .TP .B \fB\-fomit\-yields\fP Omit heap checks when no allocation is being performed. .TP .B \fB\-fpedantic\-bottoms\fP Make GHC be more precise about its treatment of bottom (but see also \fBfno\-state\-hack\fP). In particular, GHC will not eta\-expand through a case expression. .TP .B \fB\-fregs\-graph\fP Use the graph colouring register allocator for register allocation in the native code generator. Implied by \fBO2\fP\&. .TP .B \fB\-fregs\-iterative\fP Use the iterative coalescing graph colouring register allocator in the native code generator. .TP .B \fB\-fsimplifier\-phases=⟨n⟩\fP \fIdefault: 2.\fP Set the number of phases for the simplifier. Ignored with \fBO0\fP\&. .TP .B \fB\-fsimpl\-tick\-factor=⟨n⟩\fP \fIdefault: 100.\fP Set the percentage factor for simplifier ticks. .TP .B \fB\-fspec\-constr\fP Turn on the SpecConstr transformation. Implied by \fBO2\fP\&. .TP .B \fB\-fspec\-constr\-count=⟨n⟩\fP default: 3.* Set to ⟨n⟩ the maximum number of specialisations that will be created for any one function by the SpecConstr transformation. .TP .B \fB\-fspec\-constr\-threshold=⟨n⟩\fP \fIdefault: 2000.\fP Set the size threshold for the SpecConstr transformation to ⟨n⟩. .TP .B \fB\-fspecialise\fP Turn on specialisation of overloaded functions. Implied by \fBO\fP\&. .TP .B \fB\-fcross\-module\-specialise\fP Turn on specialisation of overloaded functions imported from other modules. .TP .B \fB\-fstatic\-argument\-transformation\fP Turn on the static argument transformation. .TP .B \fB\-fstrictness\fP Turn on strictness analysis. Implied by \fBO\fP\&. Implies \fBfworker\-wrapper\fP .TP .B \fB\-fstrictness\-before=⟨n⟩\fP Run an additional strictness analysis before simplifier phase ⟨n⟩ .TP .B \fB\-funbox\-small\-strict\-fields\fP Flatten strict constructor fields with a pointer\-sized representation. Implied by \fBO\fP\&. .TP .B \fB\-funbox\-strict\-fields\fP Flatten strict constructor fields .TP .B \fB\-funfolding\-creation\-threshold=⟨n⟩\fP \fIdefault: 750.\fP Tweak unfolding settings. .TP .B \fB\-funfolding\-dict\-discount=⟨n⟩\fP \fIdefault: 30.\fP Tweak unfolding settings. .TP .B \fB\-funfolding\-fun\-discount=⟨n⟩\fP \fIdefault: 60.\fP Tweak unfolding settings. .TP .B \fB\-funfolding\-keeness\-factor=⟨n⟩\fP \fIdefault: 1.5.\fP Tweak unfolding settings. .TP .B \fB\-funfolding\-use\-threshold=⟨n⟩\fP \fIdefault: 60.\fP Tweak unfolding settings. .TP .B \fB\-fvectorisation\-avoidance\fP Enable vectorisation avoidance. Always enabled by default. .TP .B \fB\-fvectorise\fP Enable vectorisation of nested data parallelism .TP .B \fB\-fworker\-wrapper\fP Enable the worker\-wrapper transformation after a strictness analysis pass. Implied by \fBO\fP, and by \fBfstrictness\fP\&. Disabled by \fBfno\-strictness\fP\&. Enabling \fBfworker\-wrapper\fP while strictness analysis is disabled (by \fBfno\-strictness\fP) has no effect. .UNINDENT .SS Optimization levels .INDENT 0.0 .TP .B \fB\-O0\fP Disable optimisations (default) .TP .B \fB\-O, \-O1\fP Enable level 1 optimisations .TP .B \fB\-O2\fP Enable level 2 optimisations .TP .B \fB\-Odph\fP Enable level 2 optimisations, set \fB\-fmax\-simplifier\-iterations=20\fP and \fB\-fsimplifier\-phases=3\fP\&. .UNINDENT .SS Package options .INDENT 0.0 .TP .B \fB\-this\-unit\-id⟨P⟩\fP Compile to be part of unit (i.e. package) ⟨P⟩ .TP .B \fB\-package⟨P⟩\fP Expose package ⟨P⟩ .TP .B \fB\-hide\-all\-packages\fP Hide all packages by default .TP .B \fB\-hide\-package⟨name⟩\fP Hide package ⟨P⟩ .TP .B \fB\-ignore\-package⟨name⟩\fP Ignore package ⟨P⟩ .TP .B \fB\-package\-db⟨file⟩\fP Add ⟨file⟩ to the package db stack. .TP .B \fB\-clear\-package\-db\fP Clear the package db stack. .TP .B \fB\-no\-global\-package\-db\fP Remove the global package db from the stack. .TP .B \fB\-global\-package\-db\fP Add the global package db to the stack. .TP .B \fB\-no\-user\-package\-db\fP Remove the user\(aqs package db from the stack. .TP .B \fB\-user\-package\-db\fP Add the user\(aqs package db to the stack. .TP .B \fB\-no\-auto\-link\-packages\fP Don\(aqt automatically link in the base and rts packages. .TP .B \fB\-trust⟨P⟩\fP Expose package ⟨P⟩ and set it to be trusted .TP .B \fB\-distrust⟨P⟩\fP Expose package ⟨P⟩ and set it to be distrusted .TP .B \fB\-distrust\-all\fP Distrust all packages by default .UNINDENT .SS Phases of compilation .INDENT 0.0 .TP .B \fB\-F\fP Enable the use of a pre\-processor (set with \fBpgmF\fP) .TP .B \fB\-E\fP Stop after preprocessing (\fB\&.hspp\fP file) .TP .B \fB\-C\fP Stop after generating C (\fB\&.hc\fP file) .TP .B \fB\-S\fP Stop after generating assembly (\fB\&.s\fP file) .TP .B \fB\-c\fP Stop after generating object (\fB\&.o\fP) file .TP .B \fB\-x⟨suffix⟩\fP Override default behaviour for source files .UNINDENT .SS Overriding external programs .INDENT 0.0 .TP .B \fB\-pgmL⟨cmd⟩\fP Use ⟨cmd⟩ as the literate pre\-processor .TP .B \fB\-pgmP⟨cmd⟩\fP Use ⟨cmd⟩ as the C pre\-processor (with \fB\-cpp\fP only) .TP .B \fB\-pgmc⟨cmd⟩\fP Use ⟨cmd⟩ as the C compiler .TP .B \fB\-pgmlo⟨cmd⟩\fP Use ⟨cmd⟩ as the LLVM optimiser .TP .B \fB\-pgmlc⟨cmd⟩\fP Use ⟨cmd⟩ as the LLVM compiler .TP .B \fB\-pgms⟨cmd⟩\fP Use ⟨cmd⟩ as the splitter .TP .B \fB\-pgma⟨cmd⟩\fP Use ⟨cmd⟩ as the assembler .TP .B \fB\-pgml⟨cmd⟩\fP Use ⟨cmd⟩ as the linker .TP .B \fB\-pgmdll⟨cmd⟩\fP Use ⟨cmd⟩ as the DLL generator .TP .B \fB\-pgmF⟨cmd⟩\fP Use ⟨cmd⟩ as the pre\-processor (with \fB\-F\fP only) .TP .B \fB\-pgmwindres⟨cmd⟩\fP Use ⟨cmd⟩ as the program for embedding manifests on Windows. .TP .B \fB\-pgmlibtool⟨cmd⟩\fP Use ⟨cmd⟩ as the command for libtool (with \fB\-staticlib\fP only). .UNINDENT .SS Phase\-specific options .INDENT 0.0 .TP .B \fB\-optL⟨option⟩\fP pass ⟨option⟩ to the literate pre\-processor .TP .B \fB\-optP⟨option⟩\fP pass ⟨option⟩ to cpp (with \fB\-cpp\fP only) .TP .B \fB\-optF⟨option⟩\fP pass ⟨option⟩ to the custom pre\-processor .TP .B \fB\-optc⟨option⟩\fP pass ⟨option⟩ to the C compiler .TP .B \fB\-optlo⟨option⟩\fP pass ⟨option⟩ to the LLVM optimiser .TP .B \fB\-optlc⟨option⟩\fP pass ⟨option⟩ to the LLVM compiler .TP .B \fB\-opta⟨option⟩\fP pass ⟨option⟩ to the assembler .TP .B \fB\-optl⟨option⟩\fP pass ⟨option⟩ to the linker .TP .B \fB\-optdll⟨option⟩\fP pass ⟨option⟩ to the DLL generator .TP .B \fB\-optwindres⟨option⟩\fP pass ⟨option⟩ to \fBwindres\fP\&. .UNINDENT .SS Platform\-specific options .INDENT 0.0 .TP .B \fB\-msse2\fP (x86 only) Use SSE2 for floating\-point operations .TP .B \fB\-msse4.2\fP (x86 only) Use SSE4.2 for floating\-point operations .UNINDENT .SS Compiler plugins .INDENT 0.0 .TP .B \fB\-fplugin=⟨module⟩\fP Load a plugin exported by a given module .TP .B \fB\-fplugin\-opt=⟨module:args⟩\fP Give arguments to a plugin module; module must be specified with \fB\-fplugin\fP .UNINDENT .SS Profiling .INDENT 0.0 .TP .B \fB\-prof\fP Turn on profiling .TP .B \fB\-fprof\-auto\fP Auto\-add \fBSCC\fPs to all bindings not marked INLINE .TP .B \fB\-fprof\-auto\-top\fP Auto\-add \fBSCC\fPs to all top\-level bindings not marked INLINE .TP .B \fB\-fprof\-auto\-exported\fP Auto\-add \fBSCC\fPs to all exported bindings not marked INLINE .TP .B \fB\-fprof\-cafs\fP Auto\-add \fBSCC\fPs to all CAFs .TP .B \fB\-fno\-prof\-count\-entries\fP Do not collect entry counts .TP .B \fB\-ticky\fP Turn on ticky\-ticky profiling .UNINDENT .SS Program coverage .INDENT 0.0 .TP .B \fB\-fhpc\fP Turn on Haskell program coverage instrumentation .TP .B \fB\-hpcdir dir\fP Directory to deposit \fB\&.mix\fP files during compilation (default is \fB\&.hpc\fP) .UNINDENT .SS Recompilation checking .INDENT 0.0 .TP .B \fB\-fforce\-recomp\fP Turn off recompilation checking. This is implied by any \fB\-ddump\-X\fP option when compiling a single file (i.e. when using \fBc\fP). .UNINDENT .SS Redirecting output .INDENT 0.0 .TP .B \fB\-hcsuf ⟨suffix⟩\fP set the suffix to use for intermediate C files .TP .B \fB\-hidir ⟨dir⟩\fP set directory for interface files .TP .B \fB\-hisuf ⟨suffix⟩\fP set the suffix to use for interface files .TP .B \fB\-o ⟨filename⟩\fP set output filename .TP .B \fB\-odir ⟨dir⟩\fP set directory for object files .TP .B \fB\-ohi ⟨filename⟩\fP set the filename in which to put the interface .TP .B \fB\-osuf ⟨suffix⟩\fP set the output file suffix .TP .B \fB\-stubdir ⟨dir⟩\fP redirect FFI stub files .TP .B \fB\-dumpdir ⟨dir⟩\fP redirect dump files .TP .B \fB\-outputdir ⟨dir⟩\fP set output directory .TP .B \fB\-dyno \fP Set the output filename for dynamic object files (see \fB\-dynamic\-too\fP) .TP .B \fB\-dynosuf \fP Set the object suffix for dynamic object files (see \fB\-dynamic\-too\fP) .TP .B \fB\-dynhisuf \fP Set the hi suffix for dynamic object files (see \fB\-dynamic\-too\fP) .UNINDENT .SS Temporary files .INDENT 0.0 .TP .B \fB\-tmpdir ⟨dir⟩\fP set the directory for temporary files .UNINDENT .SS Verbosity options .INDENT 0.0 .TP .B \fB\-v\fP verbose mode (equivalent to \fB\-v3\fP) .TP .B \fB\-v⟨n⟩\fP set verbosity level .TP .B \fB\-fprint\-potential\-instances\fP display all available instances in type error messages .TP .B \fB\-fprint\-explicit\-foralls\fP Print explicit \fBforall\fP quantification in types. See also \fBXExplicitForAll\fP .TP .B \fB\-fprint\-explicit\-kinds\fP Print explicit kind foralls and kind arguments in types. See also \fBXKindSignature\fP .TP .B \fB\-fprint\-explicit\-runtime\-reps\fP Print \fBRuntimeRep\fP variables in types which are runtime\-representation polymorphic. .TP .B \fB\-fprint\-unicode\-syntax\fP Use unicode syntax when printing expressions, types and kinds. See also \fBXUnicodeSyntax\fP .TP .B \fB\-fprint\-expanded\-synonyms\fP In type errors, also print type\-synonym\-expanded types. .TP .B \fB\-fprint\-typechecker\-elaboration\fP Print extra information from typechecker. .TP .B \fB\-ferror\-spans\fP Output full span in error messages .TP .B \fB\-Rghc\-timing\fP Summarise timing stats for GHC (same as \fB+RTS \-tstderr\fP). .UNINDENT .SS Warnings .INDENT 0.0 .TP .B \fB\-W\fP enable normal warnings .TP .B \fB\-w\fP disable all warnings .TP .B \fB\-Wall\fP enable almost all warnings (details in options\-sanity) .TP .B \fB\-Wcompat\fP enable future compatibility warnings (details in options\-sanity) .TP .B \fB\-Werror\fP make warnings fatal .TP .B \fB\-Wwarn\fP make warnings non\-fatal .TP .B \fB\-Wunrecognised\-warning\-flags\fP throw a warning when an unreconised \fB\-W...\fP flag is encountered on the command line. .TP .B \fB\-fshow\-warning\-groups\fP show which group an emitted warning belongs to. .TP .B \fB\-fdefer\-type\-errors\fP Turn type errors into warnings, deferring the error until runtime\&. Implies \fBfdefer\-typed\-holes\fP\&. See also \fBWdeferred\-type\-errors\fP .TP .B \fB\-fdefer\-typed\-holes\fP Convert typed hole errors into warnings, deferring the error until runtime\&. Implied by \fBfdefer\-type\-errors\fP\&. See also \fBWtyped\-holes\fP\&. .TP .B \fB\-fhelpful\-errors\fP Make suggestions for mis\-spelled names. .TP .B \fB\-Wdeprecated\-flags\fP warn about uses of commandline flags that are deprecated .TP .B \fB\-Wduplicate\-constraints\fP warn when a constraint appears duplicated in a type signature .TP .B \fB\-Wduplicate\-exports\fP warn when an entity is exported multiple times .TP .B \fB\-Whi\-shadowing\fP warn when a \fB\&.hi\fP file in the current directory shadows a library .TP .B \fB\-Widentities\fP warn about uses of Prelude numeric conversions that are probably the identity (and hence could be omitted) .TP .B \fB\-Wimplicit\-prelude\fP warn when the Prelude is implicitly imported .TP .B \fB\-Wincomplete\-patterns\fP warn when a pattern match could fail .TP .B \fB\-Wincomplete\-uni\-patterns\fP warn when a pattern match in a lambda expression or pattern binding could fail .TP .B \fB\-Wmax\-pmcheck\-iterations=\fP the iteration limit for the pattern match checker .TP .B \fB\-Wincomplete\-record\-updates\fP warn when a record update could fail .TP .B \fB\-Wmissing\-fields\fP warn when fields of a record are uninitialised .TP .B \fB\-Wmissing\-import\-lists\fP warn when an import declaration does not explicitly list all thenames brought into scope .TP .B \fB\-Wmissing\-methods\fP warn when class methods are undefined .TP .B \fB\-Wmissing\-signatures\fP warn about top\-level functions without signatures .TP .B \fB\-Wmissing\-exported\-sigs\fP \fI(deprecated)\fP warn about top\-level functions without signatures, only if they are exported. takes precedence over \-Wmissing\-signatures .TP .B \fB\-Wmissing\-exported\-signatures\fP warn about top\-level functions without signatures, only if they are exported. takes precedence over \-Wmissing\-signatures .TP .B \fB\-Wmissing\-local\-sigs\fP \fI(deprecated)\fP warn about polymorphic local bindings without signatures .TP .B \fB\-Wmissing\-local\-signatures\fP warn about polymorphic local bindings without signatures .TP .B \fB\-Wmissing\-monadfail\-instances\fP warn when a failable pattern is used in a do\-block that does not have a \fBMonadFail\fP instance. .TP .B \fB\-Wsemigroup\fP warn when a \fBMonoid\fP is not \fBSemigroup\fP, and on non\-\fBSemigroup\fP definitions of \fB(<>)\fP? .TP .B \fB\-Wmissed\-specialisations\fP warn when specialisation of an imported, overloaded function fails. .TP .B \fB\-Wall\-missed\-specialisations\fP warn when specialisation of any overloaded function fails. .TP .B \fB\-Wmonomorphism\-restriction\fP warn when the Monomorphism Restriction is applied .TP .B \fB\-Wname\-shadowing\fP warn when names are shadowed .TP .B \fB\-Wnoncanonical\-monad\-instances\fP warn when \fBApplicative\fP or \fBMonad\fP instances have noncanonical definitions of \fBreturn\fP, \fBpure\fP, \fB(>>)\fP, or \fB(*>)\fP\&. See flag description in options\-sanity for more details. .TP .B \fB\-Wnoncanonical\-monadfail\-instances\fP warn when \fBMonad\fP or \fBMonadFail\fP instances have noncanonical definitions of \fBfail\fP\&.See flag description in options\-sanity for more details. .TP .B \fB\-Wnoncanonical\-monoid\-instances\fP warn when \fBSemigroup\fP or \fBMonoid\fP instances have noncanonical definitions of \fB(<>)\fP or \fBmappend\fP\&. See flag description in options\-sanity for more details. .TP .B \fB\-Worphans\fP warn when the module contains orphan instance declarations or rewrite rules .TP .B \fB\-Woverlapping\-patterns\fP warn about overlapping patterns .TP .B \fB\-Wtabs\fP warn if there are tabs in the source file .TP .B \fB\-Wtype\-defaults\fP warn when defaulting happens .TP .B \fB\-Wunrecognised\-pragmas\fP warn about uses of pragmas that GHC doesn\(aqt recognise .TP .B \fB\-Wunticked\-promoted\-constructors\fP warn if promoted constructors are not ticked .TP .B \fB\-Wunused\-binds\fP warn about bindings that are unused. Alias for \fBWunused\-top\-binds\fP, \fBWunused\-local\-binds\fP and \fBWunused\-pattern\-binds\fP .TP .B \fB\-Wunused\-top\-binds\fP warn about top\-level bindings that are unused .TP .B \fB\-Wunused\-local\-binds\fP warn about local bindings that are unused .TP .B \fB\-Wunused\-pattern\-binds\fP warn about pattern match bindings that are unused .TP .B \fB\-Wunused\-imports\fP warn about unnecessary imports .TP .B \fB\-Wunused\-matches\fP warn about variables in patterns that aren\(aqt used .TP .B \fB\-Wunused\-foralls\fP warn about type variables in user\-written \fBforall\fPs that are unused .TP .B \fB\-Wunused\-type\-variables\fP warn about variables in type family or data family instances that are unused .TP .B \fB\-Wunused\-do\-bind\fP warn about do bindings that appear to throw away values of types other than \fB()\fP .TP .B \fB\-Wwrong\-do\-bind\fP warn about do bindings that appear to throw away monadic values that you should have bound instead .TP .B \fB\-Wunsafe\fP warn if the module being compiled is regarded to be unsafe. Should be used to check the safety status of modules when using safe inference. Works on all module types, even those using explicit Safe Haskell modes (such as \fBXTrustworthy\fP) and so can be used to have the compiler check any assumptions made. .TP .B \fB\-Wsafe\fP warn if the module being compiled is regarded to be safe. Should be used to check the safety status of modules when using safe inference. Works on all module types, even those using explicit Safe Haskell modes (such as \fBXTrustworthy\fP) and so can be used to have the compiler check any assumptions made. .TP .B \fB\-Wtrustworthy\-safe\fP warn if the module being compiled is marked as \fBXTrustworthy\fP but it could instead be marked as \fBXSafe\fP, a more informative bound. Can be used to detectonce a Safe Haskell bound can be improved as dependencies are updated. .TP .B \fB\-Wwarnings\-deprecations\fP warn about uses of functions & types that have warnings or deprecated pragmas .TP .B \fB\-Wamp\fP \fI(deprecated)\fP warn on definitions conflicting with the Applicative\-Monad Proposal (AMP) .TP .B \fB\-Wredundant\-constraints\fP Have the compiler warn about redundant constraints in typesignatures. .TP .B \fB\-Wdeferred\-type\-errors\fP Report warnings when deferred type errors are enabled. This option is enabled by default. See \fBfdefer\-type\-errors\fP\&. .TP .B \fB\-Wtyped\-holes\fP Report warnings when typed hole errors are deferred until runtime\&. See \fBfdefer\-typed\-holes\fP\&. .TP .B \fB\-Wpartial\-type\-signatures\fP warn about holes in partial type signatures when \fBXPartialTypeSignatures\fP is enabled. Not applicable when \fBXPartialTypesignatures\fP is not enabled, in which case errors are generated for such holes. See partial\-type\-signatures\&. .TP .B \fB\-Wderiving\-typeable\fP warn when encountering a request to derive an instance of class \fBTypeable\fP\&. As of GHC 7.10, such declarations are unnecessary and are ignored by the compiler because GHC has a custom solver for discharging this type of constraint. .UNINDENT .SH COPYRIGHT .sp Copyright 2015. The University Court of the University of Glasgow. All rights reserved. .SH AUTHOR The GHC Team .SH COPYRIGHT 2016, GHC Team .\" Generated by docutils manpage writer. .