A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/flags.html below:

Website Navigation


5.6. Flag reference — Glasgow Haskell Compiler 9.12.2 User's Guide

-fenable-th-splice-warnings

Generate warnings for Template Haskell splices

dynamic

-fno-enable-th-splice-warnings

-fhelpful-errors

Make suggestions for mis-spelled names.

dynamic

-fno-helpful-errors

-fmax-pmcheck-models=⟨n⟩

soft limit on the number of parallel models the pattern match checker should check a pattern match clause against

dynamic

-fshow-warning-groups

show which group an emitted warning belongs to.

dynamic

-fno-show-warning-groups

-fvia-C

use the C code generator

dynamic

-W

enable normal warnings

dynamic

-Wno-extra

-w

disable all warnings

dynamic

-Wall

enable almost all warnings (details in Warnings and sanity-checking)

dynamic

-Wno-all

-Wall-missed-specialisations

warn when specialisation of any overloaded function fails.

dynamic

-Wno-all-missed-specialisations

-Wall-missed-specializations

alias for -Wall-missed-specialisations

dynamic

-Wno-all-missed-specializations

-Wambiguous-fields

warn about ambiguous field selectors or updates

dynamic

-Wauto-orphans

(deprecated) Does nothing

dynamic

-Wbadly-staged-types

warn when type binding is used at the wrong TH stage.

dynamic

-Wno-badly-staged-types

-Wcompat

enable future compatibility warnings (details in Warnings and sanity-checking)

dynamic

-Wno-compat

-Wcompat-unqualified-imports

(deprecated) Report unqualified imports of core libraries which are expected to cause compatibility problems in future releases.

dynamic

-Wno-compat-unqualified-imports

-Wcpp-undef

warn on uses of the #if directive on undefined identifiers

dynamic

-Wdata-kinds-tc

warn when an illegal use of a type or kind without DataKinds is caught by the typechecker

dynamic

-Wno-data-kinds-tc

-Wdefault

enable default flags

dynamic

-Wno-default

-Wdefaulted-exception-context

warn when an Control.Exception.Context.ExceptionContext implicit parameter is defaulted to Control.Exception.Context.emptyExceptionContext.

dynamic

-Wnop-defaulted-exception-context

-Wdeferred-out-of-scope-variables

Report warnings when variable out-of-scope errors are deferred until runtime. See -fdefer-out-of-scope-variables.

dynamic

-Wno-deferred-out-of-scope-variables

-Wdeferred-type-errors

Report warnings when deferred type errors are enabled. This option is enabled by default. See -fdefer-type-errors.

dynamic

-Wno-deferred-type-errors

-Wdeprecated-flags

warn about uses of commandline flags that are deprecated

dynamic

-Wno-deprecated-flags

-Wdeprecated-type-abstractions

warn when type abstractions in constructor patterns are used without enabling TypeApplications

dynamic

-Wno-deprecated-type-abstractions

-Wdeprecations

warn about uses of functions & types that have DEPRECATED pragmas, or WARNING pragmas with the deprecated category.

dynamic

-Wno-deprecations

-Wderiving-defaults

warn about default deriving when using both DeriveAnyClass and GeneralizedNewtypeDeriving

dynamic

-Wno-deriving-defaults

-Wderiving-typeable

warn when Typeable is derived

dynamic

-Wno-deriving-typeable

-Wdodgy-exports

warn about dodgy exports

dynamic

-Wno-dodgy-exports

-Wdodgy-foreign-imports

warn about dodgy foreign imports

dynamic

-Wno-dodgy-foreign-imports

-Wdodgy-imports

warn about dodgy imports

dynamic

-Wno-dodgy-imports

-Wduplicate-constraints

warn when a constraint appears duplicated in a type signature

dynamic

-Wno-duplicate-constraints

-Wduplicate-exports

warn when an entity is exported multiple times

dynamic

-Wno-duplicate-exports

-Wempty-enumerations

warn about enumerations that are empty

dynamic

-Wno-empty-enumerations

-Werror

make warnings fatal

dynamic

-Wwarn

-Weverything

enable all warnings supported by GHC

dynamic

-w

-Wextended-warnings

warn about uses of functions & types that have WARNING or DEPRECATED pragmas, across all categories

dynamic

-Wno-extended-warnings

-Wextra

alias for -W

dynamic

-Wno-extra

-Wforall-identifier

