From f4ef2fab7f1ff93fe4916c9e6d2fe31922bb99f6 Mon Sep 17 00:00:00 2001 From: simonm Date: Fri, 21 Nov 1997 11:23:04 +0000 Subject: [PATCH] [project @ 1997-11-21 11:23:04 by simonm] Add reallyUnsafePtrEq. --- ghc/lib/glaExts/IOExts.lhs | 9 +++++++++ 1 file changed, 9 insertions(+) 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} -- 1.7.10.4