Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
decompressGzip :: ByteString -> ByteString Source #
Decompresses Gzip or Bgzf and passes everything else on. In reality, it simply decompresses Gzip, and when done, looks for another Gzip stream. Trailing garbage is returned as is, therefore, uncompressed files are passed through. Since there is a small chance to attempt compression of an uncompressed stream, the original data is returned in case of an error.