Re: [Haskell-cafe] Stream instance for Parsec + conduits

2013-05-28 Thread Roman Cheplyaka
Hi Phil, Sorry for the late answer — somehow I missed your email when it was originally posted. Parsec wasn't designed for incremental input, and adding it without modifying the internals would be tricky. The problem with your code is this: at the branching point, Parsec remembers the current st

[Haskell-cafe] Stream instance for Parsec + conduits

2013-05-09 Thread Phil Scott
Hi all. I would like to have a Parsec Stream instance for Data.Text streams in yesod's ConduitM. So far, I have this: hpaste.org/87599 The idea is that because Yesod's conduits will be chunking values in Data.Text, I should have a wrapper StreamSource to cache chunked values. For some reason,