[Haskell-cafe] Re: Zlib bindings

John Goerzen jgoerzen at complete.org
Tue Oct 18 13:53:10 EDT 2005


On 2005-10-18, Joel Reymont <joelr1 at gmail.com> wrote:
> Are there any zlib bindings for Haskell? The docs for HDirect mention  
> the examples directory with the bindings but I cannot find the  
> examples directory in the source distro.
>
> The MissingH code works with gzipped files apparently but not with  
> memory buffers.

Actually, check out:

http://quux.org/devel/missingh/html/MissingH-FileArchive-GZip.html#v%3Adecompress

It will work with String buffers.

Now, having said that, this code is slow, for a variety of reasons.
Whether or not it is fast enough for you probably depends on your
network.

I also have bindings to gzip and bzip2 in MissingPy; however, they are
currently written for on-disk files only.

-- John




More information about the Haskell-Cafe mailing list