[Haskell-cafe] Re: Converting IO [XmlTree] to [XmlTree]

Achim Schneider barsoap at web.de
Tue Apr 28 05:39:10 EDT 2009

Jason Dusek <jason.dusek at gmail.com> wrote:

> 2009/04/21 Manlio Perillo <manlio_perillo at libero.it>:
> > Luke Palmer ha scritto:
> >> And many other permutations, with differing degrees of
> >> laziness and parametericity.
> >
> > As long as you stricly read a string from the socket, this is
> > ok. But you can not read a string lazily.
>   Why not? It changes the way in which the program fails (if it
>   does) but it does not change the result.
Reading a socket lazily has exactly the same result as strictly reading
a socket that isn't sent any data. In network programming, you
continuously have to drain your input.

(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.

More information about the Haskell-Cafe mailing list