.\" .\" This is a generated file. Changes might get clobbered. Edit at own's risk. .\" .TH GHC 1 "2002-10-25" "Glasgow FP Suite" "Glasgow Haskell Compiler" .SH NAME GHC \- the Glasgow Haskell Compiler .SH SYNOPSIS .B ghc .RI [ option | filename ]... .br .B ghci .RI [ option | filename ]... .SH DESCRIPTION This manual page documents briefly the .B ghc and .B ghci commands. Note that .B ghci is not yet available on all architectures. Extensive documentation is available in various other formats including DVI, PostScript and HTML; see below. .PP Each of GHC's command line options is classified as either .IR static " or " dynamic . A static flag may only be specified on the command line, whereas a dynamic flag may also be given in an \f(CROPTIONS\fP pragma in a source file or set from the GHCi command-line with \f(CR:set\fP. As a rule of thumb, all the language options are dynamic, as are the warning options and the debugging options. The rest are static, with the notable exceptions of .BR \-v ", " \-cpp ", " \-fasm ", " \-fvia\-C ", " \-fllvm ", and " \-#include . The OPTIONS sections lists the status of each flag. .PP Common suffixes of file names for Haskell are: .TP .B .hs Haskell source code; preprocess, compile .TP .B .lhs literate Haskell source; unlit, preprocess, compile .TP .B .hi Interface file; contains information about exported symbols .TP .B .hc intermediate C files .TP .BI . x _o way .I x object files; common ways are: .BR p ", " u ", " s .TP .BI . x _hi way .I x interface files .SH OPTIONS .SS Verbosity options .nh \-v \-v\fIn\fP \-fprint\-explicit\-foralls \-fprint\-explicit\-kinds \-ferror\-spans \-H\fIsize\fP \-Rghc\-timing .hy .SS Alternative modes of operation .nh \-\-help,\-? \-\-interactive \-\-make \-e expr \-\-show\-iface \-M \-\-supported\-extensions, \-\-supported\-languages \-\-show\-options \-\-info \-\-version, \-V \-\-numeric\-version \-\-print\-libdir .hy .SS Which phases to run .nh \-E \-C \-S \-c \-x \fIsuffix\fP .hy .SS Redirecting output .nh \-hcsuf \fIsuffix\fP \-hidir \fIdir\fP \-hisuf \fIsuffix\fP \-o \fIfilename\fP \-odir \fIdir\fP \-ohi \fIfilename\fP \-osuf \fIsuffix\fP \-stubdir \fIdir\fP \-dumpdir \fIdir\fP \-outputdir \fIdir\fP .hy .SS Keeping intermediate files .nh \-keep\-hc\-file or \-keep\-hc\-files \-keep\-llvm\-file or \-keep\-llvm\-files \-keep\-s\-file or \-keep\-s\-files \-keep\-tmp\-files .hy .SS Temporary files .nh \-tmpdir .hy .SS Finding imports .nh \-i\fIdir1\fP:\fIdir2\fP:... \-i .hy .SS Interface file options .nh \-ddump\-hi \-ddump\-hi\-diffs \-ddump\-minimal\-imports \-\-show\-iface \fIfile\fP .hy .SS Recompilation checking .nh \-fforce\-recomp \-fno\-force\-recomp .hy .SS Interactive-mode options .nh \-ignore\-dot\-ghci \-ghci\-script \-fbreak\-on\-error \-fno\-break\-on\-error \-fbreak\-on\-exception \-fno\-break\-on\-exception \-fghci\-hist\-size=n (default is 50) \-fprint\-evld\-with\-show \-fno\-print\-evld\-with\-show \-fprint\-bind\-result \-fno\-print\-bind\-result \-fno\-print\-bind\-contents \-fno\-implicit\-import\-qualified \-interactive\-print .hy .SS Packages .nh \-this\-package\-key \fIP\fP \-package \fIP\fP \-hide\-all\-packages \-hide\-package \fIname\fP \-ignore\-package \fIname\fP \-package\-db \fIfile\fP \-clear\-package\-db \-no\-global\-package\-db \-global\-package\-db \-no\-user\-package\-db \-user\-package\-db \-no\-auto\-link\-packages \-trust \fIP\fP \-distrust \fIP\fP \-distrust\-all .hy .SS Language options .nh \-fcontext\-stack=\fIn\fP \-fglasgow\-exts \-fno\-glasgow\-exts \-firrefutable\-tuples \-fno\-irrefutable\-tuples \-fpackage\-trust \-ftype\-function\-depth=\fIn\fP \-XAllowAmbiguousTypes \-XNoAllowAmbiguousTypes \-XArrows \-XNoArrows \-XAutoDeriveTypeable \-XNoAutoDeriveTypeable \-XBangPatterns \-XNoBangPatterns \-XBinaryLiterals \-XNoBinaryLiterals \-XCApiFFI \-XNoCAPIFFI \-XConstrainedClassMethods \-XNoConstrainedClassMethods \-XConstraintKinds \-XNoConstraintKinds \-XCPP \-XNoCPP \-XDataKinds \-XNoDataKinds \-XDefaultSignatures \-XNoDefaultSignatures \-XDeriveAnyClass \-XNoDeriveAnyClass \-XDeriveDataTypeable \-XNoDeriveDataTypeable \-XDeriveFunctor \-XNoDeriveFunctor \-XDeriveFoldable \-XNoDeriveFoldable \-XDeriveGeneric \-XNoDeriveGeneric \-XDeriveTraversable \-XNoDeriveTraversable \-XDisambiguateRecordFields \-XNoDisambiguateRecordFields \-XEmptyCase \-XNoEmptyCase \-XEmptyDataDecls \-XNoEmptyDataDecls \-XExistentialQuantification \-XNoExistentialQuantification \-XExplicitForAll \-XNoExplicitForAll \-XExplicitNamespaces \-XNoExplicitNamespaces \-XExtendedDefaultRules \-XNoExtendedDefaultRules \-XFlexibleContexts \-XNoFlexibleContexts \-XFlexibleInstances \-XNoFlexibleInstances \-XForeignFunctionInterface \-XNoForeignFunctionInterface \-XFunctionalDependencies \-XNoFunctionalDependencies \-XGADTs \-XNoGADTs \-XGADTSyntax \-XNoGADTSyntax \-XGeneralizedNewtypeDeriving \-XNoGeneralizedNewtypeDeriving \-XGenerics \-XNoGenerics \-XImplicitParams \-XNoImplicitParams \-XNoImplicitPrelude \-XImplicitPrelude \-XImpredicativeTypes \-XNoImpredicativeTypes \-XIncoherentInstances \-XNoIncoherentInstances \-XInstanceSigs \-XNoInstanceSigs \-XInterruptibleFFI \-XNoInterruptibleFFI \-XKindSignatures \-XNoKindSignatures \-XLambdaCase \-XNoLambdaCase \-XLiberalTypeSynonyms \-XNoLiberalTypeSynonyms \-XMagicHash \-XNoMagicHash \-XMonadComprehensions \-XNoMonadComprehensions \-XMonoLocalBinds \-XNoMonoLocalBinds \-XNoMonomorphismRestriction \-XMonomorphismRestriction \-XMultiParamTypeClasses \-XNoMultiParamTypeClasses \-XMultiWayIf \-XNoMultiWayIf \-XNamedFieldPuns \-XNoNamedFieldPuns \-XNamedWildCards \-XNoNamedWildCards \-XNegativeLiterals \-XNoNegativeLiterals \-XNoNPlusKPatterns \-XNPlusKPatterns \-XNullaryTypeClasses \-XNoNullaryTypeClasses \-XNumDecimals \-XNoNumDecimals \-XOverlappingInstances \-XNoOverlappingInstances \-XOverloadedLists \-XNoOverloadedLists \-XOverloadedStrings \-XNoOverloadedStrings \-XPackageImports \-XNoPackageImports \-XParallelArrays \-XNoParallelArrays \-XParallelListComp \-XNoParallelListComp \-XPartialTypeSignatures \-XNoPartialTypeSignatures \-XPatternGuards \-XNoPatternGuards \-XPatternSynonyms \-XNoPatternSynonyms \-XPolyKinds \-XNoPolyKinds \-XPolymorphicComponents \-XNoPolymorphicComponents \-XPostfixOperators \-XNoPostfixOperators \-XQuasiQuotes \-XNoQuasiQuotes \-XRank2Types \-XNoRank2Types \-XRankNTypes \-XNoRankNTypes \-XRebindableSyntax \-XNoRebindableSyntax \-XRecordWildCards \-XNoRecordWildCards \-XRecursiveDo \-XNoRecursiveDo \-XRelaxedPolyRec \-XNoRelaxedPolyRec \-XRoleAnnotations \-XNoRoleAnnotations \-XSafe \-XScopedTypeVariables \-XNoScopedTypeVariables \-XStandaloneDeriving \-XNoStandaloneDeriving \-XTemplateHaskell \-XNoTemplateHaskell \-XNoTraditionalRecordSyntax \-XTraditionalRecordSyntax \-XTransformListComp \-XNoTransformListComp \-XTrustworthy \-XTupleSections \-XNoTupleSections \-XTypeFamilies \-XNoTypeFamilies \-XTypeOperators \-XNoTypeOperators \-XTypeSynonymInstances \-XNoTypeSynonymInstances \-XUnboxedTuples \-XNoUnboxedTuples \-XUndecidableInstances \-XNoUndecidableInstances \-XUnicodeSyntax \-XNoUnicodeSyntax \-XUnliftedFFITypes \-XNoUnliftedFFITypes \-XUnsafe \-XViewPatterns \-XNoViewPatterns .hy .SS Warnings .nh \-W \-w \-w \-Wall \-w \-Werror \-Wwarn \-fdefer\-type\-errors \-fno\-defer\-type\-errors \-fdefer\-typed\-holes \-fno\-defer\-typed\-holes \-fhelpful\-errors \-fno\-helpful\-errors \-fwarn\-deprecated\-flags \-fno\-warn\-deprecated\-flags \-fwarn\-duplicate\-constraints \-fno\-warn\-duplicate\-constraints \-fwarn\-duplicate\-exports \-fno\-warn\-duplicate\-exports \-fwarn\-hi\-shadowing \-fno\-warn\-hi\-shadowing \-fwarn\-identities \-fno\-warn\-identities \-fwarn\-implicit\-prelude \-fno\-warn\-implicit\-prelude \-fwarn\-incomplete\-patterns \-fno\-warn\-incomplete\-patterns \-fwarn\-incomplete\-uni\-patterns \-fno\-warn\-incomplete\-uni\-patterns \-fwarn\-incomplete\-record\-updates \-fno\-warn\-incomplete\-record\-updates \-fwarn\-lazy\-unlifted\-bindings \-fno\-warn\-lazy\-unlifted\-bindings \-fwarn\-missing\-fields \-fno\-warn\-missing\-fields \-fwarn\-missing\-import\-lists \-fnowarn\-missing\-import\-lists \-fwarn\-missing\-methods \-fno\-warn\-missing\-methods \-fwarn\-missing\-signatures \-fno\-warn\-missing\-signatures \-fwarn\-missing\-exported\-sigs \-fno\-warn\-missing\-exported\-sigs \-fwarn\-missing\-local\-sigs \-fno\-warn\-missing\-local\-sigs \-fwarn\-monomorphism\-restriction \-fno\-warn\-monomorphism\-restriction \-fwarn\-name\-shadowing \-fno\-warn\-name\-shadowing \-fwarn\-orphans, \-fwarn\-auto\-orphans \-fno\-warn\-orphans, \-fno\-warn\-auto\-orphans \-fwarn\-overlapping\-patterns \-fno\-warn\-overlapping\-patterns \-fwarn\-tabs \-fno\-warn\-tabs \-fwarn\-type\-defaults \-fno\-warn\-type\-defaults \-fwarn\-unrecognised\-pragmas \-fno\-warn\-unrecognised\-pragmas \-fwarn\-unticked\-promoted\-constructors \-fno\-warn\-unticked\-promoted\-constructors \-fwarn\-unused\-binds \-fno\-warn\-unused\-binds \-fwarn\-unused\-imports \-fno\-warn\-unused\-imports \-fwarn\-unused\-matches \-fno\-warn\-unused\-matches \-fwarn\-unused\-do\-bind \-fno\-warn\-unused\-do\-bind \-fwarn\-wrong\-do\-bind \-fno\-warn\-wrong\-do\-bind \-fwarn\-unsafe \-fno\-warn\-unsafe \-fwarn\-safe \-fno\-warn\-safe \-fwarn\-trustworthy\-safe \-fno\-warn\-safe \-fwarn\-warnings\-deprecations \-fno\-warn\-warnings\-deprecations \-fwarn\-amp \-fno\-warn\-amp \-fwarn\-typed\-holes \-fno\-warn\-typed\-holes \-fwarn\-partial\-type\-signatures \-fno\-warn\-partial\-type\-signatures \-fwarn\-deriving\-typeable \-fno\-warn\-deriving\-typeable .hy .SS Optimisation levels .nh \-O0 \-O \-O or \-O1 \-O0 \-O2 \-O0 \-Odph .hy .SS Individual optimisations .nh \-fcall\-arity \-fno\-call\-arity \-fcase\-merge \-fno\-case\-merge \-fcmm\-elim\-common\-blocks \-fno\-cmm\-elim\-common\-blocks \-fcmm\-sink \-fno\-cmm\-sink \-fcpr\-off \-fcse \-fno\-cse \-fdicts\-cheap \-fno\-dicts\-cheap \-fdicts\-strict \-fno\-dicts\-strict \-fdmd\-tx\-dict\-sel \-fno\-dmd\-tx\-dict\-sel \-fdo\-eta\-reduction \-fno\-do\-eta\-reduction \-fdo\-lambda\-eta\-expansion \-fno\-do\-lambda\-eta\-expansion \-feager\-blackholing \-fenable\-rewrite\-rules \-fno\-enable\-rewrite\-rules \-fexcess\-precision \-fno\-excess\-precision \-fexpose\-all\-unfoldings \-fno\-expose\-all\-unfoldings \-ffloat\-in \-fno\-float\-in \-ffull\-laziness \-fno\-full\-laziness \-ffun\-to\-thunk \-fno\-fun\-to\-thunk \-fignore\-asserts \-fno\-ignore\-asserts \-fignore\-interface\-pragmas \-fno\-ignore\-interface\-pragmas \-flate\-dmd\-anal \-fno\-late\-dmd\-anal \-fliberate\-case \-fliberate\-case\-threshold=\fIn\fP \-fno\-liberate\-case\-threshold \-floopification \-fno\-loopification \-fmax\-inline\-alloc\-size=\fIn\fP \-fmax\-inline\-memcpy\-insns=\fIn\fP \-fmax\-inline\-memset\-insns=\fIn\fP \-fmax\-relevant\-binds=n \-fno\-max\-relevant\-bindings \-fmax\-simplifier\-iterations=n \-fmax\-worker\-args=n \-fno\-opt\-coercion \-fno\-pre\-inlining \-fno\-state\-hack \-fomit\-interface\-pragmas \-fno\-omit\-interface\-pragmas \-fomit\-yields \-fno\-omit\-yields \-fpedantic\-bottoms \-fno\-pedantic\-bottoms \-fregs\-graph \-fno\-regs\-graph \-fregs\-iterative \-fno\-regs\-iterative \-fsimplifier\-phases=n \-fsimpl\-tick\-factor=n \-fspec\-constr \-fno\-spec\-constr \-fspec\-constr\-count=\fIn\fP \-fno\-spec\-constr\-count \-fspec\-constr\-threshold=\fIn\fP \-fno\-spec\-constr\-threshold \-fspecialise \-fno\-specialise \-fstatic\-argument\-transformation \-fno\-static\-argument\-transformation \-fstrictness \-fno\-strictness \-fstrictness\-before=\fIn\fP \-funbox\-small\-strict\-fields \-fno\-unbox\-small\-strict\-fields \-funbox\-strict\-fields \-fno\-unbox\-strict\-fields \-funfolding\-creation\-threshold=n \-funfolding\-dict\-discount=n \-funfolding\-fun\-discount=n \-funfolding\-keeness\-factor=n \-funfolding\-use\-threshold=n \-fvectorisation\-avoidance \-fno\-vectorisation\-avoidance \-fvectorise \-fno\-vectorise .hy .SS Profiling options .nh \-prof \-fprof\-auto \-fno\-prof\-auto \-fprof\-auto\-top \-fno\-prof\-auto \-fprof\-auto\-exported \-fno\-prof\-auto \-fprof\-cafs \-fno\-prof\-cafs \-fno\-prof\-count\-entries \-fprof\-count\-entries \-ticky .hy .SS Program coverage options .nh \-fhpc \-hpcdir dir .hy .SS Haskell pre-processor options .nh \-F .hy .SS C pre-processor options .nh \-cpp \-D\fIsymbol\fP=\fIvalue\fP \-U \-U\fIsymbol\fP \-I\fIdir\fP .hy .SS Code generation options .nh \-fasm \-fllvm \-fno\-code \-fwrite\-interface \-fbyte\-code \-fobject\-code .hy .SS Linking options .nh \-shared \-staticlib \-fPIC \-dynamic \-dynamic\-too \-dyno \-dynosuf \-dynload \-framework \fIname\fP \-framework\-path \fIname\fP \-l\fIlib\fP \-L\fIdir\fP \-main\-is \-\-mk\-dll \-no\-hs\-main \-rtsopts, \-rtsopts={none,some,all} \-with\-rtsopts=opts \-no\-link \-split\-objs \-static \-threaded \-debug \-ticky \-eventlog \-fno\-gen\-manifest \-fno\-embed\-manifest \-fno\-shared\-implib \-dylib\-install\-name \fIpath\fP \-rdynamic .hy .SS Plugin options .nh \-fplugin=\fImodule\fP \-fplugin\-opt=\fImodule:args\fP .hy .SS Replacing phases .nh \-pgmL \fIcmd\fP \-pgmP \fIcmd\fP \-pgmc \fIcmd\fP \-pgmlo \fIcmd\fP \-pgmlc \fIcmd\fP \-pgms \fIcmd\fP \-pgma \fIcmd\fP \-pgml \fIcmd\fP \-pgmdll \fIcmd\fP \-pgmF \fIcmd\fP \-pgmwindres \fIcmd\fP \-pgmlibtool \fIcmd\fP \-pgmreadelf \fIcmd\fP .hy .SS Forcing options to particular phases .nh \-optL \fIoption\fP \-optP \fIoption\fP \-optF \fIoption\fP \-optc \fIoption\fP \-optlo \fIoption\fP \-optlc \fIoption\fP \-opta \fIoption\fP \-optl \fIoption\fP \-optdll \fIoption\fP \-optwindres \fIoption\fP .hy .SS Platform-specific options .nh \-msse2 .hy .SS Compiler debugging options .nh \-dcore\-lint \-ddump\-to\-file \-ddump\-asm \-ddump\-bcos \-ddump\-cmm \-ddump\-core\-stats \-ddump\-cse \-ddump\-deriv \-ddump\-ds \-ddump\-foreign \-ddump\-hpc \-ddump\-inlinings \-ddump\-llvm \-ddump\-occur\-anal \-ddump\-opt\-cmm \-ddump\-parsed \-ddump\-prep \-ddump\-rn \-ddump\-rule\-firings \-ddump\-rule\-rewrites \-ddump\-rules \-ddump\-vect \-ddump\-simpl \-ddump\-simpl\-iterations \-ddump\-spec \-ddump\-splices \-ddump\-stg \-ddump\-stranal \-ddump\-strsigs \-ddump\-tc \-dth\-dec\-file \-ddump\-types \-ddump\-worker\-wrapper \-ddump\-if\-trace \-ddump\-tc\-trace \-ddump\-vt\-trace \-ddump\-rn\-trace \-ddump\-rn\-stats \-ddump\-simpl\-stats \-dno\-debug\-output \-dppr\-debug \-dppr\-user\-length \-dppr\-colsNNN \-dppr\-case\-as\-let \-dsuppress\-all \-dsuppress\-uniques \-dsuppress\-idinfo \-dsuppress\-module\-prefixes \-dsuppress\-type\-signatures \-dsuppress\-type\-applications \-dsuppress\-coercions \-dsource\-stats \-dcmm\-lint \-dstg\-lint \-dstg\-stats \-dverbose\-core2core \-dverbose\-stg2stg \-dshow\-passes \-dfaststring\-stats \-frule\-check .hy .SS Misc compiler options .nh \-jN \-fno\-hi\-version\-check \-fhistory\-size \-fno\-ghci\-history \-fno\-ghci\-sandbox .hy .SH VERBOSITY OPTIONS .TP \fB\-v\fP verbose mode (equivalent to \fB\-v3\fP) .rj [dynamic] .TP \fB\-v\fP\fIn\fP set verbosity level .rj [dynamic] .TP \fB\-fprint\-explicit\-foralls\fP print explicit \f(CRforall\fP quantification in types .rj [dynamic] .TP \fB\-fprint\-explicit\-kinds\fP print explicit kind foralls and kind arguments in types .rj [dynamic] .TP \fB\-ferror\-spans\fP output full span in error messages .rj [dynamic] .TP \fB\-H\fP\fIsize\fP Set the minimum heap size to \fIsize\fP .rj [dynamic] .TP \fB\-Rghc\-timing\fP Summarise timing stats for GHC (same as \f(CR+RTS -tstderr\fP) .rj [dynamic] .SH ALTERNATIVE MODES OF OPERATION .TP \fB\-\-help\fP,\fB\-?\fP Disply help .rj [mode] .TP \fB\-\-interactive\fP Interactive mode - normally used by just running ghci; see for details. .rj [mode] .TP \fB\-\-make\fP Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using make; see for details.. .rj [mode] .TP \fB\-e expr\fP Evaluate \fIexpr\fP; see for details. .rj [mode] .TP \fB\-\-show\-iface\fP Display the contents of an interface file. .rj [mode] .TP \fB\-M\fP Generate dependency information suitable for use in a Makefile; see for details. .rj [mode] .TP \fB\-\-supported\-extensions\fP, \fB\-\-supported\-languages\fP display the supported language extensions .rj [mode] .TP \fB\-\-show\-options\fP display the supported command line options .rj [mode] .TP \fB\-\-info\fP display information about the compiler .rj [mode] .TP \fB\-\-version, \-V\fP display GHC version .rj [mode] .TP \fB\-\-numeric\-version\fP display GHC version (numeric only) .rj [mode] .TP \fB\-\-print\-libdir\fP display GHC library directory .rj [mode] .SH WHICH PHASES TO RUN .TP \fB\-E\fP Stop after preprocessing (\f(CR.hspp\fP file) .rj [mode] .TP \fB\-C\fP Stop after generating C (\f(CR.hc\fP file) .rj [mode] .TP \fB\-S\fP Stop after generating assembly (\f(CR.s\fP file) .rj [mode] .TP \fB\-c\fP Stop after generating object (\f(CR.o\fP) file .rj [mode] .TP \fB\-x\fP \fIsuffix\fP Override default behaviour for source files .rj [dynamic] .SH REDIRECTING OUTPUT .TP \fB\-hcsuf\fP \fIsuffix\fP set the suffix to use for intermediate C files .rj [dynamic] .TP \fB\-hidir\fP \fIdir\fP set directory for interface files .rj [dynamic] .TP \fB\-hisuf\fP \fIsuffix\fP set the suffix to use for interface files .rj [dynamic] .TP \fB\-o\fP \fIfilename\fP set output filename .rj [dynamic] .TP \fB\-odir\fP \fIdir\fP set directory for object files .rj [dynamic] .TP \fB\-ohi\fP \fIfilename\fP set the filename in which to put the interface .rj [dynamic] .TP \fB\-osuf\fP \fIsuffix\fP set the output file suffix .rj [dynamic] .TP \fB\-stubdir\fP \fIdir\fP redirect FFI stub files .rj [dynamic] .TP \fB\-dumpdir\fP \fIdir\fP redirect dump files .rj [dynamic] .TP \fB\-outputdir\fP \fIdir\fP set output directory .rj [dynamic] .SH KEEPING INTERMEDIATE FILES .TP \fB\-keep\-hc\-file\fP or \fB\-keep\-hc\-files\fP retain intermediate \f(CR.hc\fP files .rj [dynamic] .TP \fB\-keep\-llvm\-file\fP or \fB\-keep\-llvm\-files\fP retain intermediate LLVM \f(CR.ll\fP files .rj [dynamic] .TP \fB\-keep\-s\-file\fP or \fB\-keep\-s\-files\fP retain intermediate \f(CR.s\fP files .rj [dynamic] .TP \fB\-keep\-tmp\-files\fP retain all intermediate temporary files .rj [dynamic] .SH TEMPORARY FILES .TP \fB\-tmpdir\fP set the directory for temporary files .rj [dynamic] .SH FINDING IMPORTS .TP \fB\-i\fP\fIdir1\fP:\fIdir2\fP:... add \fIdir\fP, \fIdir2\fP, etc. to import path .rj [dynamic/\f(CR:set\fP] .TP \fB\-i\fP Empty the import directory list .rj [dynamic/\f(CR:set\fP] .SH INTERFACE FILE OPTIONS .TP \fB\-ddump\-hi\fP Dump the new interface to stdout .rj [dynamic] .TP \fB\-ddump\-hi\-diffs\fP Show the differences vs. the old interface .rj [dynamic] .TP \fB\-ddump\-minimal\-imports\fP Dump a minimal set of imports .rj [dynamic] .TP \fB\-\-show\-iface\fP \fIfile\fP See . .rj [] .SH RECOMPILATION CHECKING .TP \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 \f(CR-c\fP). .rj [dynamic] .SH INTERACTIVE-MODE OPTIONS .TP \fB\-ignore\-dot\-ghci\fP Disable reading of .ghci files .rj [dynamic] .TP \fB\-ghci\-script\fP Read additional .ghci files .rj [dynamic] .TP \fB\-fbreak\-on\-error\fP Break on uncaught exceptions and errors .rj [dynamic] .TP \fB\-fbreak\-on\-exception\fP Break on any exception thrown .rj [dynamic] .TP \fB\-fghci\-hist\-size=n\fP Set the number of entries GHCi keeps for \f(CR:history\fP .rj [dynamic] .TP \fB\-fprint\-evld\-with\-show\fP Enable usage of Show instances in \f(CR:print\fP .rj [dynamic] .TP \fB\-fprint\-bind\-result\fP Turn on printing of binding results in GHCi .rj [dynamic] .TP \fB\-fno\-print\-bind\-contents\fP Turn off printing of binding contents in GHCi .rj [dynamic] .TP \fB\-fno\-implicit\-import\-qualified\fP Turn off implicit qualified import of everything in GHCi .rj [dynamic] .TP \fB\-interactive\-print\fP Select the function to use for printing evaluated expressions in GHCi .rj [dynamic] .SH PACKAGES .TP \fB\-this\-package\-key\fP \fIP\fP Compile to be part of package \fIP\fP .rj [dynamic] .TP \fB\-package\fP \fIP\fP Expose package \fIP\fP .rj [dynamic/\f(CR:set\fP] .TP \fB\-hide\-all\-packages\fP Hide all packages by default .rj [dynamic] .TP \fB\-hide\-package\fP \fIname\fP Hide package \fIP\fP .rj [dynamic/\f(CR:set\fP] .TP \fB\-ignore\-package\fP \fIname\fP Ignore package \fIP\fP .rj [dynamic/\f(CR:set\fP] .TP \fB\-package\-db\fP \fIfile\fP Add \fIfile\fP to the package db stack. .rj [dynamic] .TP \fB\-clear\-package\-db\fP Clear the package db stack. .rj [dynamic] .TP \fB\-no\-global\-package\-db\fP Remove the global package db from the stack. .rj [dynamic] .TP \fB\-global\-package\-db\fP Add the global package db to the stack. .rj [dynamic] .TP \fB\-no\-user\-package\-db\fP Remove the user's package db from the stack. .rj [dynamic] .TP \fB\-user\-package\-db\fP Add the user's package db to the stack. .rj [dynamic] .TP \fB\-no\-auto\-link\-packages\fP Don't automatically link in the base and rts packages. .rj [dynamic] .TP \fB\-trust\fP \fIP\fP Expose package \fIP\fP and set it to be trusted .rj [dynamic/\f(CR:set\fP] .TP \fB\-distrust\fP \fIP\fP Expose package \fIP\fP and set it to be distrusted .rj [dynamic/\f(CR:set\fP] .TP \fB\-distrust\-all\fP Distrust all packages by default .rj [dynamic/\f(CR:set\fP] .SH LANGUAGE OPTIONS .TP \fB\-fcontext\-stack=\fP\fIn\fP set the limit for type-class context reduction. Default is 100. .rj [dynamic] .TP \fB\-fglasgow\-exts\fP Deprecated. Enable most language extensions; see for exactly which ones. .rj [dynamic] .TP \fB\-firrefutable\-tuples\fP Make tuple pattern matching irrefutable .rj [dynamic] .TP \fB\-fpackage\-trust\fP Enable Safe Haskell trusted package requirement for trustworthy modules. .rj [dynamic] .TP \fB\-ftype\-function\-depth=\fP\fIn\fP set the limit for type function reductions. Default is 200. .rj [dynamic] .TP \fB\-XAllowAmbiguousTypes\fP Allow the user to write ambiguous types, and the type inference engine to infer them. .rj [dynamic] .TP \fB\-XArrows\fP Enable arrow notation extension .rj [dynamic] .TP \fB\-XAutoDeriveTypeable\fP As of GHC 7.10, this option is not needed, and should not be used. Automatically derive Typeable instances for every datatype and type class declaration. Implies \fB\-XDeriveDataTypeable\fP. .rj [dynamic] .TP \fB\-XBangPatterns\fP Enable bang patterns. .rj [dynamic] .TP \fB\-XBinaryLiterals\fP Enable support for binary literals. .rj [dynamic] .TP \fB\-XCApiFFI\fP Enable the CAPI calling convention. .rj [dynamic] .TP \fB\-XConstrainedClassMethods\fP Enable constrained class methods. .rj [dynamic] .TP \fB\-XConstraintKinds\fP Enable a kind of constraints. .rj [dynamic] .TP \fB\-XCPP\fP Enable the C preprocessor. .rj [dynamic] .TP \fB\-XDataKinds\fP Enable datatype promotion. .rj [dynamic] .TP \fB\-XDefaultSignatures\fP Enable default signatures. .rj [dynamic] .TP \fB\-XDeriveAnyClass\fP Enable deriving for any class. .rj [dynamic] .TP \fB\-XDeriveDataTypeable\fP Enable deriving for the Data class. Implied by \fB\-XAutoDeriveTypeable\fP. .rj [dynamic] .TP \fB\-XDeriveFunctor\fP Enable deriving for the Functor class. Implied by \fB\-XDeriveTraversable\fP. .rj [dynamic] .TP \fB\-XDeriveFoldable\fP Enable deriving for the Foldable class. Implied by \fB\-XDeriveTraversable\fP. .rj [dynamic] .TP \fB\-XDeriveGeneric\fP Enable deriving for the Generic class. .rj [dynamic] .TP \fB\-XDeriveTraversable\fP Enable deriving for the Traversable class. Implies \fB\-XDeriveFunctor\fP and \fB\-XDeriveFoldable\fP. .rj [dynamic] .TP \fB\-XDisambiguateRecordFields\fP Enable record field disambiguation. Implied by \fB\-XRecordWildCards\fP. .rj [dynamic] .TP \fB\-XEmptyCase\fP Allow empty case alternatives. .rj [dynamic] .TP \fB\-XEmptyDataDecls\fP Enable empty data declarations. .rj [dynamic] .TP \fB\-XExistentialQuantification\fP Enable existential quantification. .rj [dynamic] .TP \fB\-XExplicitForAll\fP Enable explicit universal quantification. Implied by \fB\-XScopedTypeVariables\fP, \fB\-XLiberalTypeSynonyms\fP, \fB\-XRankNTypes\fP and \fB\-XExistentialQuantification\fP. .rj [dynamic] .TP \fB\-XExplicitNamespaces\fP Enable using the keyword \f(CRtype\fP to specify the namespace of entries in imports and exports (). Implied by \fB\-XTypeOperators\fP and \fB\-XTypeFamilies\fP. .rj [dynamic] .TP \fB\-XExtendedDefaultRules\fP Use GHCi's extended default rules in a normal module. .rj [dynamic] .TP \fB\-XFlexibleContexts\fP Enable flexible contexts. Implied by \fB\-XImplicitParams\fP. .rj [dynamic] .TP \fB\-XFlexibleInstances\fP Enable flexible instances. Implies \fB\-XTypeSynonymInstances\fP. Implied by \fB\-XImplicitParams\fP. .rj [dynamic] .TP \fB\-XForeignFunctionInterface\fP Enable foreign function interface. .rj [dynamic] .TP \fB\-XFunctionalDependencies\fP Enable functional dependencies. Implies \fB\-XMultiParamTypeClasses\fP. .rj [dynamic] .TP \fB\-XGADTs\fP Enable generalised algebraic data types. Implies \fB\-XGADTSyntax\fP and \fB\-XMonoLocalBinds\fP. .rj [dynamic] .TP \fB\-XGADTSyntax\fP Enable generalised algebraic data type syntax. .rj [dynamic] .TP \fB\-XGeneralizedNewtypeDeriving\fP Enable newtype deriving. .rj [dynamic] .TP \fB\-XGenerics\fP Deprecated, does nothing. No longer enables generic classes. See also GHC's support for generic programming. .rj [dynamic] .TP \fB\-XImplicitParams\fP Enable Implicit Parameters. Implies \fB\-XFlexibleContexts\fP and \fB\-XFlexibleInstances\fP. .rj [dynamic] .TP \fB\-XNoImplicitPrelude\fP Don't implicitly \f(CRimport Prelude\fP. Implied by \fB\-XRebindableSyntax\fP. .rj [dynamic] .TP \fB\-XImpredicativeTypes\fP Enable impredicative types. Implies \fB\-XRankNTypes\fP. .rj [dynamic] .TP \fB\-XIncoherentInstances\fP Enable incoherent instances. Implies \fB\-XOverlappingInstances\fP. .rj [dynamic] .TP \fB\-XInstanceSigs\fP Enable instance signatures. .rj [dynamic] .TP \fB\-XInterruptibleFFI\fP Enable interruptible FFI. .rj [dynamic] .TP \fB\-XKindSignatures\fP Enable kind signatures. Implied by \fB\-XTypeFamilies\fP and \fB\-XPolyKinds\fP. .rj [dynamic] .TP \fB\-XLambdaCase\fP Enable lambda-case expressions. .rj [dynamic] .TP \fB\-XLiberalTypeSynonyms\fP Enable liberalised type synonyms. .rj [dynamic] .TP \fB\-XMagicHash\fP Allow "#" as a postfix modifier on identifiers. .rj [dynamic] .TP \fB\-XMonadComprehensions\fP Enable monad comprehensions. .rj [dynamic] .TP \fB\-XMonoLocalBinds\fP Enable do not generalise local bindings. Implied by \fB\-XTypeFamilies\fP and \fB\-XGADTs\fP. .rj [dynamic] .TP \fB\-XNoMonomorphismRestriction\fP Disable the monomorphism restriction. .rj [dynamic] .TP \fB\-XMultiParamTypeClasses\fP Enable multi parameter type classes. Implied by \fB\-XFunctionalDependencies\fP. .rj [dynamic] .TP \fB\-XMultiWayIf\fP Enable multi-way if-expressions. .rj [dynamic] .TP \fB\-XNamedFieldPuns\fP Enable record puns. .rj [dynamic] .TP \fB\-XNamedWildCards\fP Enable named wildcards. .rj [dynamic] .TP \fB\-XNegativeLiterals\fP Enable support for negative literals. .rj [dynamic] .TP \fB\-XNoNPlusKPatterns\fP Disable support for \f(CRn+k\fP patterns. .rj [dynamic] .TP \fB\-XNullaryTypeClasses\fP Deprecated, does nothing. nullary (no parameter) type classes are now enabled using \fB\-XMultiParamTypeClasses\fP. .rj [dynamic] .TP \fB\-XNumDecimals\fP Enable support for 'fractional' integer literals. .rj [dynamic] .TP \fB\-XOverlappingInstances\fP Enable overlapping instances. .rj [dynamic] .TP \fB\-XOverloadedLists\fP Enable overloaded lists. .rj [dynamic] .TP \fB\-XOverloadedStrings\fP Enable overloaded string literals. .rj [dynamic] .TP \fB\-XPackageImports\fP Enable package-qualified imports. .rj [dynamic] .TP \fB\-XParallelArrays\fP Enable parallel arrays. Implies \fB\-XParallelListComp\fP. .rj [dynamic] .TP \fB\-XParallelListComp\fP Enable parallel list comprehensions. Implied by \fB\-XParallelArrays\fP. .rj [dynamic] .TP \fB\-XPartialTypeSignatures\fP Enable partial type signatures. .rj [dynamic] .TP \fB\-XPatternGuards\fP Enable pattern guards. .rj [dynamic] .TP \fB\-XPatternSynonyms\fP Enable pattern synonyms. .rj [dynamic] .TP \fB\-XPolyKinds\fP Enable kind polymorphism. Implies \fB\-XKindSignatures\fP. .rj [dynamic] .TP \fB\-XPolymorphicComponents\fP Enable polymorphic components for data constructors. .rj [dynamic, synonym for \fB\-XRankNTypes\fP] .TP \fB\-XPostfixOperators\fP Enable postfix operators. .rj [dynamic] .TP \fB\-XQuasiQuotes\fP Enable quasiquotation. .rj [dynamic] .TP \fB\-XRank2Types\fP Enable rank-2 types. .rj [dynamic, synonym for \fB\-XRankNTypes\fP] .TP \fB\-XRankNTypes\fP Enable rank-N types. Implied by \fB\-XImpredicativeTypes\fP. .rj [dynamic] .TP \fB\-XRebindableSyntax\fP Employ rebindable syntax. Implies \fB\-XNoImplicitPrelude\fP. .rj [dynamic] .TP \fB\-XRecordWildCards\fP Enable record wildcards. Implies \fB\-XDisambiguateRecordFields\fP. .rj [dynamic] .TP \fB\-XRecursiveDo\fP Enable recursive do (mdo) notation. .rj [dynamic] .TP \fB\-XRelaxedPolyRec\fP (deprecated) Relaxed checking for mutually-recursive polymorphic functions. .rj [dynamic] .TP \fB\-XRoleAnnotations\fP Enable role annotations. .rj [dynamic] .TP \fB\-XSafe\fP Enable the Safe Haskell Safe mode. .rj [dynamic] .TP \fB\-XScopedTypeVariables\fP Enable lexically-scoped type variables. .rj [dynamic] .TP \fB\-XStandaloneDeriving\fP Enable standalone deriving. .rj [dynamic] .TP \fB\-XTemplateHaskell\fP Enable Template Haskell. .rj [dynamic] .TP \fB\-XNoTraditionalRecordSyntax\fP Disable support for traditional record syntax (as supported by Haskell 98) \f(CRC {f = x}\fP .rj [dynamic] .TP \fB\-XTransformListComp\fP Enable generalised list comprehensions. .rj [dynamic] .TP \fB\-XTrustworthy\fP Enable the Safe Haskell Trustworthy mode. .rj [dynamic] .TP \fB\-XTupleSections\fP Enable tuple sections. .rj [dynamic] .TP \fB\-XTypeFamilies\fP Enable type families. Implies \fB\-XExplicitNamespaces\fP, \fB\-XKindSignatures\fP and \fB\-XMonoLocalBinds\fP. .rj [dynamic] .TP \fB\-XTypeOperators\fP Enable type operators. Implies \fB\-XExplicitNamespaces\fP. .rj [dynamic] .TP \fB\-XTypeSynonymInstances\fP Enable type synonyms in instance heads. Implied by \fB\-XFlexibleInstances\fP. .rj [dynamic] .TP \fB\-XUnboxedTuples\fP Enable unboxed tuples. .rj [dynamic] .TP \fB\-XUndecidableInstances\fP Enable undecidable instances. .rj [dynamic] .TP \fB\-XUnicodeSyntax\fP Enable unicode syntax. .rj [dynamic] .TP \fB\-XUnliftedFFITypes\fP Enable unlifted FFI types. .rj [dynamic] .TP \fB\-XUnsafe\fP Enable Safe Haskell Unsafe mode. .rj [dynamic] .TP \fB\-XViewPatterns\fP Enable view patterns. .rj [dynamic] .SH WARNINGS .TP \fB\-W\fP enable normal warnings .rj [dynamic] .TP \fB\-w\fP disable all warnings .rj [dynamic] .TP \fB\-Wall\fP enable almost all warnings (details in ) .rj [dynamic] .TP \fB\-Werror\fP make warnings fatal .rj [dynamic] .TP \fB\-Wwarn\fP make warnings non-fatal .rj [dynamic] .TP \fB\-fdefer\-type\-errors\fP Turn type errors into warnings, deferring the error until runtime. Implies \fB\-fdefer\-typed\-holes\fP. .rj [dynamic] .TP \fB\-fdefer\-typed\-holes\fP Convert typed hole errors into warnings, deferring the error until runtime. Implied by \fB\-fdefer\-type\-errors\fP. See also \fB\-fwarn\-typed\-holes\fP. .rj [dynamic] .TP \fB\-fhelpful\-errors\fP Make suggestions for mis-spelled names. .rj [dynamic] .TP \fB\-fwarn\-deprecated\-flags\fP warn about uses of commandline flags that are deprecated .rj [dynamic] .TP \fB\-fwarn\-duplicate\-constraints\fP warn when a constraint appears duplicated in a type signature .rj [dynamic] .TP \fB\-fwarn\-duplicate\-exports\fP warn when an entity is exported multiple times .rj [dynamic] .TP \fB\-fwarn\-hi\-shadowing\fP warn when a \f(CR.hi\fP file in the current directory shadows a library .rj [dynamic] .TP \fB\-fwarn\-identities\fP warn about uses of Prelude numeric conversions that are probably the identity (and hence could be omitted) .rj [dynamic] .TP \fB\-fwarn\-implicit\-prelude\fP warn when the Prelude is implicitly imported .rj [dynamic] .TP \fB\-fwarn\-incomplete\-patterns\fP warn when a pattern match could fail .rj [dynamic] .TP \fB\-fwarn\-incomplete\-uni\-patterns\fP warn when a pattern match in a lambda expression or pattern binding could fail .rj [dynamic] .TP \fB\-fwarn\-incomplete\-record\-updates\fP warn when a record update could fail .rj [dynamic] .TP \fB\-fwarn\-lazy\-unlifted\-bindings\fP (deprecated) warn when a pattern binding looks lazy but must be strict .rj [dynamic] .TP \fB\-fwarn\-missing\-fields\fP warn when fields of a record are uninitialised .rj [dynamic] .TP \fB\-fwarn\-missing\-import\-lists\fP warn when an import declaration does not explicitly list all the names brought into scope .rj [dynamic] .TP \fB\-fwarn\-missing\-methods\fP warn when class methods are undefined .rj [dynamic] .TP \fB\-fwarn\-missing\-signatures\fP warn about top-level functions without signatures .rj [dynamic] .TP \fB\-fwarn\-missing\-exported\-sigs\fP warn about top-level functions without signatures, only if they are exported. takes precedence over -fwarn-missing-signatures .rj [dynamic] .TP \fB\-fwarn\-missing\-local\-sigs\fP warn about polymorphic local bindings without signatures .rj [dynamic] .TP \fB\-fwarn\-monomorphism\-restriction\fP warn when the Monomorphism Restriction is applied .rj [dynamic] .TP \fB\-fwarn\-name\-shadowing\fP warn when names are shadowed .rj [dynamic] .TP \fB\-fwarn\-orphans, \-fwarn\-auto\-orphans\fP warn when the module contains orphan instance declarations or rewrite rules .rj [dynamic] .TP \fB\-fwarn\-overlapping\-patterns\fP warn about overlapping patterns .rj [dynamic] .TP \fB\-fwarn\-tabs\fP warn if there are tabs in the source file .rj [dynamic] .TP \fB\-fwarn\-type\-defaults\fP warn when defaulting happens .rj [dynamic] .TP \fB\-fwarn\-unrecognised\-pragmas\fP warn about uses of pragmas that GHC doesn't recognise .rj [dynamic] .TP \fB\-fwarn\-unticked\-promoted\-constructors\fP warn if promoted constructors are not ticked .rj [dynamic] .TP \fB\-fwarn\-unused\-binds\fP warn about bindings that are unused .rj [dynamic] .TP \fB\-fwarn\-unused\-imports\fP warn about unnecessary imports .rj [dynamic] .TP \fB\-fwarn\-unused\-matches\fP warn about variables in patterns that aren't used .rj [dynamic] .TP \fB\-fwarn\-unused\-do\-bind\fP warn about do bindings that appear to throw away values of types other than \f(CR()\fP .rj [dynamic] .TP \fB\-fwarn\-wrong\-do\-bind\fP warn about do bindings that appear to throw away monadic values that you should have bound instead .rj [dynamic] .TP \fB\-fwarn\-unsafe\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 \fB\-XTrustworthy\fP) and so can be used to have the compiler check any assumptions made. .rj [dynamic] .TP \fB\-fwarn\-safe\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 \fB\-XTrustworthy\fP) and so can be used to have the compiler check any assumptions made. .rj [dynamic] .TP \fB\-fwarn\-trustworthy\-safe\fP warn if the module being compiled is marked as \fB\-XTrustworthy\fP but it could instead be marked as \fB\-XSafe\fP, a more informative bound. Can be used to detect once a Safe Haskell bound can be improved as dependencies are updated. .rj [dynamic] .TP \fB\-fwarn\-warnings\-deprecations\fP warn about uses of functions & types that have warnings or deprecated pragmas .rj [dynamic] .TP \fB\-fwarn\-amp\fP (deprecated) warn on definitions conflicting with the Applicative-Monad Proposal (AMP) .rj [dynamic] .TP \fB\-fwarn\-typed\-holes\fP Report warnings when typed hole errors are deferred until runtime. See \fB\-fdefer\-typed\-holes\fP. .rj [dynamic] .TP \fB\-fwarn\-partial\-type\-signatures\fP warn about holes in partial type signatures when \fB\-XPartialTypesignatures\fP is enabled. Not applicable when \fB\-XPartialTypesignatures\fP is not enabled, in which case errors are generated for such holes. See . .rj [dynamic] .TP \fB\-fwarn\-deriving\-typeable\fP warn when encountering a request to derive an instance of class \f(CRTypeable\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. .rj [dynamic] .SH OPTIMISATION LEVELS .TP \fB\-O0\fP Disable optimisations (default) .rj [dynamic] .TP \fB\-O\fP or \fB\-O1\fP Enable level 1 optimisations .rj [dynamic] .TP \fB\-O2\fP Enable level 2 optimisations .rj [dynamic] .TP \fB\-Odph\fP Enable level 2 optimisations, set \fB\-fmax\-simplifier\-iterations=20\fP and \fB\-fsimplifier\-phases=3\fP. .rj [dynamic] .SH INDIVIDUAL OPTIMISATIONS .TP \fB\-fcall\-arity\fP Enable call-arity optimisation. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fcase\-merge\fP Enable case-merging. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fcmm\-elim\-common\-blocks\fP Enable Cmm common block elimination. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fcmm\-sink\fP Enable Cmm sinking. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fcpr\-off\fP Switch off CPR analysis in the demand analyser. .rj [static] .TP \fB\-fcse\fP Enable common sub-expression elimination. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fdicts\-cheap\fP Make dictionary-valued expressions seem cheap to the optimiser. .rj [dynamic] .TP \fB\-fdicts\-strict\fP Make dictionaries strict .rj [dynamic] .TP \fB\-fdmd\-tx\-dict\-sel\fP Use a special demand transformer for dictionary selectors. Always enabled by default. .rj [dynamic] .TP \fB\-fdo\-eta\-reduction\fP Enable eta-reduction. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fdo\-lambda\-eta\-expansion\fP Enable lambda eta-expansion. Always enabled by default. .rj [dynamic] .TP \fB\-feager\-blackholing\fP Turn on eager blackholing .rj [dynamic] .TP \fB\-fenable\-rewrite\-rules\fP Switch on all rewrite rules (including rules generated by automatic specialisation of overloaded functions). Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fexcess\-precision\fP Enable excess intermediate precision .rj [dynamic] .TP \fB\-fexpose\-all\-unfoldings\fP Expose all unfoldings, even for very large or recursive functions. .rj [dynamic] .TP \fB\-ffloat\-in\fP Turn on the float-in transformation. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-ffull\-laziness\fP Turn on full laziness (floating bindings outwards). Implied by \fB\-O\fP. .rj [dynamic] .TP \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. .rj [dynamic] .TP \fB\-fignore\-asserts\fP Ignore assertions in the source. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fignore\-interface\-pragmas\fP Ignore pragmas in interface files. Implied by \fB\-O0\fP only. .rj [dynamic] .TP \fB\-flate\-dmd\-anal\fP Run demand analysis again, at the end of the simplification pipeline .rj [dynamic] .TP \fB\-fliberate\-case\fP Turn on the liberate-case transformation. Implied by \fB\-O2\fP. .rj [dynamic] .TP \fB\-fliberate\-case\-threshold\fP=\fIn\fP Set the size threshold for the liberate-case transformation to \fIn\fP (default: 2000) .rj [dynamis] .TP \fB\-floopification\fP Turn saturated self-recursive tail-calls into local jumps in the generated assembly. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fmax\-inline\-alloc\-size\fP=\fIn\fP Set the maximum size of inline array allocations to \fIn\fP bytes (default: 128). GHC will allocate non-pinned arrays of statically known size in the current nursery block if they're no bigger than \fIn\fP bytes, ignoring GC overheap. This value should be quite a bit smaller than the block size (typically: 4096). .rj [dynamic] .TP \fB\-fmax\-inline\-memcpy\-insns\fP=\fIn\fP Inline memcpy calls if they would generate no more than \fIn\fP pseudo instructions (default: 32). .rj [dynamic] .TP \fB\-fmax\-inline\-memset\-insns\fP=\fIn\fP Inline memset calls if they would generate no more than \fIn\fP pseudo instructions (default: 32). .rj [dynamic] .TP \fB\-fmax\-relevant\-binds=n\fP Set the maximum number of bindings to display in type error messages (default 6). .rj [dynamic] .TP \fB\-fmax\-simplifier\-iterations=n\fP Set the max iterations for the simplifier (default 4). .rj [dynamic] .TP \fB\-fmax\-worker\-args=n\fP If a worker has that many arguments, none will be unpacked anymore (default: 10) .rj [dynamic] .TP \fB\-fno\-opt\-coercion\fP Turn off the coercion optimiser .rj [static] .TP \fB\-fno\-pre\-inlining\fP Turn off pre-inlining .rj [dynamic] .TP \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. .rj [static] .TP \fB\-fomit\-interface\-pragmas\fP Don't generate interface pragmas. Implied by \fB\-O0\fP only. .rj [dynamic] .TP \fB\-fomit\-yields\fP Omit heap checks when no allocation is being performed. .rj [dynamic] .TP \fB\-fpedantic\-bottoms\fP Make GHC be more precise about its treatment of bottom (but see also \fB\-fno\-state\-hack\fP). In particular, GHC will not eta-expand through a case expression. .rj [dynamic] .TP \fB\-fregs\-graph\fP Use the graph colouring register allocator for register allocation in the native code generator. Implied by \fB\-O2\fP. .rj [dynamic] .TP \fB\-fregs\-iterative\fP Use the iterative coalescing graph colouring register allocator in the native code generator. .rj [dynamic] .TP \fB\-fsimplifier\-phases=n\fP Set the number of phases for the simplifier (default 2). Ignored with \fB\-O0\fP. .rj [dynamic] .TP \fB\-fsimpl\-tick\-factor=n\fP Set the percentage factor for simplifier ticks (default 100) .rj [dynamic] .TP \fB\-fspec\-constr\fP Turn on the SpecConstr transformation. Implied by \fB\-O2\fP. .rj [dynamic] .TP \fB\-fspec\-constr\-count\fP=\fIn\fP Set to \fIn\fP (default: 3) the maximum number of specialisations that will be created for any one function by the SpecConstr transformation .rj [dynamic] .TP \fB\-fspec\-constr\-threshold\fP=\fIn\fP Set the size threshold for the SpecConstr transformation to \fIn\fP (default: 2000) .rj [dynamic] .TP \fB\-fspecialise\fP Turn on specialisation of overloaded functions. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fstatic\-argument\-transformation\fP Turn on the static argument transformation. .rj [dynamic] .TP \fB\-fstrictness\fP Turn on strictness analysis. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fstrictness\-before\fP=\fIn\fP Run an additional strictness analysis before simplifier phase \fIn\fP .rj [dynamic] .TP \fB\-funbox\-small\-strict\-fields\fP Flatten strict constructor fields with a pointer-sized representation. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-funbox\-strict\-fields\fP Flatten strict constructor fields .rj [dynamic] .TP \fB\-funfolding\-creation\-threshold=n\fP Tweak unfolding settings. Default: 750 .rj [dynamic] .TP \fB\-funfolding\-dict\-discount=n\fP Tweak unfolding settings. Default: 30 .rj [dynamic] .TP \fB\-funfolding\-fun\-discount=n\fP Tweak unfolding settings. Default: 60 .rj [dynamic] .TP \fB\-funfolding\-keeness\-factor=n\fP Tweak unfolding settings. Default: 1.5 .rj [dynamic] .TP \fB\-funfolding\-use\-threshold=n\fP Tweak unfolding settings. Default: 60 .rj [dynamic] .TP \fB\-fvectorisation\-avoidance\fP Enable vectorisation avoidance. Always enabled by default. .rj [dynamic] .TP \fB\-fvectorise\fP Enable vectorisation of nested data parallelism .rj [dynamic] .SH PROFILING OPTIONS .TP \fB\-prof\fP Turn on profiling .rj [dynamic] .TP \fB\-fprof\-auto\fP Auto-add \f(CRSCC\fPs to all bindings not marked INLINE .rj [dynamic] .TP \fB\-fprof\-auto\-top\fP Auto-add \f(CRSCC\fPs to all top-level bindings not marked INLINE .rj [dynamic] .TP \fB\-fprof\-auto\-exported\fP Auto-add \f(CRSCC\fPs to all exported bindings not marked INLINE .rj [dynamic] .TP \fB\-fprof\-cafs\fP Auto-add \f(CRSCC\fPs to all CAFs .rj [dynamic] .TP \fB\-fno\-prof\-count\-entries\fP Do not collect entry counts .rj [dynamic] .TP \fB\-ticky\fP Turn on ticky-ticky profiling .rj [dynamic] .SH PROGRAM COVERAGE OPTIONS .TP \fB\-fhpc\fP Turn on Haskell program coverage instrumentation .rj [dynamic] .TP \fB\-hpcdir dir\fP Directory to deposit .mix files during compilation (default is .hpc) .rj [dynamic] .SH HASKELL PRE-PROCESSOR OPTIONS .TP \fB\-F\fP Enable the use of a pre-processor (set with \fB\-pgmF\fP) .rj [dynamic] .SH C PRE-PROCESSOR OPTIONS .TP \fB\-cpp\fP Run the C pre-processor on Haskell source files .rj [dynamic] .TP \fB\-D\fP\fIsymbol\fP=\fIvalue\fP Define a symbol in the C pre-processor .rj [dynamic] .TP \fB\-U\fP\fIsymbol\fP Undefine a symbol in the C pre-processor .rj [dynamic] .TP \fB\-I\fP\fIdir\fP Add \fIdir\fP to the directory search list for \f(CR#include\fP files .rj [dynamic] .SH CODE GENERATION OPTIONS .TP \fB\-fasm\fP Use the native code generator .rj [dynamic] .TP \fB\-fllvm\fP Compile using the LLVM code generator .rj [dynamic] .TP \fB\-fno\-code\fP Omit code generation .rj [dynamic] .TP \fB\-fwrite\-interface\fP Always write interface files .rj [dynamic] .TP \fB\-fbyte\-code\fP Generate byte-code .rj [dynamic] .TP \fB\-fobject\-code\fP Generate object code .rj [dynamic] .SH LINKING OPTIONS .TP \fB\-shared\fP Generate a shared library (as opposed to an executable) .rj [dynamic] .TP \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. .rj [dynamic] .TP \fB\-fPIC\fP Generate position-independent code (where available) .rj [dynamic] .TP \fB\-dynamic\fP Use dynamic Haskell libraries (if available) .rj [dynamic] .TP \fB\-dynamic\-too\fP Build dynamic object files as well as static object files during compilation .rj [dynamic] .TP \fB\-dyno\fP Set the output path for the dynamically linked objects .rj [dynamic] .TP \fB\-dynosuf\fP Set the output suffix for dynamic object files .rj [dynamic] .TP \fB\-dynload\fP Selects one of a number of modes for finding shared libraries at runtime. .rj [dynamic] .TP \fB\-framework\fP \fIname\fP On Darwin/OS X/iOS only, link in the framework \fIname\fP. This option corresponds to the \fB\-framework\fP option for Apple's Linker. .rj [dynamic] .TP \fB\-framework\-path\fP \fIname\fP On Darwin/OS X/iOS only, add \fIdir\fP to the list of directories searched for frameworks. This option corresponds to the \fB\-F\fP option for Apple's Linker. .rj [dynamic] .TP \fB\-l\fP\fIlib\fP Link in library \fIlib\fP .rj [dynamic] .TP \fB\-L\fP\fIdir\fP Add \fIdir\fP to the list of directories searched for libraries .rj [dynamic] .TP \fB\-main\-is\fP Set main module and function .rj [dynamic] .TP \fB\-\-mk\-dll\fP DLL-creation mode (Windows only) .rj [dynamic] .TP \fB\-no\-hs\-main\fP Don't assume this program contains \f(CRmain\fP .rj [dynamic] .TP \fB\-rtsopts\fP, \fB\-rtsopts={none,some,all}\fP Control whether the RTS behaviour can be tweaked via command-line flags and the \f(CRGHCRTS\fP environment variable. Using \f(CRnone\fP means no RTS flags can be given; \f(CRsome\fP means only a minimum of safe options can be given (the default), and \f(CRall\fP (or no argument at all) means that all RTS flags are permitted. .rj [dynamic] .TP \fB\-with\-rtsopts=opts\fP Set the default RTS options to \fIopts\fP. .rj [dynamic] .TP \fB\-no\-link\fP Omit linking .rj [dynamic] .TP \fB\-split\-objs\fP Split objects (for libraries) .rj [dynamic] .TP \fB\-static\fP Use static Haskell libraries .rj [dynamic] .TP \fB\-threaded\fP Use the threaded runtime .rj [dynamic] .TP \fB\-debug\fP Use the debugging runtime .rj [dynamic] .TP \fB\-ticky\fP For linking, this simply implies \fB\-debug\fP; see . .rj [dynamic] .TP \fB\-eventlog\fP Enable runtime event tracing .rj [dynamic] .TP \fB\-fno\-gen\-manifest\fP Do not generate a manifest file (Windows only) .rj [dynamic] .TP \fB\-fno\-embed\-manifest\fP Do not embed the manifest in the executable (Windows only) .rj [dynamic] .TP \fB\-fno\-shared\-implib\fP Don't generate an import library for a DLL (Windows only) .rj [dynamic] .TP \fB\-dylib\-install\-name\fP \fIpath\fP Set the install name (via \f(CR-install_name\fP passed to Apple's 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) .rj [dynamic] .TP \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 \f(CR-optl -rdynamic\fP on Linux, and \f(CR-optl -export-all-symbols\fP on Windows. .rj [dynamic] .SH PLUGIN OPTIONS .TP \fB\-fplugin\fP=\fImodule\fP Load a plugin exported by a given module .rj [dynamic] .TP \fB\-fplugin\-opt\fP=\fImodule:args\fP Give arguments to a plugin module; module must be specified with \fB\-fplugin\fP .rj [dynamic] .SH REPLACING PHASES .TP \fB\-pgmL\fP \fIcmd\fP Use \fIcmd\fP as the literate pre-processor .rj [dynamic] .TP \fB\-pgmP\fP \fIcmd\fP Use \fIcmd\fP as the C pre-processor (with \fB\-cpp\fP only) .rj [dynamic] .TP \fB\-pgmc\fP \fIcmd\fP Use \fIcmd\fP as the C compiler .rj [dynamic] .TP \fB\-pgmlo\fP \fIcmd\fP Use \fIcmd\fP as the LLVM optimiser .rj [dynamic] .TP \fB\-pgmlc\fP \fIcmd\fP Use \fIcmd\fP as the LLVM compiler .rj [dynamic] .TP \fB\-pgms\fP \fIcmd\fP Use \fIcmd\fP as the splitter .rj [dynamic] .TP \fB\-pgma\fP \fIcmd\fP Use \fIcmd\fP as the assembler .rj [dynamic] .TP \fB\-pgml\fP \fIcmd\fP Use \fIcmd\fP as the linker .rj [dynamic] .TP \fB\-pgmdll\fP \fIcmd\fP Use \fIcmd\fP as the DLL generator .rj [dynamic] .TP \fB\-pgmF\fP \fIcmd\fP Use \fIcmd\fP as the pre-processor (with \fB\-F\fP only) .rj [dynamic] .TP \fB\-pgmwindres\fP \fIcmd\fP Use \fIcmd\fP as the program for embedding manifests on Windows. .rj [dynamic] .TP \fB\-pgmlibtool\fP \fIcmd\fP Use \fIcmd\fP as the command for libtool (with \fB\-staticlib\fP only). .rj [dynamic] .TP \fB\-pgmreadelf\fP \fIcmd\fP Use \fIcmd\fP as the command for readelf (part of Unix binutils) .rj [dynamic] .SH FORCING OPTIONS TO PARTICULAR PHASES .TP \fB\-optL\fP \fIoption\fP pass \fIoption\fP to the literate pre-processor .rj [dynamic] .TP \fB\-optP\fP \fIoption\fP pass \fIoption\fP to cpp (with \fB\-cpp\fP only) .rj [dynamic] .TP \fB\-optF\fP \fIoption\fP pass \fIoption\fP to the custom pre-processor .rj [dynamic] .TP \fB\-optc\fP \fIoption\fP pass \fIoption\fP to the C compiler .rj [dynamic] .TP \fB\-optlo\fP \fIoption\fP pass \fIoption\fP to the LLVM optimiser .rj [dynamic] .TP \fB\-optlc\fP \fIoption\fP pass \fIoption\fP to the LLVM compiler .rj [dynamic] .TP \fB\-opta\fP \fIoption\fP pass \fIoption\fP to the assembler .rj [dynamic] .TP \fB\-optl\fP \fIoption\fP pass \fIoption\fP to the linker .rj [dynamic] .TP \fB\-optdll\fP \fIoption\fP pass \fIoption\fP to the DLL generator .rj [dynamic] .TP \fB\-optwindres\fP \fIoption\fP pass \fIoption\fP to \f(CRwindres\fP. .rj [dynamic] .SH PLATFORM-SPECIFIC OPTIONS .TP \fB\-msse2\fP (x86 only) Use SSE2 for floating point .rj [dynamic] .SH COMPILER DEBUGGING OPTIONS .TP \fB\-dcore\-lint\fP Turn on internal sanity checking .rj [dynamic] .TP \fB\-ddump\-to\-file\fP Dump to files instead of stdout .rj [dynamic] .TP \fB\-ddump\-asm\fP Dump assembly .rj [dynamic] .TP \fB\-ddump\-bcos\fP Dump interpreter byte code .rj [dynamic] .TP \fB\-ddump\-cmm\fP Dump C-- output .rj [dynamic] .TP \fB\-ddump\-core\-stats\fP Print a one-line summary of the size of the Core program at the end of the optimisation pipeline .rj [dynamic] .TP \fB\-ddump\-cse\fP Dump CSE output .rj [dynamic] .TP \fB\-ddump\-deriv\fP Dump deriving output .rj [dynamic] .TP \fB\-ddump\-ds\fP Dump desugarer output .rj [dynamic] .TP \fB\-ddump\-foreign\fP Dump \f(CRforeign export\fP stubs .rj [dynamic] .TP \fB\-ddump\-hpc\fP Dump after instrumentation for program coverage .rj [dynamic] .TP \fB\-ddump\-inlinings\fP Dump inlining info .rj [dynamic] .TP \fB\-ddump\-llvm\fP Dump LLVM intermediate code .rj [dynamic] .TP \fB\-ddump\-occur\-anal\fP Dump occurrence analysis output .rj [dynamic] .TP \fB\-ddump\-opt\-cmm\fP Dump the results of C-- to C-- optimising passes .rj [dynamic] .TP \fB\-ddump\-parsed\fP Dump parse tree .rj [dynamic] .TP \fB\-ddump\-prep\fP Dump prepared core .rj [dynamic] .TP \fB\-ddump\-rn\fP Dump renamer output .rj [dynamic] .TP \fB\-ddump\-rule\-firings\fP Dump rule firing info .rj [dynamic] .TP \fB\-ddump\-rule\-rewrites\fP Dump detailed rule firing info .rj [dynamic] .TP \fB\-ddump\-rules\fP Dump rules .rj [dynamic] .TP \fB\-ddump\-vect\fP Dump vectoriser input and output .rj [dynamic] .TP \fB\-ddump\-simpl\fP Dump final simplifier output .rj [dynamic] .TP \fB\-ddump\-simpl\-iterations\fP Dump output from each simplifier iteration .rj [dynamic] .TP \fB\-ddump\-spec\fP Dump specialiser output .rj [dynamic] .TP \fB\-ddump\-splices\fP Dump TH spliced expressions, and what they evaluate to .rj [dynamic] .TP \fB\-ddump\-stg\fP Dump final STG .rj [dynamic] .TP \fB\-ddump\-stranal\fP Dump strictness analyser output .rj [dynamic] .TP \fB\-ddump\-strsigs\fP Dump strictness signatures .rj [dynamic] .TP \fB\-ddump\-tc\fP Dump typechecker output .rj [dynamic] .TP \fB\-dth\-dec\-file\fP Show evaluated TH declarations in a .th.hs file .rj [dynamic] .TP \fB\-ddump\-types\fP Dump type signatures .rj [dynamic] .TP \fB\-ddump\-worker\-wrapper\fP Dump worker-wrapper output .rj [dynamic] .TP \fB\-ddump\-if\-trace\fP Trace interface files .rj [dynamic] .TP \fB\-ddump\-tc\-trace\fP Trace typechecker .rj [dynamic] .TP \fB\-ddump\-vt\-trace\fP Trace vectoriser .rj [dynamic] .TP \fB\-ddump\-rn\-trace\fP Trace renamer .rj [dynamic] .TP \fB\-ddump\-rn\-stats\fP Renamer stats .rj [dynamic] .TP \fB\-ddump\-simpl\-stats\fP Dump simplifier stats .rj [dynamic] .TP \fB\-dno\-debug\-output\fP Suppress unsolicited debugging output .rj [static] .TP \fB\-dppr\-debug\fP Turn on debug printing (more verbose) .rj [static] .TP \fB\-dppr\-user\-length\fP Set the depth for printing expressions in error msgs .rj [dynamic] .TP \fB\-dppr\-colsNNN\fP Set the width of debugging output. For example \fB\-dppr\-cols200\fP .rj [dynamic] .TP \fB\-dppr\-case\-as\-let\fP Print single alternative case expressions as strict lets. .rj [dynamic] .TP \fB\-dsuppress\-all\fP In core dumps, suppress everything (except for uniques) that is suppressible. .rj [dynamic] .TP \fB\-dsuppress\-uniques\fP Suppress the printing of uniques in debug output (easier to use diff) .rj [dynamic] .TP \fB\-dsuppress\-idinfo\fP Suppress extended information about identifiers where they are bound .rj [dynamic] .TP \fB\-dsuppress\-module\-prefixes\fP Suppress the printing of module qualification prefixes .rj [dynamic] .TP \fB\-dsuppress\-type\-signatures\fP Suppress type signatures .rj [dynamic] .TP \fB\-dsuppress\-type\-applications\fP Suppress type applications .rj [dynamic] .TP \fB\-dsuppress\-coercions\fP Suppress the printing of coercions in Core dumps to make them shorter .rj [dynamic] .TP \fB\-dsource\-stats\fP Dump haskell source stats .rj [dynamic] .TP \fB\-dcmm\-lint\fP C-- pass sanity checking .rj [dynamic] .TP \fB\-dstg\-lint\fP STG pass sanity checking .rj [dynamic] .TP \fB\-dstg\-stats\fP Dump STG stats .rj [dynamic] .TP \fB\-dverbose\-core2core\fP Show output from each core-to-core pass .rj [dynamic] .TP \fB\-dverbose\-stg2stg\fP Show output from each STG-to-STG pass .rj [dynamic] .TP \fB\-dshow\-passes\fP Print out each pass name as it happens .rj [dynamic] .TP \fB\-dfaststring\-stats\fP Show statistics for fast string usage when finished .rj [dynamic] .TP \fB\-frule\-check\fP Report sites with rules that could have fired but didn't. Takes a string argument. .rj [dynamic] .SH MISC COMPILER OPTIONS .TP \fB\-jN\fP When compiling with \f(CR--make\fP, compile \fIN\fP modules in parallel. .rj [dynamic] .TP \fB\-fno\-hi\-version\-check\fP Don't complain about \f(CR.hi\fP file mismatches .rj [dynamic] .TP \fB\-fhistory\-size\fP Set simplification history size .rj [dynamic] .TP \fB\-fno\-ghci\-history\fP Do not use the load/store the GHCi command history from/to \f(CRghci_history\fP. .rj [dynamic] .TP \fB\-fno\-ghci\-sandbox\fP Turn off the GHCi sandbox. Means computations are run in the main thread, rather than a forked thread. .rj [dynamic] .SH FILES .I /usr/lib .SH COPYRIGHT Copyright 2002, The University Court of the University of Glasgow. .br All rights reserved. .SH AUTHOR This manual page was generated from the XML documentation of GHC with blood, sweat, tears and a breaks-if-you-look-at-it-the-wrong-way XSL stylesheet originally written by Michael Weber for the Debian GNU/Linux system (but may be used by others). .\" End