At 2001-10-16 11:12, Michael Marte wrote:

>But I need String -> String!
>(Reading from a file, decompressing, and feeding it to the XML parser.)
>How can I do this?

The "reading from a file" part is arguably a misdesign in the standard 
libraries. There ought to be Word8-based file IO functions for 
reading/writing the bytes of a file. I'm not sure, but I think the 
Char-based functions may even do newline conversion.

>I found out that fromIntegral does the conversion from Word8 to Char
>but I do not know how to convert from Char to Word8.

I think fromIntegral will work for that too.

-- 
Ashley Yakeley, Seattle WA


_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to