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:
d5183f3
)
add Outputable instance for OccIfaceEq
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 6 Dec 2007 09:24:03 +0000
(09:24 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 6 Dec 2007 09:24:03 +0000
(09:24 +0000)
compiler/iface/MkIface.lhs
patch
|
blob
|
history
diff --git
a/compiler/iface/MkIface.lhs
b/compiler/iface/MkIface.lhs
index
c00c371
..
b11c1e0
100644
(file)
--- a/
compiler/iface/MkIface.lhs
+++ b/
compiler/iface/MkIface.lhs
@@
-755,6
+755,11
@@
computeChangedOccs ver_fn this_module old_usages eq_info
type OccIfaceEq = GenIfaceEq OccSet
type OccIfaceEq = GenIfaceEq OccSet
+instance Outputable OccIfaceEq where
+ ppr Equal = ptext SLIT("Equal")
+ ppr NotEqual = ptext SLIT("NotEqual")
+ ppr (EqBut occset) = ptext SLIT("EqBut") <+> ppr (occSetElts occset)
+
changedWrt :: OccSet -> OccIfaceEq -> Bool
changedWrt so_far Equal = False
changedWrt so_far NotEqual = True
changedWrt :: OccSet -> OccIfaceEq -> Bool
changedWrt so_far Equal = False
changedWrt so_far NotEqual = True