RE: binary IO

2000-03-09 Thread Simon Peyton-Jones
| But Haskell *really* needs some standard way of reading values in the | native format on a platform: What about this specification? hReadByteArray :: Handle - MutableByteArray a - Int - IO Int -- Read the specified number of *bytes* into the byte array. -- Return the

Re: binary IO

2000-03-09 Thread Sven Panne
Simon Peyton-Jones wrote: What about this specification? hReadByteArray :: Handle - MutableByteArray a - Int - IO Int [...] hWriteByteArray :: Handle - MutableByteArray a - Int - IO () [...] Both may block. Would that do what you want? If so we can add it to IOExts.