Binary IO

Ketil Malde ketil+haskell at
Fri Apr 22 07:44:11 EDT 2005

John Meacham <john at> writes:

>>   System.IO.hGetWord8 :: Handle -> IO Word8
>>   System.IO.hPutWord8 :: Word8 -> Handle -> IO Word8

> Sounds good to me. can we please also add

> readBinaryFile :: String -> IO [Word8]
> writeBinaryFile :: String -> [Word8] -> IO ()

Or even:


I.e. reusing the current Char IO interface for the Word8 type.

Oh well, maybe not.

If I haven't seen further, it is by standing in the footprints of giants

More information about the Libraries mailing list