From 12b7e9f1fa41e42350408f2bf0d6885f3fcba068 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 16 Jul 2007 22:06:35 +0000 Subject: [PATCH] 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). --- compiler/main/DynFlags.hs | 1 + 1 file changed, 1 insertion(+) 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 ), -- 1.7.10.4