import GHC.Show
import GHC.List ( null )
import GHC.Base
-import GHC.IO
+-- import GHC.IO
import GHC.IORef
import GHC.STRef ( STRef(..) )
import GHC.Ptr ( Ptr(..), FunPtr(..) )
PlainForeignPtr r -> f r >> return ()
MallocPtr _ r -> f r >> return ()
_ -> error "GHC.ForeignPtr: attempt to add a finalizer to a plain pointer"
- where
+ where
f r =
noMixing CFinalizers r $
IO $ \s ->
PlainForeignPtr r -> f r >> return ()
MallocPtr _ r -> f r >> return ()
_ -> error "GHC.ForeignPtr: attempt to add a finalizer to a plain pointer"
- where
+ where
f r =
noMixing CFinalizers r $
IO $ \s ->