.\" .\" 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 Help and verbosity options .nh \-? \-help \-v \-v\fIn\fP \-V \-\-supported\-extensions or \-\-supported\-languages \-\-info \-\-version \-\-numeric\-version \-\-print\-libdir \-ferror\-spans \-H\fIsize\fP \-Rghc\-timing .hy .SS Which phases to run .nh \-E \-C \-S \-c \-x \fIsuffix\fP .hy .SS Alternative modes of operation .nh \-\-interactive \-\-make \-e expr \-M .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\-exception \-fno\-break\-on\-exception \-fbreak\-on\-error \-fno\-break\-on\-error \-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 \-package\-name \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 \-fglasgow\-exts \-fno\-glasgow\-exts \-XOverlappingInstances \-XNoOverlappingInstances \-XIncoherentInstances \-XNoIncoherentInstances \-XUndecidableInstances \-XNoUndecidableInstances \-fcontext\-stack=N\fIn\fP \-XArrows \-XNoArrows \-XDisambiguateRecordFields \-XNoDisambiguateRecordFields \-XForeignFunctionInterface \-XNoForeignFunctionInterface \-XGenerics \-XNoGenerics \-XImplicitParams \-XNoImplicitParams \-firrefutable\-tuples \-fno\-irrefutable\-tuples \-XNoImplicitPrelude \-XImplicitPrelude \-XRebindableSyntax \-XNoRebindableSyntax \-XNoMonomorphismRestriction \-XMonomorphismRrestriction \-XNoNPlusKPatterns \-XNPlusKPatterns \-XNoTraditionalRecordSyntax \-XTraditionalRecordSyntax \-XNoMonoPatBinds \-XMonoPatBinds \-XRelaxedPolyRec \-XNoRelaxedPolyRec \-XExtendedDefaultRules \-XNoExtendedDefaultRules \-XOverloadedStrings \-XNoOverloadedStrings \-XGADTs \-XNoGADTs \-XGADTSyntax \-XNoGADTSyntax \-XTypeFamilies \-XNoTypeFamilies \-XConstraintKinds \-XNoConstraintKinds \-XDataKinds \-XNoDataKinds \-XPolyKinds \-XNoPolyKinds \-XScopedTypeVariables \-XNoScopedTypeVariables \-XMonoLocalBinds \-XNoMonoLocalBinds \-XTemplateHaskell \-XNoTemplateHaskell \-XQuasiQuotes \-XNoQuasiQuotes \-XBangPatterns \-XNoBangPatterns \-XCPP \-XNoCPP \-XPatternGuards \-XNoPatternGuards \-XViewPatterns \-XNoViewPatterns \-XUnicodeSyntax \-XNoUnicodeSyntax \-XMagicHash \-XNoMagicHash \-XExplicitForAll \-XNoExplicitForAll \-XPolymorphicComponents \-XNoPolymorphicComponents \-XRank2Types \-XNoRank2Types \-XRankNTypes \-XNoRankNTypes \-XImpredicativeTypes \-XNoImpredicativeTypes \-XExistentialQuantification \-XNoExistentialQuantification \-XKindSignatures \-XNoKindSignatures \-XEmptyDataDecls \-XNoEmptyDataDecls \-XParallelListComp \-XNoParallelListComp \-XTransformListComp \-XNoTransformListComp \-XMonadComprehensions \-XNoMonadComprehensions \-XUnliftedFFITypes \-XNoUnliftedFFITypes \-XInterruptibleFFI \-XNoInterruptibleFFI \-XLiberalTypeSynonyms \-XNoLiberalTypeSynonyms \-XTypeOperators \-XNoTypeOperators \-XExplicitNamespaces \-XNoExplicitNamespaces \-XRecursiveDo \-XNoRecursiveDo \-XParallelArrays \-XNoParallelArrays \-XRecordWildCards \-XNoRecordWildCards \-XNamedFieldPuns \-XNoNamedFieldPuns \-XDisambiguateRecordFields \-XNoDisambiguateRecordFields \-XUnboxedTuples \-XNoUnboxedTuples \-XStandaloneDeriving \-XNoStandaloneDeriving \-XDeriveDataTypeable \-XNoDeriveDataTypeable \-XDeriveGeneric \-XNoDeriveGeneric \-XGeneralizedNewtypeDeriving \-XNoGeneralizedNewtypeDeriving \-XTypeSynonymInstances \-XNoTypeSynonymInstances \-XFlexibleContexts \-XNoFlexibleContexts \-XFlexibleInstances \-XNoFlexibleInstances \-XConstrainedClassMethods \-XNoConstrainedClassMethods \-XDefaultSignatures \-XNoDefaultSignatures \-XMultiParamTypeClasses \-XNoMultiParamTypeClasses \-XFunctionalDependencies \-XNoFunctionalDependencies \-XPackageImports \-XNoPackageImports \-XLambdaCase \-XNoLambdaCase \-XMultiWayIf \-XNoMultiWayIf \-XSafe \-XTrustworthy \-XUnsafe \-fpackage\-trust .hy .SS Warnings .nh \-W \-w \-w \-Wall \-w \-Werror \-Wwarn \-fdefer\-type\-errors \-fno\-defer\-type\-errors \-fhelpful\-errors \-fno\-helpful\-errors \-fwarn\-deprecated\-flags \-fno\-warn\-deprecated\-flags \-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\-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\-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\-warnings\-deprecations \-fno\-warn\-warnings\-deprecations .hy .SS Optimisation levels .nh \-O \-O0 \-O\fIn\fP \-O0 .hy .SS Individual optimisations .nh \-fcase\-merge \-fno\-case\-merge \-fcse \-fdicts\-strict \-fno\-dicts\-strict \-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 \-fvectorise \-fno\-vectorise \-favoid\-vect \-fno\-avoid\-vect \-fexcess\-precision \-fno\-excess\-precision \-ffloat\-in \-ffull\-laziness \-fignore\-asserts \-fno\-ignore\-asserts \-fignore\-interface\-pragmas \-fno\-ignore\-interface\-pragmas \-fliberate\-case \-fliberate\-case\-threshold=\fIn\fP \-fno\-liberate\-case\-threshold \-fmax\-simplifier\-iterations \-fmax\-worker\-args \-fno\-opt\-coercion \-fno\-pre\-inlining \-fno\-state\-hack \-fpedantic\-bottoms \-fno\-pedantic\-bottoms \-fomit\-interface\-pragmas \-fno\-omit\-interface\-pragmas \-fsimplifier\-phases \-fsimpl\-tick\-factor=n \-fspec\-constr \-fspec\-constr\-threshold=\fIn\fP \-fno\-spec\-constr\-threshold \-fspec\-constr\-count=\fIn\fP \-fno\-spec\-constr\-count \-fspecialise \-fstrictness \-fstrictness=before=\fIn\fP \-fstatic\-argument\-transformation \-funbox\-strict\-fields \-fno\-unbox\-strict\-fields \-funfolding\-creation\-threshold \-fno\-unfolding\-creation\-threshold \-funfolding\-fun\-discount \-fno\-unfolding\-fun\-discount \-funfolding\-keeness\-factor \-fno\-unfolding\-keeness\-factor \-funfolding\-use\-threshold \-fno\-unfolding\-use\-threshold .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 \-fbyte\-code \-fobject\-code .hy .SS Linking options .nh \-shared \-fPIC \-dynamic \-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 \-eventlog \-fno\-gen\-manifest \-fno\-embed\-manifest \-fno\-shared\-implib \-dylib\-install\-name \fIpath\fP .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 \-pgms \fIcmd\fP \-pgma \fIcmd\fP \-pgml \fIcmd\fP \-pgmdll \fIcmd\fP \-pgmF \fIcmd\fP \-pgmwindres \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 \-optm \fIoption\fP \-opta \fIoption\fP \-optl \fIoption\fP \-optdll \fIoption\fP \-optwindres \fIoption\fP .hy .SS Platform-specific options .nh \-msse2 \-monly\-[432]\-regs .hy .SS External core file options .nh \-fext\-core .hy .SS Compiler debugging options .nh \-dcore\-lint \-ddump\-to\-file \-ddump\-asm \-ddump\-bcos \-ddump\-cmm \-ddump\-core\-stats \-ddump\-cpranal \-ddump\-cse \-ddump\-deriv \-ddump\-ds \-ddump\-flatC \-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\-phases \-ddump\-simpl\-iterations \-ddump\-spec \-ddump\-splices \-ddump\-stg \-ddump\-stranal \-ddump\-tc \-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\-noprags \-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 .hy .SS Misc compiler options .nh \-fno\-hi\-version\-check \-dno\-black\-holing \-fhistory\-size \-funregisterised \-fno\-ghci\-history \-fno\-ghci\-sandbox .hy .SH HELP AND VERBOSITY OPTIONS .TP \fB\-?\fP help .rj [mode] .TP \fB\-help\fP help .rj [mode] .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\-V\fP display GHC version .rj [mode] .TP \fB\-\-supported\-extensions\fP or \fB\-\-supported\-languages\fP display the supported languages and language extensions .rj [mode] .TP \fB\-\-info\fP display information about the compiler .rj [mode] .TP \fB\-\-version\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] .TP \fB\-ferror\-spans\fP output full span in error messages .rj [static] .TP \fB\-H\fP\fIsize\fP Set the minimum heap size to \fIsize\fP .rj [static] .TP \fB\-Rghc\-timing\fP Summarise timing stats for GHC (same as \f(CR+RTS -tstderr\fP) .rj [static] .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 Do not link .rj [dynamic] .TP \fB\-x\fP \fIsuffix\fP Override default behaviour for source files .rj [static] .SH ALTERNATIVE MODES OF OPERATION .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\-M\fP Generate dependency information suitable for use in a Makefile; see for details. .rj [mode] .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 [static/\f(CR:set\fP] .TP \fB\-i\fP Empty the import directory list .rj [static/\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; implied by any \fB\-ddump\-X\fP option .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\-exception\fP Break on any exception thrown .rj [dynamic] .TP \fB\-fbreak\-on\-error\fP Break on uncaught exceptions and errors .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\-package\-name\fP \fIP\fP Compile to be part of package \fIP\fP .rj [static] .TP \fB\-package\fP \fIP\fP Expose package \fIP\fP .rj [static/\f(CR:set\fP] .TP \fB\-hide\-all\-packages\fP Hide all packages by default .rj [static] .TP \fB\-hide\-package\fP \fIname\fP Hide package \fIP\fP .rj [static/\f(CR:set\fP] .TP \fB\-ignore\-package\fP \fIname\fP Ignore package \fIP\fP .rj [static/\f(CR:set\fP] .TP \fB\-package\-db\fP \fIfile\fP Add \fIfile\fP to the package db stack. .rj [static] .TP \fB\-clear\-package\-db\fP Clear the package db stack. .rj [static] .TP \fB\-no\-global\-package\-db\fP Remove the global package db from the stack. .rj [static] .TP \fB\-global\-package\-db\fP Add the global package db to the stack. .rj [static] .TP \fB\-no\-user\-package\-db\fP Remove the user's package db from the stack. .rj [static] .TP \fB\-user\-package\-db\fP Add the user's package db to the stack. .rj [static] .TP \fB\-no\-auto\-link\-packages\fP Don't automatically link in the haskell98 package. .rj [dynamic] .TP \fB\-trust\fP \fIP\fP Expose package \fIP\fP and set it to be trusted .rj [static/\f(CR:set\fP] .TP \fB\-distrust\fP \fIP\fP Expose package \fIP\fP and set it to be distrusted .rj [static/\f(CR:set\fP] .TP \fB\-distrust\-all\fP Distrust all packages by default .rj [static/\f(CR:set\fP] .SH LANGUAGE OPTIONS .TP \fB\-fglasgow\-exts\fP Enable most language extensions; see for exactly which ones. .rj [dynamic] .TP \fB\-XOverlappingInstances\fP Enable overlapping instances .rj [dynamic] .TP \fB\-XIncoherentInstances\fP Enable incoherent instances. Implies \fB\-XOverlappingInstances\fP .rj [dynamic] .TP \fB\-XUndecidableInstances\fP Enable undecidable instances .rj [dynamic] .TP \fB\-fcontext\-stack=N\fP\fIn\fP set the limit for context reduction. Default is 20. .rj [dynamic] .TP \fB\-XArrows\fP Enable arrow notation extension .rj [dynamic] .TP \fB\-XDisambiguateRecordFields\fP Enable record field disambiguation .rj [dynamic] .TP \fB\-XForeignFunctionInterface\fP Enable foreign function interface (implied by \fB\-fglasgow\-exts\fP) .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. Implied by \fB\-fglasgow\-exts\fP. .rj [dynamic] .TP \fB\-firrefutable\-tuples\fP Make tuple pattern matching irrefutable .rj [dynamic] .TP \fB\-XNoImplicitPrelude\fP Don't implicitly \f(CRimport Prelude\fP .rj [dynamic] .TP \fB\-XRebindableSyntax\fP Employ rebindable syntax .rj [dynamic] .TP \fB\-XNoMonomorphismRestriction\fP Disable the monomorphism restriction .rj [dynamic] .TP \fB\-XNoNPlusKPatterns\fP Disable support for \f(CRn+k\fP patterns .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\-XNoMonoPatBinds\fP Make pattern bindings polymorphic .rj [dynamic] .TP \fB\-XRelaxedPolyRec\fP Relaxed checking for mutually-recursive polymorphic functions .rj [dynamic] .TP \fB\-XExtendedDefaultRules\fP Use GHCi's extended default rules in a normal module .rj [dynamic] .TP \fB\-XOverloadedStrings\fP Enable overloaded string literals. .rj [dynamic] .TP \fB\-XGADTs\fP Enable generalised algebraic data types. .rj [dynamic] .TP \fB\-XGADTSyntax\fP Enable generalised algebraic data type syntax. .rj [dynamic] .TP \fB\-XTypeFamilies\fP Enable type families. .rj [dynamic] .TP \fB\-XConstraintKinds\fP Enable a kind of constraints. .rj [dynamic] .TP \fB\-XDataKinds\fP Enable datatype promotion. .rj [dynamic] .TP \fB\-XPolyKinds\fP Enable kind polymorphism. Implies \fB\-XKindSignatures\fP. .rj [dynamic] .TP \fB\-XScopedTypeVariables\fP Enable lexically-scoped type variables. Implied by \fB\-fglasgow\-exts\fP. .rj [dynamic] .TP \fB\-XMonoLocalBinds\fP Enable do not generalise local bindings. .rj [dynamic] .TP \fB\-XTemplateHaskell\fP Enable Template Haskell. No longer implied by \fB\-fglasgow\-exts\fP. .rj [dynamic] .TP \fB\-XQuasiQuotes\fP Enable quasiquotation. .rj [dynamic] .TP \fB\-XBangPatterns\fP Enable bang patterns. .rj [dynamic] .TP \fB\-XCPP\fP Enable the C preprocessor. .rj [dynamic] .TP \fB\-XPatternGuards\fP Enable pattern guards. .rj [dynamic] .TP \fB\-XViewPatterns\fP Enable view patterns. .rj [dynamic] .TP \fB\-XUnicodeSyntax\fP Enable unicode syntax. .rj [dynamic] .TP \fB\-XMagicHash\fP Allow "#" as a postfix modifier on identifiers. .rj [dynamic] .TP \fB\-XExplicitForAll\fP Enable explicit universal quantification. Implied by \fB\-XScopedTypeVariables\fP, \fB\-XLiberalTypeSynonyms\fP, \fB\-XRank2Types\fP, \fB\-XRankNTypes\fP, \fB\-XPolymorphicComponents\fP, \fB\-XExistentialQuantification\fP .rj [dynamic] .TP \fB\-XPolymorphicComponents\fP Enable polymorphic components for data constructors. .rj [dynamic] .TP \fB\-XRank2Types\fP Enable rank-2 types. .rj [dynamic] .TP \fB\-XRankNTypes\fP Enable rank-N types. .rj [dynamic] .TP \fB\-XImpredicativeTypes\fP Enable impredicative types. .rj [dynamic] .TP \fB\-XExistentialQuantification\fP Enable existential quantification. .rj [dynamic] .TP \fB\-XKindSignatures\fP Enable kind signatures. .rj [dynamic] .TP \fB\-XEmptyDataDecls\fP Enable empty data declarations. .rj [dynamic] .TP \fB\-XParallelListComp\fP Enable parallel list comprehensions. .rj [dynamic] .TP \fB\-XTransformListComp\fP Enable generalised list comprehensions. .rj [dynamic] .TP \fB\-XMonadComprehensions\fP Enable monad comprehensions. .rj [dynamic] .TP \fB\-XUnliftedFFITypes\fP Enable unlifted FFI types. .rj [dynamic] .TP \fB\-XInterruptibleFFI\fP Enable interruptible FFI. .rj [dynamic] .TP \fB\-XLiberalTypeSynonyms\fP Enable liberalised type synonyms. .rj [dynamic] .TP \fB\-XTypeOperators\fP Enable type operators. .rj [dynamic] .TP \fB\-XExplicitNamespaces\fP Enable using the keyword \f(CRtype\fP to specify the namespace of entries in imports and exports. .rj [dynamic] .TP \fB\-XRecursiveDo\fP Enable recursive do (mdo) notation. .rj [dynamic] .TP \fB\-XParallelArrays\fP Enable parallel arrays. .rj [dynamic] .TP \fB\-XRecordWildCards\fP Enable record wildcards. .rj [dynamic] .TP \fB\-XNamedFieldPuns\fP Enable record puns. .rj [dynamic] .TP \fB\-XDisambiguateRecordFields\fP Enable record field disambiguation. .rj [dynamic] .TP \fB\-XUnboxedTuples\fP Enable unboxed tuples. .rj [dynamic] .TP \fB\-XStandaloneDeriving\fP Enable standalone deriving. .rj [dynamic] .TP \fB\-XDeriveDataTypeable\fP Enable deriving for the Data and Typeable classes. .rj [dynamic] .TP \fB\-XDeriveGeneric\fP Enable deriving for the Generic class. .rj [dynamic] .TP \fB\-XGeneralizedNewtypeDeriving\fP Enable newtype deriving. .rj [dynamic] .TP \fB\-XTypeSynonymInstances\fP Enable type synonyms in instance heads. .rj [dynamic] .TP \fB\-XFlexibleContexts\fP Enable flexible contexts. .rj [dynamic] .TP \fB\-XFlexibleInstances\fP Enable flexible instances. Implies \fB\-XTypeSynonymInstances\fP .rj [dynamic] .TP \fB\-XConstrainedClassMethods\fP Enable constrained class methods. .rj [dynamic] .TP \fB\-XDefaultSignatures\fP Enable default signatures. .rj [dynamic] .TP \fB\-XMultiParamTypeClasses\fP Enable multi parameter type classes. .rj [dynamic] .TP \fB\-XFunctionalDependencies\fP Enable functional dependencies. .rj [dynamic] .TP \fB\-XPackageImports\fP Enable package-qualified imports. .rj [dynamic] .TP \fB\-XLambdaCase\fP Enable lambda-case expressions. .rj [dynamic] .TP \fB\-XMultiWayIf\fP Enable multi-way if-expressions. .rj [dynamic] .TP \fB\-XSafe\fP Enable the Safe Haskell Safe mode. .rj [dynamic] .TP \fB\-XTrustworthy\fP Enable the Safe Haskell Trustworthy mode. .rj [dynamic] .TP \fB\-XUnsafe\fP Enable Safe Haskell Unsafe mode. .rj [dynamic] .TP \fB\-fpackage\-trust\fP Enable Safe Haskell trusted package requirement for trustworty modules. .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 Defer as many type errors as possible until runtime. .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\-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 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\-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\-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. .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. .rj [dynamic] .TP \fB\-fwarn\-warnings\-deprecations\fP warn about uses of functions & types that have warnings or deprecated pragmas .rj [dynamic] .SH OPTIMISATION LEVELS .TP \fB\-O\fP Enable default optimisation (level 1) .rj [dynamic] .TP \fB\-O\fP\fIn\fP Set optimisation level \fIn\fP .rj [dynamic] .SH INDIVIDUAL OPTIMISATIONS .TP \fB\-fcase\-merge\fP Enable case-merging. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fcse\fP Turn on common sub-expression elimination. Implied by \fB\-O\fP. .rj [dynamic] .TP \fB\-fdicts\-strict\fP Make dictionaries strict .rj [static] .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-reduction .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\-fvectorise\fP Enable vectorisation of nested data parallelism .rj [dynamic] .TP \fB\-favoid\-vect\fP Enable vectorisation avoidance (EXPERIMENTAL) .rj [dynamic] .TP \fB\-fexcess\-precision\fP Enable excess intermediate precision .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\-fignore\-asserts\fP Ignore assertions in the source .rj [dynamic] .TP \fB\-fignore\-interface\-pragmas\fP Ignore pragmas in interface files .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: 200) .rj [static] .TP \fB\-fmax\-simplifier\-iterations\fP Set the max iterations for the simplifier .rj [dynamic] .TP \fB\-fmax\-worker\-args\fP If a worker has that many arguments, none will be unpacked anymore (default: 10) .rj [static] .TP \fB\-fno\-opt\-coercion\fP Turn off the coercion optimiser .rj [static] .TP \fB\-fno\-pre\-inlining\fP Turn off pre-inlining .rj [static] .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\-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\-fomit\-interface\-pragmas\fP Don't generate interface pragmas .rj [dynamic] .TP \fB\-fsimplifier\-phases\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\-threshold\fP=\fIn\fP Set the size threshold for the SpecConstr transformation to \fIn\fP (default: 200) .rj [static] .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 [static] .TP \fB\-fspecialise\fP Turn on specialisation of overloaded functions. Implied by \fB\-O\fP. .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\-fstatic\-argument\-transformation\fP Turn on the static argument transformation. Implied by \fB\-O2\fP. .rj [dynamic] .TP \fB\-funbox\-strict\-fields\fP Flatten strict constructor fields .rj [dynamic] .TP \fB\-funfolding\-creation\-threshold\fP Tweak unfolding settings .rj [static] .TP \fB\-funfolding\-fun\-discount\fP Tweak unfolding settings .rj [static] .TP \fB\-funfolding\-keeness\-factor\fP Tweak unfolding settings .rj [static] .TP \fB\-funfolding\-use\-threshold\fP Tweak unfolding settings .rj [static] .SH PROFILING OPTIONS .TP \fB\-prof\fP Turn on profiling .rj [static] .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 [static] .SH PROGRAM COVERAGE OPTIONS .TP \fB\-fhpc\fP Turn on Haskell program coverage instrumentation .rj [static] .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\-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\-fPIC\fP Generate position-independent code (where available) .rj [static] .TP \fB\-dynamic\fP Use dynamic Haskell libraries (if available) .rj [static] .TP \fB\-dynload\fP Selects one of a number of modes for finding shared libraries at runtime. .rj [static] .TP \fB\-framework\fP \fIname\fP On Darwin/MacOS X 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/MacOS X 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 [static] .TP \fB\-threaded\fP Use the threaded runtime .rj [static] .TP \fB\-debug\fP Use the debugging runtime .rj [static] .TP \fB\-eventlog\fP Enable runtime event tracing .rj [static] .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/MacOS X only) .rj [dynamic] .SH PLUGIN OPTIONS .TP \fB\-fplugin\fP=\fImodule\fP Load a plugin exported by a given module .rj [static] .TP \fB\-fplugin\-opt\fP=\fImodule:args\fP Give arguments to a plugin module; module must be specified with \fB\-fplugin\fP .rj [static] .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\-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] .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\-optm\fP \fIoption\fP pass \fIoption\fP to the mangler .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] .TP \fB\-monly\-[432]\-regs\fP (x86 only) give some registers back to the C compiler .rj [dynamic] .SH EXTERNAL CORE FILE OPTIONS .TP \fB\-fext\-core\fP Generate .hcr external Core files .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\-cpranal\fP Dump output from CPR analysis .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\-flatC\fP Dump `flat' C .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\-phases\fP Dump output from each simplifier phase .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\-tc\fP Dump typechecker output .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\-noprags\fP Don't output pragma info in dumps .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 that is suppressable. .rj [static] .TP \fB\-dsuppress\-uniques\fP Suppress the printing of uniques in debug output (easier to use diff) .rj [static] .TP \fB\-dsuppress\-idinfo\fP Suppress extended information about identifiers where they are bound .rj [static] .TP \fB\-dsuppress\-module\-prefixes\fP Suppress the printing of module qualification prefixes .rj [static] .TP \fB\-dsuppress\-type\-signatures\fP Suppress type signatures .rj [static] .TP \fB\-dsuppress\-type\-applications\fP Suppress type applications .rj [static] .TP \fB\-dsuppress\-coercions\fP Suppress the printing of coercions in Core dumps to make them shorter .rj [static] .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] .SH MISC COMPILER OPTIONS .TP \fB\-fno\-hi\-version\-check\fP Don't complain about \f(CR.hi\fP file mismatches .rj [static] .TP \fB\-dno\-black\-holing\fP Turn off black holing (probably doesn't work) .rj [static] .TP \fB\-fhistory\-size\fP Set simplification history size .rj [static] .TP \fB\-funregisterised\fP Unregisterised compilation (use \fB\-unreg\fP instead) .rj [static] .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