Re: again: nullForeignPtr

Manuel M T Chakravarty <[email protected]>
Newsgroups gmane.comp.lang.haskell.ffi
Message-ID <[email protected]>
Axel Simon <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.