h*HqD      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg0.7.0.0 Safe-Inferredhi(c) 2006-2015 Duncan Coutts BSD-styleduncan@community.haskell.org Safe-Inferred 7<)zlibThe strategy parameter is used to tune the compression algorithm.The strategy parameter only affects the compression ratio but not the correctness of the compressed output even if it is not set appropriately.jzlibkzlibzlibThe  parameter specifies how much memory should be allocated for the internal compression state. It is a trade-off between memory usage, compression ratio and compression speed. Using more memory allows faster compression and a better compression ratio.?The total amount of memory used for compression depends on the  and the ,. For decompression it depends only on the (. The totals are given by the functions: compressTotal windowBits memLevel = 4 * 2^windowBits + 512 * 2^memLevel decompressTotal windowBits = 2^windowBits.For example, for compression with the default windowBits = 15 and  memLevel = 8 uses 256Kb. So for example a network server with 100 concurrent compressed streams would use 25Mb. The memory per stream can be halved (at the cost of somewhat degraded and slower compression) by reducing the  windowBits and memLevel by one.-Decompression takes less memory, the default windowBits = 15 corresponds to just 32Kb.zlibThis specifies the size of the compression window. Larger values of this parameter result in better compression at the expense of higher memory usage.The compression window size is the value of the the window bits raised to the power 2. The window bits must be in the range 9..15 which corresponds to compression window sizes of 512b to 32Kb. The default is 15 which is also the maximum size.The total amount of memory used depends on the window bits and the  . See the  for the details.zlibThe compression level parameter controls the amount of compression. This is a trade-off between the amount of compression and the time required to do the compression.zlibThe compression methodzlibThe format used for compression or decompression. There are three variations.lzlibNo progress was possible or there was not enough room in the output buffer when m is used. Note that l is not fatal, and n can be called again with more input and more output space to continue.ozlibA hash of a custom compression dictionary. These hashes are used by zlib as dictionary identifiers. (The particular hash function used is Adler32.)pzlib Dictionary length must fit into q.rzlib Dictionary length must fit into q.szlibUpdate a running o. You can generate a o from one or more ts by starting from u, e.g. dictionaryHash zeroDictionaryHash :: ByteString -> DictionaryHashor foldl' dictionaryHash zeroDictionaryHash :: [ByteString] -> DictionaryHash Dictionary length must fit into q.uzlibA zero o" to use as the initial value with s. zlibThe gzip format uses a header with a checksum and some optional meta-data about the compressed file. It is intended primarily for compressing individual files but is also sometimes used for network protocols such as HTTP. The format is described in detail in RFC #1952 #http://www.ietf.org/rfc/rfc1952.txt zlibThe zlib format uses a minimal header with a checksum but no other meta-data. It is especially designed for use in network protocols. The format is described in detail in RFC #1950 #http://www.ietf.org/rfc/rfc1950.txt zlibThe 'raw' format is just the compressed data stream without any additional header, meta-data or data-integrity checksum. The format is described in detail in RFC #1951 #http://www.ietf.org/rfc/rfc1951.txt zlibThis is not a format as such. It enabled zlib or gzip decoding with automatic header detection. This only makes sense for decompression. zlibThe only method supported in this version of zlib. Indeed it is likely to be the only method that ever will be supported.zlib The default .zlib"No compression, just a block copy.zlib2The fastest compression method (less compression).zlib2The slowest compression method (best compression).zlib*A specific compression level in the range 0..97. Throws an error for arguments outside of this range. 0 stands for , 1 stands for , 6 stands for , 9 stands for .zlib The default . Equivalent to  15". which is also the maximum size.zlibA specific compression window size, specified in bits in the range 9..157. Throws an error for arguments outside of this range.zlib The default . Equivalent to  8.zlibUse minimum memory. This is slow and reduces the compression ratio. Equivalent to  1.zlibUse maximum memory for optimal compression speed. Equivalent to  9.zlib%A specific memory level in the range 1..97. Throws an error for arguments outside of this range.zlib6Use this default compression strategy for normal data.zlibUse the filtered compression strategy for data produced by a filter (or predictor). Filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. The effect of this strategy is to force more Huffman coding and less string matching; it is somewhat intermediate between  and .zlibUse the Huffman-only compression strategy to force Huffman encoding only (no string match).zlibUse 9 to limit match distances to one (run-length encoding). & is designed to be almost as fast as 2, but give better compression for PNG image data.zlib prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.vzlibThis never needs to be used as the stream's resources will be released automatically when no longer needed, however this can be used to release them early. Only use this when you can guarantee that the stream will no longer be needed, for example if an error occurs or if the stream ends.wzlib(This one should not fail on 64-bit arch.xzlibThis one could and will fail if chunks of ByteString are longer than 4G.yzlibThis one could fail in theory, but is used only on arguments 0..9 or 0..15.zzlib{zlib|}~v  nmlprosu(c) 2006-2015 Duncan Coutts BSD-styleduncan@community.haskell.org Trustworthy7<6)zlibThe unfolding of the compression process, where you provide a sequence of uncompressed data chunks as input and receive a sequence of compressed data chunks as output. The process is incremental, in that the demand for input and provision of output are interleaved.%zlib5The possible error cases when decompressing a stream. This can be )n to give a human readable error message.&zlibThe compressed data stream ended prematurely. This may happen if the input data stream was truncated.'zlibIt is possible to do zlib compression with a custom dictionary. This allows slightly higher compression ratios for short files. However such compressed streams require the same dictionary when decompressing. This error is for when we encounter a compressed stream that needs a dictionary, and it's not provided.(zlibIf the stream requires a dictionary and you provide one with the wrong o then you will get this error.)zlibIf the compressed data stream is corrupted in any way then you will get this error, for example if the input data just isn't a compressed zlib data stream. In particular if the data checksum turns out to be wrong then you will get all the decompressed data but this error at the end, instead of the normal successful .*zlibThe unfolding of the decompression process, where you provide a sequence of compressed data chunks as input and receive a sequence of uncompressed data chunks as output. The process is incremental, in that the demand for input and provision of output are interleaved.To indicate the end of the input supply an empty input chunk. Note that for   with the default 9 True you will have to do this, as the decompressor will look for any following members. With 9 False= the decompressor knows when the data ends and will produce - without you having to supply an empty chunk to indicate the end of the input.-zlib!Includes any trailing unconsumed input data..zlib An error code4zlibThe full set of parameters for decompression. The defaults are D.The 7 is the size of the first output buffer, containing the uncompressed data. If you know an exact or approximate upper bound on the size of the decompressed data then setting this parameter can save memory. The default decompression output buffer size is 32k. If your estimate is wrong it does not matter too much, the default buffer size will be used for the remaining chunks.(One particular use case for setting the 7 is if you know the exact size of the decompressed data and want to produce a strict  8. The compression and decompression functions use lazy   s but if you set the 7) correctly then you can generate a lazy   = with exactly one chunk, which can be converted to a strict   in O(1) time using   .  .:zlib>The full set of parameters for compression. The defaults are C.The A is the size of the first output buffer containing the compressed data. If you know an approximate upper bound on the size of the compressed data then setting this parameter can save memory. The default compression output buffer size is 16k. If your estimate is wrong it does not matter too much, the default buffer size will be used for the remaining chunks.CzlibThe default set of parameters for compression. This is typically used with   or  & with specific parameters overridden.DzlibThe default set of parameters for decompression. This is typically used with  or & with specific parameters overridden.zlibThe default chunk sizes for the output of compression and decompression are 16k and 32k respectively (less a small accounting overhead).zlibThe default chunk sizes for the output of compression and decompression are 16k and 32k respectively (less a small accounting overhead).EzlibA fold over the * in the given monad.One way to look at this is that it runs the stream, using callback functions for the four stream events.Fzlib A variant on G that is pure rather than operating in a monad and where the input is provided by a lazy . So we only have to deal with the output, end and error parts, making it like a foldr on a list of output chunks. For example: 5toChunks = foldDecompressStreamWithInput (:) [] throwGzlibA fold over the  in the given monad.One way to look at this is that it runs the stream, using callback functions for the three stream events.Hzlib A variant on G that is pure rather than operating in a monad and where the input is provided by a lazy . So we only have to deal with the output and end parts, making it just like a foldr on a list of output chunks. For example: -toChunks = foldCompressStreamWithInput (:) []Izlib*Compress a data stream provided as a lazy .There are no expected error conditions. All input data streams are valid. It is possible for unexpected errors to occur, such as running out of memory, or finding the wrong version of the zlib C library, these are thrown as exceptions.JzlibIncremental compression in the  monad. Using " makes it possible to write pure lazy7 functions while making use of incremental compression.Chunk size must fit into q.KzlibIncremental compression in the  monad.Chunk size must fit into q.zlibChunk size must fit into q.Lzlib,Decompress a data stream provided as a lazy .It will throw an exception if any error is encountered in the input data. If you need more control over error handling then use one the incremental versions, M or N.Mzlib!Incremental decompression in the  monad. Using " makes it possible to write pure lazy9 functions while making use of incremental decompression.Chunk size must fit into q.Nzlib!Incremental decompression in the  monad.Chunk size must fit into q.zlibChunk size must fit into q.zlibChunk size must fit into q.zlibChunk size must fit into q.zlibChunk size must fit into q.zlibChunk size must fit into q.zlib(This one should not fail on 64-bit arch.zlibThis one could and will fail if chunks of ByteString are longer than 4G.RzlibTzlibUzlibXzlibYzlibzlibzlibzlibIL !"#$JKGH*+,-./0123%&'()MNEF:;<=>?@ABC456789D  IL !"#$JKGH*+,-./0123%&'()MNEF:;<=>?@ABC456789D  (c) 2006-2014 Duncan Coutts BSD-styleduncan@community.haskell.org Safe-Inferred9\zlib6Decompress a stream of data in the raw deflate format.]zlibLike \ but with the ability to specify various decompression parameters.^zlib6Compress a stream of data into the raw deflate format._zlibLike ^ but with the ability to specify various decompression parameters.3^\%&'()_]:;<=>?@ABC456789D 3^\%&'()_]:;<=>?@ABC456789D (c) 2006-2014 Duncan Coutts BSD-styleduncan@community.haskell.org Safe-Inferred>`zlib7Decompress a stream of data in the zlib format, throw % on failure.)Note that the decompression is performed lazily. Errors in the data stream may not be detected until the end of the stream is demanded (since it is only at the end that the final checksum can be checked). If this is important to you, you must make sure to consume the whole decompressed stream before doing any IO action that depends on it.azlibLike ` but with the ability to specify various decompression parameters. Typical usage: ,decompressWith defaultCompressParams { ... }bzlib/Compress a stream of data into the zlib format.This uses the default compression parameters. In particular it uses the default compression level which favours a higher compression ratio over compression speed, though it does not use the maximum compression level.Use c to adjust the compression level or other compression parameters.czlibLike b but with the ability to specify various compression parameters. Typical usage: *compressWith defaultCompressParams { ... }0In particular you can set the compression level: compressWith defaultCompressParams { compressLevel = BestCompression }3b`%&'()ca:;<=>?@ABC456789D 3b`%&'()ca:;<=>?@ABC456789D (c) 2006-2014 Duncan Coutts BSD-styleduncan@community.haskell.org Safe-InferredDadzlib7Decompress a stream of data in the gzip format, throw % on failure.)Note that the decompression is performed lazily. Errors in the data stream may not be detected until the end of the stream is demanded (since it is only at the end that the final checksum can be checked). If this is important to you, you must make sure to consume the whole decompressed stream before doing any IO action that depends on it.ezlibLike  but with the ability to specify various decompression parameters. Typical usage: ,decompressWith defaultCompressParams { ... }fzlib/Compress a stream of data into the gzip format.This uses the default compression parameters. In particular it uses the default compression level which favours a higher compression ratio over compression speed, though it does not use the maximum compression level.Use g to adjust the compression level or other compression parameters.gzlibLike  but with the ability to specify various compression parameters. Typical usage: *compressWith defaultCompressParams { ... }0In particular you can set the compression level: compressWith defaultCompressParams { compressLevel = BestCompression }3fd%&'()ge:;<=>?@ABC456789D 3fd%&'()ge:;<=>?@ABC456789D  !"#$%&'()*+,-./0123456789:;<=>?@ABCCDEFGHHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef   ghijklmnopqrstuv wxyz{|}~pu pyz#zlib-0.7.0.0-F5fFgRvJwDVDl6xWPf5lK3Codec.Compression.Zlib.InternalCodec.Compression.Zlib.RawCodec.Compression.ZlibCodec.Compression.GZipzlib'Codec.Compression.Zlib.ByteStringCompatCodec.Compression.Zlib.StreamData.ByteString ByteStringData.ByteString.LazyconcattoChunks compressWithdecompressWithCodec.Compression.Gzip decompresscompressCompressionStrategy MemoryLevel WindowBitsCompressionLevelMethodFormat gzipFormat zlibFormat rawFormatgzipOrZlibFormat deflateMethoddefaultCompression noCompression bestSpeedbestCompressioncompressionLeveldefaultWindowBits windowBitsdefaultMemoryLevelminMemoryLevelmaxMemoryLevel memoryLeveldefaultStrategyfilteredStrategyhuffmanOnlyStrategy rleStrategy fixedStrategyCompressStreamCompressInputRequiredCompressOutputAvailableCompressStreamEndcompressSupplyInputcompressOutput compressNextDecompressErrorTruncatedInputDictionaryRequiredDictionaryMismatchDataFormatErrorDecompressStreamDecompressInputRequiredDecompressOutputAvailableDecompressStreamEndDecompressStreamErrordecompressSupplyInputdecompressOutputdecompressNextdecompressUnconsumedInputdecompressStreamErrorDecompressParamsdecompressWindowBitsdecompressBufferSizedecompressDictionarydecompressAllMembersCompressParams compressLevelcompressMethodcompressWindowBitscompressMemoryLevelcompressStrategycompressBufferSizecompressDictionarydefaultCompressParamsdefaultDecompressParamsfoldDecompressStreamfoldDecompressStreamWithInputfoldCompressStreamfoldCompressStreamWithInput compressST compressIO decompressST decompressIO$fExceptionDecompressError$fShowDecompressError$fEqDecompressError$fOrdDecompressError$fGenericDecompressError$fEqDecompressParams$fOrdDecompressParams$fShowDecompressParams$fGenericDecompressParams$fEqCompressParams$fOrdCompressParams$fShowCompressParams$fGenericCompressParamsmkBSwithBSRLEFixed BufferErrorFinishinflateDictionaryHashdeflateSetDictionarybaseForeign.C.TypesCUIntinflateSetDictionarydictionaryHashbytestring-0.11.5.2Data.ByteString.Internal.TypezeroDictionaryHashfinalise cuint2int int2cuintint2cint$fOrdMemoryLevel$fOrdCompressionLevelStreamStatemkState runStream unsafeLiftIO deflateInit inflateInitformatSupportsDictionarydeflateStatusOk StreamEndErrorFlushNoFlush SyncFlush FullFlushBlock ErrorCodeNeedDict FileError StreamError DataError MemoryError VersionError Unexpected inflateResetpushInputBufferinputBufferEmptypopRemainingInputBufferpushOutputBufferpopOutputBufferoutputBufferBytesAvailableoutputBufferSpaceRemainingoutputBufferFullGHC.ShowshowdefaultCompressBufferSizedefaultDecompressBufferSizeData.ByteString.Lazy.InternalControl.Monad.ST.Lazy.ImpSTghc-prim GHC.TypesIOcompressStreamdecompressStreamcompressStreamIOcompressStreamSTdecompressStreamIOdecompressStreamSTRep_DecompressErrorRep_DecompressParamsRep_CompressParams