again: nullForeignPtr

Manuel M T Chakravarty chak at cse.unsw.edu.au
Mon Jul 7 20:32:42 EDT 2003


Axel Simon <A.Simon at kent.ac.uk> wrote,

> the discussion on ForeignPtrs without finalizers didn't come to a 
> conclusion. I specifically need the nullForeignPtr which was easy enough 
> with the FFI of GHC 5.04:
> 
> newForeignPtr nullPtr (return ())

The discussion came to a conclusion with 

  newForeignPtr_ :: Ptr a -> IO (ForeignPtr a)

being added in RC 11.

Manuel



More information about the FFI mailing list