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:
85bc313
)
[project @ 1997-12-17 17:29:49 by simonm]
author
simonm
<unknown>
Wed, 17 Dec 1997 17:29:49 +0000
(17:29 +0000)
committer
simonm
<unknown>
Wed, 17 Dec 1997 17:29:49 +0000
(17:29 +0000)
add instance of Show for Addr.
ghc/lib/glaExts/Addr.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/glaExts/Addr.lhs
b/ghc/lib/glaExts/Addr.lhs
index
91056ee
..
c592d50
100644
(file)
--- 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