qforeign-0.65: Bzip2: problems with [Word8]
Hello *, I am just trying to catch up with the lastest developments.
From qforeign-0.64 to qforeign-0.65, some types were changed:
"Zlib and Bzip2 express byte lists as [Word8] instead of String." But I need String -> String! (Reading from a file, decompressing, and feeding it to the XML parser.) How can I do this? I found out that fromIntegral does the conversion from Word8 to Char but I do not know how to convert from Char to Word8. Since files are pretty large, the conversions should have no operational impact. Thanks, Michael
Hello *, I found that decompress hangs if data ends prematurely, i.e. do content <- readFile fp doSomething (Bzip2.decompress content) does not terminate in this case. Data that is corrupt in some other way (for example, decompressing a file that has not been generated with bzip2) is detected and an exception is thrown. Michael
participants (1)
-
Michael Marte