(deprecated) Does nothing

dynamic

-Wgadt-mono-local-binds

warn when pattern matching on a GADT without MonoLocalBinds

dynamic

-Wno-gadt-mono-local-binds

-Whi-shadowing

(deprecated) warn when a .hi file in the current directory shadows a library

dynamic

-Wno-hi-shadowing

-Widentities

warn about uses of Prelude numeric conversions that are probably the identity (and hence could be omitted)

dynamic

-Wno-identities

-Wimplicit-kind-vars

(deprecated) warn when kind variables are implicitly quantified over.

dynamic

-Wno-implicit-kind-vars

-Wimplicit-lift

warn about implicit lift in Template Haskell quotes

dynamic

-Wno-implicit-lift

-Wimplicit-prelude

warn when the Prelude is implicitly imported

dynamic

-Wno-implicit-prelude

-Wimplicit-rhs-quantification

warn when type variables on the RHS of a type synonym are implicitly quantified

dynamic

-Wno-implicit-rhs-quantification

-Winaccessible-code

warn about inaccessible code

dynamic

-Wno-inaccessible-code

-Wincomplete-export-warnings

warn when some but not all of exports for a name are warned about

dynamic

-Wno-incomplete-export-warnings

-Wincomplete-patterns

warn when a pattern match could fail

dynamic

-Wno-incomplete-patterns

-Wincomplete-record-selectors

warn when a record selector application could fail

dynamic

-Wno-incomplete-record-selectors

-Wincomplete-record-updates

warn when a record update could fail

dynamic

-Wno-incomplete-record-updates

-Wincomplete-uni-patterns

warn when a pattern match in a lambda expression, pattern binding or a lazy pattern could fail

dynamic

-Wno-incomplete-uni-patterns

-Winconsistent-flags

warn when command line options are inconsistent in some way.

dynamic

-Wno-inconsistent-flags

-Winferred-safe-imports

warn when an explicitly Safe Haskell module imports a Safe-Inferred one

dynamic

-Wno-inferred-safe-imports

-Winline-rule-shadowing

Warn if a rewrite RULE might fail to fire because the function might be inlined before the rule has a chance to fire. See How rules interact with INLINE/NOINLINE pragmas.

dynamic

-Wno-inline-rule-shadowing

-Winvalid-haddock

warn when a Haddock comment occurs in an invalid position

dynamic

-Wno-invalid-haddock

-Wloopy-superclass-solve

(deprecated) warn when creating potentially-loopy superclass constraint evidence

dynamic

-Wno-loopy-superclass-solve

-Wmisplaced-pragmas

warn about uses of file header pragmas in the module body

dynamic

-Wno-misplaced-pragmas

-Wmissed-extra-shared-lib

Warn when GHCi can't load a shared lib.

dynamic

-Wno-missed-extra-shared-lib

-Wmissed-specialisations

warn when specialisation of an imported, overloaded function fails.

dynamic

-Wno-missed-specialisations

-Wmissed-specializations

alias for -Wmissed-specialisations

dynamic

-Wno-missed-specializations

-Wmissing-deriving-strategies

warn when deriving without mentioning a deriving strategy

dynamic

-Wno-missing-deriving-strategies

-Wmissing-export-lists

warn when a module declaration does not explicitly list all exports

dynamic

-Wno-missing-export-lists

-Wmissing-exported-pattern-synonym-signatures

warn about pattern synonyms without signatures, only if they are exported

dynamic

-Wno-missing-exported-pattern-synonym-signatures

-Wmissing-exported-signatures

warn about top-level functions without signatures, only if they are exported

dynamic

-Wno-missing-exported-signatures

-Wmissing-exported-sigs

(deprecated) warn about top-level functions without signatures, only if they are exported. takes precedence over -Wmissing-signatures

dynamic

-Wno-missing-exported-sigs

-Wmissing-fields

warn when fields of a record are uninitialised

dynamic

-Wno-missing-fields

-Wmissing-home-modules

warn when encountering a home module imported, but not listed on the command line. Useful for cabal to ensure GHC won't pick up modules, not listed neither in exposed-modules, nor in other-modules.

dynamic

-Wno-missing-home-modules

-Wmissing-import-lists

warn when an import declaration does not explicitly list all the names brought into scope

dynamic

-Wno-missing-import-lists

-Wmissing-kind-signatures

warn when type declarations don't have kind signatures nor CUSKs

