[project @ 1997-07-25 22:41:04 by sof]
authorsof <unknown>
Fri, 25 Jul 1997 22:41:04 +0000 (22:41 +0000)
committersof <unknown>
Fri, 25 Jul 1997 22:41:04 +0000 (22:41 +0000)
Outputable Int instance

ghc/compiler/utils/Outputable.lhs

index 8dc611b..f7fb7fc 100644 (file)
@@ -130,6 +130,9 @@ instance Outputable Bool where
     ppr sty True = ptext SLIT("True")
     ppr sty False = ptext SLIT("False")
 
+instance Outputable Int where
+   ppr sty n = int n
+
 instance (Outputable a) => Outputable [a] where
     ppr sty xs = brackets (fsep (punctuate comma (map (ppr sty) xs)))