Binary IO
Henning Thielemann
lemming at henning-thielemann.de
Fri Apr 22 07:25:19 EDT 2005
On Fri, 22 Apr 2005, John Meacham wrote:
> On Fri, Apr 22, 2005 at 09:38:07AM +0100, Simon Marlow wrote:
>>
>> Not at all - just that we don't plan to break existing code if/when a
>> replacement for the current I/O library is introduced. Sorry for the
>> misunderstanding.
>>
>> Does anyone have any *objections* to introducing
>>
>> System.IO.hGetWord8 :: Handle -> IO Word8
>> System.IO.hPutWord8 :: Word8 -> Handle -> IO Word8
>>
>> (I prefer these names, please speak up if you prefer hGetByte/hPutByte
>> instead, or something else like hGetOctet/hPutOctet).
>
> Sounds good to me. can we please also add
>
> readBinaryFile :: String -> IO [Word8]
> writeBinaryFile :: String -> [Word8] -> IO ()
me too
but of course with FilePath instead of String
More information about the Libraries
mailing list