Binary IO
Ketil Malde
ketil+haskell at ii.uib.no
Fri Apr 22 07:44:11 EDT 2005
John Meacham <john at repetae.net> 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:
System.IO.Word8.(readFile|writeFile...)
I.e. reusing the current Char IO interface for the Word8 type.
Oh well, maybe not.
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Libraries
mailing list