Commit 12b7e9f1 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

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).
parent 8215287c
......@@ -1082,6 +1082,7 @@ dynamic_flags = [
-- these -f<blah> flags can all be reversed with -fno-<blah>
fFlags = [
( "warn-dodgy-imports", Opt_WarnDodgyImports ),
( "warn-duplicate-exports", Opt_WarnDuplicateExports ),
( "warn-hi-shadowing", Opt_WarnHiShadows ),
( "warn-implicit-prelude", Opt_WarnImplicitPrelude ),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment