biohazard-0.6.15: bioinformatics support library

Safe HaskellNone
LanguageHaskell2010

Bio.Util.Zlib

Synopsis

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.