new ForeignPtr without finalizers

Ashley Yakeley ashley at semantic.org
Sun Jun 8 23:59:26 EDT 2003


OK, I just upgraded to GHC 6.0. How do I create a new ForeignPtr that 
doesn't have any finalizers?

  newSimpleForeignPtr :: Ptr a -> IO (ForeignPtr a)
  newSimpleForeignPtr ptr = ??

-- 
Ashley Yakeley, Seattle WA




More information about the FFI mailing list