[Haskell] Re: Using newArray with hGetArray

Peter Simons simons at cryp.to
Mon May 23 12:18:06 EDT 2005


Andre Pang writes:

 > [...] if I could use hGetBuf and somehow efficiently
 > create an array from a (Ptr Word8).

I've never actually tried this, but shouldn't it be possible
to create a 'StorableArray' and have hGetBufNonBlocking read
into that with the help of 'withStorableArray'?

Peter




More information about the Haskell mailing list