Addr# field in ForeignPtr

2011-06-01 Thread Roman Leshchinskiy
Hi all, GHC defines ForeignPtr as: data ForeignPtr a = ForeignPtr Addr# ForeignPtrContents -- we cache the Addr# in the ForeignPtr object, but attach -- the finalizer to the IORef (or the MutableByteArray# in -- the case of a MallocPtr). The aim of the representation

Re: testsuite, failures galore

2011-06-01 Thread Simon Marlow
On 01/06/2011 02:55, Daniel Fischer wrote: On Tuesday 31 May 2011 16:04:28, Simon Marlow wrote: That's very mysterious. Perhaps bfd_init doesn't pull in anything that has the libz dependency, and you have to call some other function in the bfd library instead. Not having a better idea, I

Re: Addr# field in ForeignPtr

2011-06-01 Thread Simon Marlow
On 01/06/2011 08:29, Roman Leshchinskiy wrote: GHC defines ForeignPtr as: data ForeignPtr a = ForeignPtr Addr# ForeignPtrContents -- we cache the Addr# in the ForeignPtr object, but attach -- the finalizer to the IORef (or the MutableByteArray# in -- the case of a