dynamic

-Wno-missing-kind-signatures

-Wmissing-local-signatures

warn about polymorphic local bindings without signatures

dynamic

-Wno-missing-local-signatures

-Wmissing-local-sigs

(deprecated) warn about polymorphic local bindings without signatures

dynamic

-Wno-missing-local-sigs

-Wmissing-methods

warn when class methods are undefined

dynamic

-Wno-missing-methods

-Wmissing-monadfail-instances

(deprecated) Warn when a failable pattern is used in a do-block that does not have a MonadFail instance.

dynamic

-Wno-missing-monadfail-instances

-Wmissing-pattern-synonym-signatures

warn when pattern synonyms do not have type signatures

dynamic

-Wno-missing-pattern-synonym-signatures

-Wmissing-poly-kind-signatures

warn when inferred polykinded type or class declaration don't have kind signatures nor CUSKs

dynamic

-Wno-missing-poly-kind-signatures

-Wmissing-role-annotations

warn when type declarations don't have role annotations

dynamic

-Wno-role-annotations-signatures

-Wmissing-safe-haskell-mode

warn when the Safe Haskell mode is not explicitly specified.

dynamic

-Wno-missing-safe-haskell-mode

-Wmissing-signatures

warn about top-level functions without signatures

dynamic

-Wno-missing-signatures

-Wmissing-space-after-bang

(deprecated) Does nothing

dynamic

-Wmonomorphism-restriction

warn when the Monomorphism Restriction is applied

dynamic

-Wno-monomorphism-restriction

-Wname-shadowing

warn when names are shadowed

dynamic

-Wno-name-shadowing

-Wnoncanonical-monad-instances

warn when Applicative or Monad instances have noncanonical definitions of return, pure, (>>), or (*>). See flag description in Warnings and sanity-checking for more details.

dynamic

-Wno-noncanonical-monad-instances

-Wnoncanonical-monadfail-instances

(deprecated) warn when Monad or MonadFail instances have noncanonical definitions of fail.

dynamic

-Wno-noncanonical-monadfail-instances

-Wnoncanonical-monoid-instances

warn when Semigroup or Monoid instances have noncanonical definitions of (<>) or mappend. See flag description in Warnings and sanity-checking for more details.

dynamic

-Wno-noncanonical-monoid-instances

-Wnot

(deprecated) Alias for -w

dynamic

-Woperator-whitespace

warn on prefix, suffix, and tight infix uses of infix operators

dynamic

-Wno-operator-whitespace

-Woperator-whitespace-ext-conflict

warn on uses of infix operators that would be parsed differently were a particular GHC extension enabled

dynamic

-Wno-operator-whitespace-ext-conflict

-Worphans

warn when the module contains orphan instance declarations or rewrite rules

dynamic

-Wno-orphans

-Woverflowed-literals

warn about literals that will overflow their type

dynamic

-Wno-overflowed-literals

-Woverlapping-patterns

warn about overlapping patterns

dynamic

-Wno-overlapping-patterns

-Wpartial-fields

warn when defining a partial record field.

dynamic

-Wno-partial-fields

-Wpartial-type-signatures

warn about holes in partial type signatures when PartialTypeSignatures is enabled. Not applicable when PartialTypeSignatures is not enabled, in which case errors are generated for such holes.

dynamic

-Wno-partial-type-signatures

-Wprepositive-qualified-module

Report imports with a leading/prepositive "qualified"

dynamic

-Wno-prepositive-qualified-module

-Wredundant-bang-patterns

Warn about redundant bang patterns.

dynamic

-Wno-redundant-bang-patterns

-Wredundant-constraints

Have the compiler warn about redundant constraints in type signatures.

dynamic

-Wno-redundant-constraints

-Wredundant-record-wildcards

Warn about record wildcard matches when the wildcard binds no patterns.

dynamic

-Wno-redundant-record-wildcards

-Wredundant-strictness-flags

Warn about redundant strictness flags.

dynamic

-Wno-redundant-strictness-flags

-Wsafe

warn if the module being compiled is regarded to be safe.

dynamic

-Wno-safe

-Wsemigroup

(deprecated) Warn when a Monoid is not Semigroup, and on non-Semigroup definitions of (<>)

dynamic

-Wno-semigroup

-Wsimplifiable-class-constraints

Warn about class constraints in a type signature that can be simplified using a top-level instance declaration.

