Skip to content
Snippets Groups Projects
Commit 7cd31df2 authored by sof's avatar sof
Browse files

[project @ 1998-02-09 13:00:33 by sof]

checkForModuleExportDups: no need for irrefutable pats
parent ac91dafa
No related merge requests found
......@@ -414,7 +414,8 @@ addAvailEnv warn_dups ie env avail
| otherwise = Nothing
addListToAvailEnv :: AvailEnv -> RdrNameIE -> [AvailInfo] -> RnM s d AvailEnv
addListToAvailEnv env ie items = foldlRn (addAvailEnv False ie) env items
addListToAvailEnv env ie items
= foldlRn (addAvailEnv False{-don't warn about dups-} ie) env items
bad_avail (ie1,avail1,r1) (ie2,avail2,r2)
= availName avail1 /= availName avail2 -- Same OccName, different Name
......@@ -553,8 +554,8 @@ checkForModuleExportDups ls
where
(ls_no_modules,modules) = foldr split_mods ([],[]) ls
split_mods i@(IEModuleContents _) ~(no_ms,ms) = (no_ms,i:ms)
split_mods i ~(no_ms,ms) = (i:no_ms,ms)
split_mods i@(IEModuleContents _) (no_ms,ms) = (no_ms,i:ms)
split_mods i (no_ms,ms) = (i:no_ms,ms)
(no_module_dups, dups) = removeDups cmp_mods modules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment