From: Ian Lynagh Date: Mon, 16 Jul 2007 22:06:35 +0000 (+0000) Subject: Implement -fwarn-dodgy-imports X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=12b7e9f1fa41e42350408f2bf0d6885f3fcba068 Implement -fwarn-dodgy-imports You used to only be able to enable Opt_WarnDodgyImports with -W or -Wall. This patch adds the flag to en/disable it by name. (DodgyImports == importing T(..) when only T is exported). --- diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index d62013a..28943ab 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -1082,6 +1082,7 @@ dynamic_flags = [ -- these -f flags can all be reversed with -fno- fFlags = [ + ( "warn-dodgy-imports", Opt_WarnDodgyImports ), ( "warn-duplicate-exports", Opt_WarnDuplicateExports ), ( "warn-hi-shadowing", Opt_WarnHiShadows ), ( "warn-implicit-prelude", Opt_WarnImplicitPrelude ),