[project @ 1997-11-21 11:23:04 by simonm]
authorsimonm <unknown>
Fri, 21 Nov 1997 11:23:04 +0000 (11:23 +0000)
committersimonm <unknown>
Fri, 21 Nov 1997 11:23:04 +0000 (11:23 +0000)
Add reallyUnsafePtrEq.

ghc/lib/glaExts/IOExts.lhs

index ed8a3c1..2246165 100644 (file)
@@ -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}