2 ms·
Io-streams looks nice, but I think I'll stay with pipes. Along with pipes-safe, it lets you for instance open resources safely inside your stream, which is a ve
by mercurial 14y ago
Io-streams looks nice, but I think I'll stay with pipes. Along with pipes-safe, it lets you for instance open resources safely inside your stream, which is a very convenient feature at times.
- danieldk 14y agoI like Snap, but I am still skeptic too. One of the nicer things of enumeratee, conduit, and pipes is that you can use them in pure code as well. io-streams drags in the IO monad if you want to structure code as streams, even if your 'enumerator', 'enumeratee' or 'iterator' is pure.
- mercurial 14y agoI think that's a design goal. The idea is to pipe IO streams and not arbitrary streams, which seems to make for a much less complicated machinery (just look at the types signatures from pipes :) ). It's a viable design choice, but it certainly has drawbacks as well.