You can use parsec, it has an instance of ByteString.Lazy for its Stream typeclass (http://hackage.haskell.org/packages/archive/parsec/3.0.0/doc/html/Text-Parsec-ByteString-Lazy.html). If you never used parsec before, start reading rwh (http://book.realworldhaskell.org/read/using-parsec.html). You can also use a state monad transformer to achieve a more idiomatic style. Bye!
(no subject)
Date: 2009-08-25 09:01 pm (UTC)