iteratee: Ticket #6: mapStream consumes an entire chunk even if the inner iteratee doesn'thttp://trac.haskell.org/iteratee/ticket/6
<p>
mapStream maps elements one chunk at a time. If the inner iteratee only consumes part of the chunk, the remainder is discarded. The desired behavior would be to have mapStream only consume as much input as necessary for the inner iteratee.
</p>
<p>
Example:
</p>
<p>
Prelude Data.Iteratee&gt; enumPureNChunk [1..10] 4 (joinI (mapStream (*2) Data.Iteratee.head) &gt;&gt; stream2stream) &gt;&gt;= run
[5,6,7,8,9,10]
Prelude Data.Iteratee&gt;
</p>
en-usiterateehttp://trac.haskell.org/iteratee/chrome/common/trac_banner.pnghttp://trac.haskell.org/iteratee/ticket/6
Trac 0.11.1