summaryrefslogtreecommitdiff
path: root/compiler/main
diff options
context:
space:
mode:
authorIsaac Dupree <id@isaac.cedarswampstudios.org>2007-05-11 08:45:25 +0000
committerIsaac Dupree <id@isaac.cedarswampstudios.org>2007-05-11 08:45:25 +0000
commit536852b1348fde6ec0ba13859cc5ddf8480a1653 (patch)
tree3d442de92d95ac7c989616c8927fd4dfb705606c /compiler/main
parent53167b89a0ad08049ed429e09d6863b6b322ec44 (diff)
downloadhaskell-536852b1348fde6ec0ba13859cc5ddf8480a1653.tar.gz
Add a warning flag for when the Prelude is implicitly imported (trac #1317)
GHC already determines all the implicit (Prelude) imports, so we just need to check whether there are any of those, for each module being compiled.
Diffstat (limited to 'compiler/main')
-rw-r--r--compiler/main/DynFlags.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index e5153ea33a..51abf36370 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -139,6 +139,7 @@ data DynFlag
| Opt_WarnIsError -- -Werror; makes warnings fatal
| Opt_WarnDuplicateExports
| Opt_WarnHiShadows
+ | Opt_WarnImplicitPrelude
| Opt_WarnIncompletePatterns
| Opt_WarnIncompletePatternsRecUpd
| Opt_WarnMissingFields
@@ -1024,6 +1025,7 @@ dynamic_flags = [
fFlags = [
( "warn-duplicate-exports", Opt_WarnDuplicateExports ),
( "warn-hi-shadowing", Opt_WarnHiShadows ),
+ ( "warn-implicit-prelude", Opt_WarnImplicitPrelude ),
( "warn-incomplete-patterns", Opt_WarnIncompletePatterns ),
( "warn-incomplete-record-updates", Opt_WarnIncompletePatternsRecUpd ),
( "warn-missing-fields", Opt_WarnMissingFields ),