From: simonm Date: Wed, 17 Dec 1997 17:29:49 +0000 (+0000) Subject: [project @ 1997-12-17 17:29:49 by simonm] X-Git-Tag: Approx_2487_patches~1153 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=b51d0528b6bcbfc770765c33eed3714fd91f23e8;p=ghc-hetmet.git [project @ 1997-12-17 17:29:49 by simonm] add instance of Show for Addr. --- diff --git a/ghc/lib/glaExts/Addr.lhs b/ghc/lib/glaExts/Addr.lhs index 91056ee..c592d50 100644 --- a/ghc/lib/glaExts/Addr.lhs +++ b/ghc/lib/glaExts/Addr.lhs @@ -22,6 +22,9 @@ import CCall \begin{code} data Addr = A# Addr# deriving (Eq, Ord) +instance Show Addr where + showsPrec p (A# a) = showsPrec p (I# (addr2Int# a)) + nullAddr = ``NULL'' :: Addr plusAddr :: Addr -> Int -> Addr