RE: newForeignPtr

2003-02-03 Thread Simon Marlow
> "Simon Marlow" <[EMAIL PROTECTED]> writes: > > > > However, only Hugs implements this part of the spec at the moment. > > > > It will be implemented in GHC before the next major > release. I'm not > > intentionally dragging my heels on this one, just haven't > got around to > > it yet :-) >

Re: newForeignPtr

2003-02-03 Thread Malcolm Wallace
"Simon Marlow" <[EMAIL PROTECTED]> writes: > > However, only Hugs implements this part of the spec at the moment. > > It will be implemented in GHC before the next major release. I'm not > intentionally dragging my heels on this one, just haven't got around to > it yet :-) And of course the ghc

RE: newForeignPtr

2003-02-03 Thread Simon Marlow
> For a summary of the discussion, see > > http://cvs.haskell.org/cgi-bin/cvsweb.cgi/haskell-report/ffi/finalizers. txt > > However, only Hugs implements this part of the spec at the moment. It will be implemented in GHC before the next major release. I'm not intentionally dragging my heels on t

Re: newForeignPtr

2003-02-03 Thread Ross Paterson
On Mon, Feb 03, 2003 at 09:20:03PM +1100, m v wrote: > > I do not understand the rational of the type of: > > newForeignPtr :: Ptr a -> FunPtr (Ptr a -> IO ()) -> IO (ForeignPtr > a) > > suppose I have a c function > > foreign import ccall fooalloc :: Ptr Foo > > and another