bzlib-conduit

Haskell bzlib-conduit/zlib-conduit example

雨燕双飞 提交于 2019-12-11 02:18:19
问题 Let's assume we create the file a.txt.gz as follows: $ echo "foobar" > a.txt $ gzip a.txt I intend to use zlib-conduit in order to emulate zcat in Haskell. I'm looking for a simple example that can also be applied to bzlib-conduit. Note: This question was answered immediately in a Q&A-Style. Therefore it intentionally does not show any research effort. 回答1: If you intend to work with conduit s, I highly recommend to read the excellent Conduit overview by Michael Snoyman and the FP Complete