projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0163090
)
[project @ 1997-11-24 21:06:11 by sof]
author
sof
<unknown>
Mon, 24 Nov 1997 21:06:11 +0000
(21:06 +0000)
committer
sof
<unknown>
Mon, 24 Nov 1997 21:06:11 +0000
(21:06 +0000)
Have conflictFM return Maybe type rather than list
ghc/compiler/rename/RnEnv.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/rename/RnEnv.lhs
b/ghc/compiler/rename/RnEnv.lhs
index
5403354
..
577b795
100644
(file)
--- a/
ghc/compiler/rename/RnEnv.lhs
+++ b/
ghc/compiler/rename/RnEnv.lhs
@@
-529,11
+529,11
@@
conflictsFM bad fm1 fm2
conflictFM :: Ord a
=> (b->b->Bool)
-> FiniteMap a b -> a -> b
- -> [(a,(b,b))]
+ -> Maybe (a,(b,b))
conflictFM bad fm key elt
= case lookupFM fm key of
- Just elt' | bad elt elt' -> [(key,(elt,elt'))]
- other -> []
+ Just elt' | bad elt elt' -> Just (key,(elt,elt'))
+ other -> Nothing
\end{code}