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:
c3fe0f3
)
Add Outputable instance for CoercionI
author
simonpj@microsoft.com
<unknown>
Wed, 29 Oct 2008 13:01:14 +0000
(13:01 +0000)
committer
simonpj@microsoft.com
<unknown>
Wed, 29 Oct 2008 13:01:14 +0000
(13:01 +0000)
compiler/types/Coercion.lhs
patch
|
blob
|
history
diff --git
a/compiler/types/Coercion.lhs
b/compiler/types/Coercion.lhs
index
59a1a15
..
b247a3f
100644
(file)
--- a/
compiler/types/Coercion.lhs
+++ b/
compiler/types/Coercion.lhs
@@
-576,6
+576,10
@@
coreEqCoercion = coreEqType
-- 2. The identity coercion
data CoercionI = IdCo | ACo Coercion
+instance Outputable CoercionI where
+ ppr IdCo = ptext (sLit "IdCo")
+ ppr (ACo co) = ppr co
+
isIdentityCoercion :: CoercionI -> Bool
isIdentityCoercion IdCo = True
isIdentityCoercion _ = False