From: simonmar Date: Mon, 30 Apr 2001 12:09:09 +0000 (+0000) Subject: [project @ 2001-04-30 12:09:09 by simonmar] X-Git-Tag: Approximately_9120_patches~2057 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=522e91206829e2052c63a3055bcf5eee81ab1ff6;p=ghc-hetmet.git [project @ 2001-04-30 12:09:09 by simonmar] document -fwarn-misc. --- diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index 3989d72..52f6478 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -764,7 +764,8 @@ ghc --make Main.hs Provides the standard warnings plus , , - and + , + , and . @@ -772,7 +773,7 @@ ghc --make Main.hs : - -w option + Turns off all warnings, including the standard ones. @@ -780,7 +781,7 @@ ghc --make Main.hs : - -Wall option + Turns on all warning options. @@ -809,7 +810,7 @@ ghc --make Main.hs : - -fwarn-duplicate-exports option + duplicate exports, warning export lists, duplicates @@ -826,7 +827,7 @@ ghc --make Main.hs : - -fwarn-hi-shadowing option + shadowing interface files @@ -840,7 +841,7 @@ ghc --make Main.hs : - -fwarn-incomplete-patterns option + incomplete patterns, warning patterns, incomplete @@ -862,9 +863,20 @@ g [] = 2 + : + + + Turns on warnings for various harmless but untidy + things. This currently includes: importing a type with + (..) when the export is abstract, and + listing duplicate class assertions in a qualified type. + + + + : - -fwarn-missing-fields option + missing fields, warning fields, missing @@ -879,7 +891,7 @@ g [] = 2 : - -fwarn-missing-methods option + missing methods, warning methods, missing @@ -893,7 +905,7 @@ g [] = 2 : - -fwarn-missing-signatures option + type signatures, missing If you would like GHC to check that every top-level @@ -906,7 +918,7 @@ g [] = 2 : - -fwarn-name-shadowing option + shadowing, warning This option causes a warning to be emitted whenever an @@ -924,7 +936,7 @@ g [] = 2 : - -fwarn-overlapping-patterns option + overlapping patterns, warning patterns, overlapping @@ -960,7 +972,7 @@ f "2" = 2 : - -fwarn-type-defaults option + defaulting mechanism, warning Have the compiler warn/inform you where in your source the Haskell defaulting mechanism for numeric types kicks @@ -980,7 +992,7 @@ f "2" = 2 : - -fwarn-unused-binds option + unused binds, warning binds, unused Report any function definitions (and local bindings) @@ -992,7 +1004,7 @@ f "2" = 2 : - -fwarn-unused-imports option + unused imports, warning imports, unused @@ -1004,7 +1016,7 @@ f "2" = 2 : - -fwarn-unused-matches option + unused matches, warning matches, unused @@ -1020,10 +1032,11 @@ f "2" = 2 If you're feeling really paranoid, the - option-dcore-lint - option is a good choice. It turns on - heavyweight intra-pass sanity-checking within GHC. (It checks - GHC's sanity, not yours.) + + option + is a good choice. It turns on heavyweight intra-pass + sanity-checking within GHC. (It checks GHC's sanity, not + yours.)