From: simonm Date: Fri, 21 Nov 1997 11:23:04 +0000 (+0000) Subject: [project @ 1997-11-21 11:23:04 by simonm] X-Git-Tag: Approx_2487_patches~1285 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f4ef2fab7f1ff93fe4916c9e6d2fe31922bb99f6;p=ghc-hetmet.git [project @ 1997-11-21 11:23:04 by simonm] Add reallyUnsafePtrEq. --- diff --git a/ghc/lib/glaExts/IOExts.lhs b/ghc/lib/glaExts/IOExts.lhs index ed8a3c1..2246165 100644 --- 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}