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:
814e402
)
[project @ 1997-11-21 11:23:04 by simonm]
author
simonm
<unknown>
Fri, 21 Nov 1997 11:23:04 +0000
(11:23 +0000)
committer
simonm
<unknown>
Fri, 21 Nov 1997 11:23:04 +0000
(11:23 +0000)
Add reallyUnsafePtrEq.
ghc/lib/glaExts/IOExts.lhs
patch
|
blob
|
history
diff --git
a/ghc/lib/glaExts/IOExts.lhs
b/ghc/lib/glaExts/IOExts.lhs
index
ed8a3c1
..
2246165
100644
(file)
--- a/
ghc/lib/glaExts/IOExts.lhs
+++ b/
ghc/lib/glaExts/IOExts.lhs
@@
-20,12
+20,21
@@
module IOExts
, trace
, performGC
+
+ , reallyUnsafePtrEq
) where
\end{code}
\begin{code}
+import PrelBase
import IOBase
import IORef
import STBase
import Unsafe
+import GHC
+
+reallyUnsafePtrEq a b =
+ case reallyUnsafePtrEquality# a b of
+ 0# -> False
+ _ -> True
\end{code}