[project @ 2004-06-20 17:58:46 by panne]
authorpanne <unknown>
Sun, 20 Jun 2004 17:58:49 +0000 (17:58 +0000)
committerpanne <unknown>
Sun, 20 Jun 2004 17:58:49 +0000 (17:58 +0000)
Renamed Opt_WarnMisc to Opt_WarnDodgyImports

ghc/compiler/main/CmdLineOpts.lhs
ghc/compiler/rename/RnNames.lhs

index a230e8d..b68d236 100644 (file)
@@ -266,7 +266,7 @@ data DynFlag
    | Opt_WarnUnusedImports
    | Opt_WarnUnusedMatches
    | Opt_WarnDeprecations
-   | Opt_WarnMisc
+   | Opt_WarnDodgyImports
 
    -- language opts
    | Opt_AllowOverlappingInstances
@@ -675,7 +675,7 @@ minusWOpts
        Opt_WarnUnusedMatches,
        Opt_WarnUnusedImports,
        Opt_WarnIncompletePatterns,
-       Opt_WarnMisc
+       Opt_WarnDodgyImports
       ]
 
 minusWallOpts
index f3fe011..baa7c74 100644 (file)
@@ -474,7 +474,7 @@ filterImports iface imp_spec (Just (want_hiding, import_items)) total_avails
          Just avail@(AvailTC _ [n]) ->         -- This occurs when you import T(..), but
                                                -- only export T abstractly.  The single [n]
                                                -- in the AvailTC is the type or class itself
-                                       ifOptM Opt_WarnMisc (addWarn (dodgyImportWarn tc))      `thenM_`
+                                       ifOptM Opt_WarnDodgyImports (addWarn (dodgyImportWarn tc)) `thenM_`
                                        succeed_with False avail
          Just avail                 -> succeed_with False avail