[Haskell-cafe] Iteratee, parsec co.

2010-02-09 Thread Maciej Piechotka
I read a lot about iteratee IO and it seemed very interesting (Unfortunately it lacks tutorial). Especially features like 'no input yet' in network programming (with lazy IO + parsec I run into problems as it tried to evaluate the first response character before sending output). I decided first

Re: [Haskell-cafe] Iteratee, parsec co.

2010-02-09 Thread Daniel Fischer
Am Dienstag 09 Februar 2010 10:03:46 schrieb Maciej Piechotka: Sorry, I haven't looked at iteratees at all, so I can't answer your questions. PS. I guess iteratee does qualify as cafe but if beginner would be more appropriate group then I'm sorry - I'll remember next time. It's not that one

Re: [Haskell-cafe] Iteratee, parsec co.

2010-02-09 Thread Edward Kmett
On Tue, Feb 9, 2010 at 4:03 AM, Maciej Piechotka uzytkown...@gmail.comwrote: I read a lot about iteratee IO and it seemed very interesting (Unfortunately it lacks tutorial). Especially features like 'no input yet' in network programming (with lazy IO + parsec I run into problems as it tried

Re: [Haskell-cafe] Iteratee, parsec co.

2010-02-09 Thread Valery V. Vorotyntsev
| 3. Why Seek FileOffset is error message? Are you talking about John Lato's implementation [1]? Well, `Seek' is not an error message. It is one of constructors for ErrMsg, and ErrMsg is [2] ---- a message to the stream producer (e.g., to rewind the stream) -- or an error

Re: [Haskell-cafe] Iteratee, parsec co.

2010-02-09 Thread John Lato
From: Edward Kmett ekm...@gmail.com 3. Why Seek FileOffset is error message? I'm not quite sure what you're asking here. One of the infelicities of iteratee-0.3 is that it defines a data type: data ErrMsg = Err String | Seek FileOffset deriving (Show, Eq) I