[Haskell-cafe] Re: Network parsing and parsec

John Goerzen jgoerzen at complete.org
Tue Sep 20 09:58:29 EDT 2005

On Tue, Sep 20, 2005 at 02:29:12PM +0100, Keean Schupke wrote:
> >It's unclear to me exactly how to mix the IO monad with Parsec.  It
> >doesn't really seem to be doable.
> >
> >Not to mention that if hGetContents is used, the Handle has to be put
> >into non-buffering mode, which means one syscall per character read.
> >Terribly slow.
> >
> > 
> >
> Does it? I didn't think so ...

strace seems to say yes.

If buffering is used, it blocks on attempts to read more than is

-- John

More information about the Haskell-Cafe mailing list