tags:

views:

759

answers:

3

I find Oleg's docs on Iteratee somewhat difficult to get into. Especially since some of the functions in his posts to Haskell-Cafe aren't in the iteratee library (like enum_file).

Is there a good introduction to iteratee somewhere, something that goes through basics like opening a file/socket, reading and processing the data.

+1  A: 

As far as I know, there is no good introduction yet. I learned them by rewriting Oleg's code. So that would certainly be one path: implement a left-fold based IO layer.

Don Stewart
+4  A: 

I have some slides on monoidal parsing that build Iteratee based Parsec streams up as an intermediate result that you might find useful.

http://comonad.com/reader/2009/iteratees-parsec-and-monoid/

Edward Kmett
+4  A: 

A good article on Iteratees was recently published in the Monad Reader:

http://themonadreader.wordpress.com/2010/05/12/issue-16

This article has plenty of examples, and alternate implementations that increase in complexity as it goes.

Apocalisp
I agree this article is a very good introduction.
Magnus