[Haskell-cafe] Re: Fwd: Semantics of iteratees, enumerators, enumeratees?

Heinrich Apfelmus apfelmus at quantentunnel.de
Thu Aug 26 03:33:30 EDT 2010

Daniel Fischer wrote:
> John Lato wrote:
>>> Heinrich Apfelmus wrote:
>>> Do you have an example where you want chunking instead of single
>>> character access?
>> I am unable to think of any examples where you want chunking for any
>> reason other than efficiency.
> For many hashing or de/encryption algorithms, chunking is more natural than 
> single-character access.

Even when the chunk lengths are unpredictable? After all, unlike with 
fread  in C, you can't request the next chunk to have a certain length 
with Iteratees.

Heinrich Apfelmus


More information about the Haskell-Cafe mailing list