Foreign.Marshal.Pool

Simon Marlow simonmar at microsoft.com
Mon Oct 20 13:36:44 EDT 2003


 
> I just saw that `Foreign' re-exports `Foreign.Marshal.Pool'
> via `Foreign.Marshal'.  I don't think that this is a good
> idea, as `Foreign.Marshal.Pool' is not part of the Addendum.
> 
> Does anybody mind if I remove the re-export from
> `Foreign.Marshal'?

Note that Foreign.Marshal isn't part of the FFI addendum, so it is legal
for it to re-export Foreign.Marshal.Pool.  There are several libraries
whose hierarchical versions export more than the standard versions (eg.
compare System.IO with IO).

However, a difficulty arises because Foreign is shared by the
hierarchical world and the non-hierarchical world.  So Foreign must not
re-export Foreign.Marshal.Pool.  Given this, I don't have a strong
opinion about whether Foreign.Marshal should re-export
Foreign.Marshal.Pool (there are arguments both ways).

Cheers,
	Simon



More information about the Cvs-libraries mailing list