[Haskell-cafe] Reading from a process

Jason Dusek jason.dusek at gmail.com
Wed Dec 16 23:28:29 EST 2009


2009/12/16 Mitar <mmitar at gmail.com>:
> On Wed, Dec 16, 2009 at 11:25 PM, Jason Dusek <jason.dusek at gmail.com> wrote:
> Criterion for garbage is that it is not readable with "read" and that
> not because there would be not enough data available. It seems that I
> will need to do buffer filling and reading at the same time. I was
> hoping I could split this in two functions.

  I don't see where you express in the code the notion of
  enough data, though. Maybe I missed it.

> I am not using hReady signal as delimiter.

  It seems like the message delimiter to me because you keep
  buffering till you receive it.

--
Jason Dusek


More information about the Haskell-Cafe mailing list