Skip to content
Snippets Groups Projects
Commit dfe1bcf1 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-11-22 10:53:51 by simonmar]

eqForeignObj can be an unsafe ccall.
parent 6c6ca84c
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment