foldDecompressStream

foldDecompressStream :: (ByteString -> a -> a) -> a -> (DecompressError -> String -> a) -> DecompressStream -> a
zlib Codec.Compression.Zlib.Internal
Fold an DecompressionStream. Just like foldr but with an extra error case. For example to convert to a list and translate the errors into exceptions: > foldDecompressStream (:) [] (\code msg -> error msg)