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:
68b932d
)
[project @ 1999-09-19 19:10:54 by sof]
author
sof
<unknown>
Sun, 19 Sep 1999 19:10:54 +0000
(19:10 +0000)
committer
sof
<unknown>
Sun, 19 Sep 1999 19:10:54 +0000
(19:10 +0000)
nullAddr: avoid the use of a lit-lit
ghc/lib/std/PrelAddr.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/std/PrelAddr.lhs
b/ghc/lib/std/PrelAddr.lhs
index
80740d3
..
b334fd0
100644
(file)
--- a/
ghc/lib/std/PrelAddr.lhs
+++ b/
ghc/lib/std/PrelAddr.lhs
@@
-34,7
+34,7
@@
instance Show Addr where
showsPrec p (A# a) = showsPrec p (I# (addr2Int# a))
nullAddr :: Addr
-nullAddr = ``(W_)NULL''
+nullAddr = A# (int2Addr# 0#)
plusAddr :: Addr -> Int -> Addr
plusAddr (A# addr) (I# off) = A# (int2Addr# (addr2Int# addr +# off))