<div dir="ltr"><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><p>Which is exactly as it should be: streaming <br>functions should be part of streaming libraries, not a text library.</p><p>______________________________<wbr>_________________<br><br></p></blockquote><div><br></div><div>Note however that a stream of strict texts is like a generalized Data.Text.Lazy.Text in which you can have effects when producing each chunk, and there's also a result value at the end that is useful for things like dividing the stream. Text-specific functions that worked on such streams (say, divide the stream at a given Char) would belong in a text library, I think.</div><div><br></div><div>The package <a href="http://hackage.haskell.org/package/streaming-bytestring">streaming-bytestring</a> does something similar for lazy bytestrings.</div></div>