Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
b6fbea97
Commit
b6fbea97
authored
Jun 20, 2004
by
panne
Browse files
[project @ 2004-06-20 17:58:46 by panne]
Renamed Opt_WarnMisc to Opt_WarnDodgyImports
parent
5218cb82
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/CmdLineOpts.lhs
View file @
b6fbea97
...
...
@@ -266,7 +266,7 @@ data DynFlag
| Opt_WarnUnusedImports
| Opt_WarnUnusedMatches
| Opt_WarnDeprecations
| Opt_Warn
Misc
| Opt_Warn
DodgyImports
-- language opts
| Opt_AllowOverlappingInstances
...
...
@@ -675,7 +675,7 @@ minusWOpts
Opt_WarnUnusedMatches,
Opt_WarnUnusedImports,
Opt_WarnIncompletePatterns,
Opt_Warn
Misc
Opt_Warn
DodgyImports
]
minusWallOpts
...
...
ghc/compiler/rename/RnNames.lhs
View file @
b6fbea97
...
...
@@ -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_Warn
Misc
(addWarn (dodgyImportWarn tc))
`thenM_`
ifOptM Opt_Warn
DodgyImports
(addWarn (dodgyImportWarn tc))
`thenM_`
succeed_with False avail
Just avail -> succeed_with False avail
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment