[Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators

dm-list-haskell-cafe at scs.stanford.edu dm-list-haskell-cafe at scs.stanford.edu
Sat May 7 03:58:14 CEST 2011

At Fri, 06 May 2011 21:27:21 -0400,
Mario Blažević wrote:
> > I'd been thinking about using the terms Source and Sink, but Source is
> > very overloaded, and "SinkSource" doesn't exactly roll off the tongue
> > or evoke a particularly helpful intuition.
>      The SCC package happens to use Source and Sink names as well. They 
> are used not for coroutines directly, but instead for references to 
> coroutines of the appropriate type. Every consumer thus owns a Source 
> from which it fetches its input, and that Source is always bound to 
> another coroutine that yields those values through a Sink. Source and 
> Sink are a passive handle to a Producer and Consumer. I may be 
> subjective, but I find this use of the terms very fitting.

You mean fitting for references to coroutines, or fitting for the
replacement names for Enumerator/Iteratee?

If there's overwhelming consensus, I would certainly consider changing
the names in the iterIO library, but it's a pretty big change...


More information about the Haskell-Cafe mailing list