[Haskell-cafe] The Proliferation of List-Like Types

Johan Tibell johan.tibell at gmail.com
Thu Feb 21 17:35:59 EST 2008

On Thu, Feb 21, 2008 at 6:58 PM, Thomas Schilling
<nominolo at googlemail.com> wrote:
>  On 21 feb 2008, at 18.35, Johan Tibell wrote:
>  >
>  > I switched from lazy bytestrings to a left fold in my networking code
>  > after reading what Oleg wrote about streams vs folds. No problems with
>  > handles, etc. anymore.
>  >
>  Do you fold over chunks?


>  Can you continue to use Parsek or other
>  utilities that need a stream-abstraction, and if so, how do you
>  handle the end of a chunk.

I don't think so. I'm writing an incremental bytestring parser.

>  This is the kind of callback interface
>  where lazy evaluation really abstracts things nicely.

Streams are a nice abstraction however they don't work well in a server.

-- Johan

More information about the Haskell-Cafe mailing list