
Hi Jason,
2008/12/20 Jason Dusek
So, it looks Iteratee takes a "step" on the resource -- whatever it is -- and Enumerator manages the resource and sequences the steps of the Iteratee. The Enumerator, then, defines our way of managing a particular resource -- how to take a step, how to close it, &c. -- while the Iteratee describes a computation that computes an output and also tells us when to free the resource.
Yes, I believe you are correct.
Is that a correct interpretation? I find the material on Enumerator and Iterator to be vague (or at least not very concrete).
Have you read Oleg's DEFUN'08 talk notes? [1] Having read them more than once, I find them comprehensible. :) Cheers, Artyom Shalkhakov. [1] http://okmij.org/ftp/Haskell/Iteratee/DEFUN08-talk-notes.pdf