["Simon Marlow" <simonmar@microsoft.com>] RE: cvs commit: fptools/libraries/base/Foreign ForeignPtr.hs

Ross Paterson ross at soi.city.ac.uk
Mon Jan 20 07:13:55 EST 2003

On Mon, Jan 20, 2003 at 11:03:36PM +1100, Manuel M T Chakravarty wrote:
> Hence, I propose to leave the definition in the spec as it
> was; ie, the equality of ForeignPtrs is defined via the
> vanilla pointer that they encapsulate.

However, if you generalize ForeignPtrs (which I hope you will) this would
require Eq on the underlying type.  I guess this is no great hardship
for the types people want to use it with.

More information about the FFI mailing list