Add Outputable instance for CoercionI
authorsimonpj@microsoft.com <unknown>
Wed, 29 Oct 2008 13:01:14 +0000 (13:01 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 29 Oct 2008 13:01:14 +0000 (13:01 +0000)
compiler/types/Coercion.lhs

index 59a1a15..b247a3f 100644 (file)
@@ -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