[project @ 1999-11-22 10:53:51 by simonmar]
authorsimonmar <unknown>
Mon, 22 Nov 1999 10:53:51 +0000 (10:53 +0000)
committersimonmar <unknown>
Mon, 22 Nov 1999 10:53:51 +0000 (10:53 +0000)
eqForeignObj can be an unsafe ccall.

ghc/lib/std/PrelForeign.lhs

index 9e326cb..ed575ef 100644 (file)
@@ -51,7 +51,7 @@ writeForeignObj (ForeignObj fo#) (A# datum#) = IO ( \ s# ->
 eqForeignObj mp1 mp2
   = unsafePerformIO (primEqForeignObj mp1 mp2) /= (0::Int)
 
-foreign import "eqForeignObj" primEqForeignObj :: ForeignObj -> ForeignObj -> IO Int
+foreign import "eqForeignObj" unsafe primEqForeignObj :: ForeignObj -> ForeignObj -> IO Int
 
 instance Eq ForeignObj where 
     p == q = eqForeignObj p q