[Haskell-cafe] Using streams to clarify (?) the signature of Data.Text.replace

Daniel Díaz diaz.carrete at gmail.com
Tue Jun 28 07:49:57 UTC 2016

> Which is exactly as it should be: streaming 
> functions should be part of streaming libraries, not a text library.
> _______________________________________________
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.

The package streaming-bytestring 
<http://hackage.haskell.org/package/streaming-bytestring> does something 
similar for lazy bytestrings.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160628/004400c6/attachment.html>

More information about the Haskell-Cafe mailing list