Re: Request: withArrayLength

2004-03-29 Thread Adrian Hey
On Monday 29 Mar 2004 8:35 am, Sven Panne wrote: I wrote: [...] So if nobody yells, I'll add withArrayLen :: Storable a = [a] - (Ptr a - Int - IO b) - IO b withArrayLen0 :: Storable a = a - [a] - (Ptr a - Int - IO b) - IO b [...] After some thoughts, swapping the order of the

Re: Request: withArrayLength

2004-03-29 Thread Ross Paterson
On Tue, Mar 23, 2004 at 09:04:35AM -, Simon Marlow wrote: We certainly want to be able to add new stuff to the FFI over time. There are several ways we might do this: (1) Just extend the existing interfaces (don't change semantics of existing functions, though). (2) Add new

Re: Request: withArrayLength

2004-03-29 Thread Sven Panne
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?