pipes-zlib-0.4.4.2: Zlib and GZip compression and decompression for Pipes streams

Safe HaskellNone
LanguageHaskell2010

Pipes.GZip

Contents

Description

This module exports utilities to compress and decompress GZip pipes streams.

Synopsis

Streams

decompress Source #

Arguments

:: MonadIO m 
=> Proxy x' x () ByteString m r

Compressed stream

-> Proxy x' x () ByteString m r

Decompressed stream

Decompress bytes flowing from a Producer.

decompress :: MonadIO m
           => Producer ByteString m r
           -> Producer ByteString m r

decompress' Source #

Arguments

:: MonadIO m 
=> Producer ByteString m r

Compressed stream

-> Producer ByteString m (Either (Producer ByteString m r) r)

Decompressed stream, returning either a Producer of the leftover input or the return value from the input Producer.

Decompress bytes flowing from a Producer, returning any leftover input that follows the compressed stream.

compress Source #

Arguments

:: MonadIO m 
=> CompressionLevel 
-> Proxy x' x () ByteString m r

Decompressed stream

-> Proxy x' x () ByteString m r

Compressed stream

Compress bytes flowing from a Producer.

compress :: MonadIO m
         => CompressionLevel
         -> Producer ByteString m r
         -> Producer ByteString m r

Compression level

compressionLevel :: Int -> CompressionLevel Source #

A specific compression level between 0 and 9.