Re: [Haskell-cafe] ByteString comparison question

2008-05-18 Thread Ketil Malde
Philip Müller <[EMAIL PROTECTED]> writes: > import qualified Data.ByteString as B > import qualified Data.ByteString.Char8 as C8 Note that these use the same underlying data structure, but Char8 interprets the contents as Char instead of Word8. So the B.heads and B.break should be CS8 - for cons

[Haskell-cafe] ByteString comparison question (was: another Newbie performance question)

2008-05-18 Thread Philip Müller
Hi, I'm changing my CSV program to use ByteStrings, but I have problems with this: readCSVLine :: String -- line as String -> [String] -- line broken down into the value Strings readCSVLine = unfoldr builder where b