title: Haskell bzlib-conduit/zlib-conduit example
body: <p>Let's assume we create the file <code>a.txt.gz</code> as follows:</p>
  
  <pre><code>$ echo "foobar" &gt; a.txt
  $ gzip a.txt
  </code></pre>
  
  <p>I intend to use <a href="http://hackage.haskell.org/package/zlib-conduit" rel="nofollow"><code>zlib-conduit</code></a> in order to emulate <code>zcat</code> in Haskell.</p>
  
  <p>I'm looking for a simple example that can also be applied to <a href="https://hackage.haskell.org/package/bzlib-conduit" rel="nofollow"><code>bzlib-conduit</code></a>.</p>
  
  <p><em>Note:</em> This question was answered immediately in a Q&amp;A-Style. Therefore it intentionally does not show any research effort.</p>