The "pipes" library for Haskell has a more comprehensive take. Having this kind of streaming built in really makes shell a fantastically productive language. Declarative composition of "concurrent streams" or "coroutines" is an extremely versatile pattern. Especially when you add named channels ("named pipes", "FIFOs") so you can create arbitrary networks.
1 comment
[ 2.9 ms ] story [ 14.5 ms ] threadhttps://hackage.haskell.org/package/pipes-4.1.6/docs/Pipes-T...