dynamic

-Wno-simplifiable-class-constraints

-Wstar-binder

warn about binding the (*) type operator despite StarIsType

dynamic

-Wno-star-binder

-Wstar-is-type

warn when * is used to mean Data.Kind.Type

dynamic

-Wno-star-is-type

-Wtabs

warn if there are tabs in the source file

dynamic

-Wno-tabs

-Wterm-variable-capture

warn when an implicitly quantified type variable captures a term's name

dynamic

-Wtrustworthy-safe

warn if the module being compiled is marked as Trustworthy but it could instead be marked as Safe, a more informative bound.

dynamic

-Wno-safe

-Wtype-defaults

warn when defaulting happens

dynamic

-Wno-type-defaults

-Wtype-equality-out-of-scope

warn when type equality a ~ b is used despite being out of scope

dynamic

-Wno-type-equality-out-of-scope

-Wtype-equality-requires-operators

warn when type equality a ~ b is used despite being out of scope

dynamic

-Wno-type-equality-requires-operators

-Wtyped-holes

Report warnings when typed hole errors are deferred until runtime. See -fdefer-typed-holes.

dynamic

-Wno-typed-holes

-Wunbanged-strict-patterns

warn on pattern bind of unlifted variable that is neither bare nor banged

dynamic

-Wno-unbanged-strict-patterns

-Wunicode-bidirectional-format-characters

warn about the usage of unicode bidirectional layout override characters

dynamic

-Wunrecognised-pragmas

warn about uses of pragmas that GHC doesn't recognise

dynamic

-Wno-unrecognised-pragmas

-Wunrecognised-warning-flags

throw a warning when an unrecognised -W... flag is encountered on the command line.

dynamic

-Wno-unrecognised-warning-flags

-Wunsafe

warn if the module being compiled is regarded to be unsafe. See Safe Haskell

dynamic

-Wno-unsafe

-Wunsupported-calling-conventions

warn about use of an unsupported calling convention

dynamic

-Wno-unsupported-calling-conventions

-Wunsupported-llvm-version

Warn when using -fllvm with an unsupported version of LLVM.

dynamic

-Wno-unsupported-llvm-version

-Wunticked-promoted-constructors

warn if promoted constructors are not ticked

dynamic

-Wno-unticked-promoted-constructors

-Wunused-binds

warn about bindings that are unused. Alias for -Wunused-top-binds, -Wunused-local-binds and -Wunused-pattern-binds

dynamic

-Wno-unused-binds

-Wunused-do-bind

warn about do bindings that appear to throw away values of types other than ()

dynamic

-Wno-unused-do-bind

-Wunused-foralls

warn about type variables in user-written forall\s that are unused

dynamic

-Wno-unused-foralls

-Wunused-imports

warn about unnecessary imports

dynamic

-Wno-unused-imports

-Wunused-local-binds

warn about local bindings that are unused

dynamic

-Wno-unused-local-binds

-Wunused-matches

warn about variables in patterns that aren't used

dynamic

-Wno-unused-matches

-Wunused-packages

warn when package is requested on command line, but not needed.

dynamic

-Wno-unused-packages

-Wunused-pattern-binds

warn about pattern match bindings that are unused

dynamic

-Wno-unused-pattern-binds

-Wunused-record-wildcards

Warn about record wildcard matches when none of the bound variables are used.

dynamic

-Wno-unused-record-wildcards

-Wunused-top-binds

warn about top-level bindings that are unused

dynamic

-Wno-unused-top-binds

-Wunused-type-patterns

warn about unused type variables which arise from patterns in in type family and data family instances

dynamic

-Wno-unused-type-patterns

-Wview-pattern-signatures

warn when a view pattern is used with type signature without explicit parens

dynamic

-Wno-view-pattern-signatures

-Wwarn

make warnings non-fatal

dynamic

-Werror

-Wwarnings-deprecations

warn about uses of functions & types that have DEPRECATED pragmas, or WARNING pragmas with the deprecated category. Alias for -Wdeprecations.

dynamic

-Wno-warnings-deprecations

-Wwrong-do-bind

warn about do bindings that appear to throw away monadic values that you should have bound instead

dynamic

-Wno-wrong-do-bind

-Wx-⟨category⟩

warn about uses of functions & types that have WARNING pragmas with the given category

dynamic

-Wno-x-⟨category⟩


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4