Request: withArrayLength

Ross Paterson ross at soi.city.ac.uk
Tue Mar 30 03:57:09 EST 2004


On Tue, Mar 30, 2004 at 08:54:56AM +0200, Sven Panne wrote:
> Ross Paterson wrote:
> >[...] The only problem is that the not-so-hierarchical module Foreign is in
> >the base package rather than haskell98, and I would argue that such an 
> >omnibus
> >module doesn't belong in the hierarchical libraries, even if it does make 
> >your
> >import list shorter.  How about moving it?
> 
> Those "omnibus" modules are quite handy, the only downside of
> "Foreign" is that it doesn't exactly collect the modules below it in
> the hierarchy. This would have been the better choice IMHO, but we
> decided to do differently for legacy reasons, IIRC. Renaming "Foreign"
> will probably wreak havoc, much more than simply adding 2 functions to
> "Foreign.Marshal.Array", which get re-exported by "Foreign".

The suggestion wasn't to rename it, but to move it from base to haskell98.

Then you could add these functions without changing the interface of any
of the modules listed in the FFI Addendum.


More information about the FFI mailing list