Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > 23a6317c2c476c1d2a8029cb053d4d76 > files > 2

ghc-zlib-bindings-doc-0.0.0-1.fc13.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Codec.Zlib</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Codec-Zlib.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>zlib-bindings-0.0.0: Low-level bindings to the zlib package.</TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Codec.Zlib</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Inflate
</A
></DT
><DT
><A HREF="#2"
>Deflate
</A
></DT
><DT
><A HREF="#3"
>Data types
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
>This is a middle-level wrapper around the zlib C API. It allows you to
 work fully with bytestrings and not touch the FFI at all, but is still
 low-level enough to allow you to implement high-level abstractions such as
 enumerators. Significantly, it does not use lazy IO.
</P
><P
>You'll probably need to reference the docs a bit to understand the
 WindowBits parameters below, but a basic rule of thumb is 15 is for zlib
 compression, and 31 for gzip compression.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AInflate"
>Inflate</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AinitInflate"
>initInflate</A
> :: <A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Codec-Zlib.html#t%3AInflate"
>Inflate</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AwithInflateInput"
>withInflateInput</A
> ::  <A HREF="Codec-Zlib.html#t%3AInflate"
>Inflate</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
> -&gt; (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AfinishInflate"
>finishInflate</A
> :: <A HREF="Codec-Zlib.html#t%3AInflate"
>Inflate</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3ADeflate"
>Deflate</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AinitDeflate"
>initDeflate</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Codec-Zlib.html#t%3ADeflate"
>Deflate</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AwithDeflateInput"
>withDeflateInput</A
> ::  <A HREF="Codec-Zlib.html#t%3ADeflate"
>Deflate</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
> -&gt; (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AfinishDeflate"
>finishDeflate</A
> ::  <A HREF="Codec-Zlib.html#t%3ADeflate"
>Deflate</A
> -&gt; (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AWindowBits"
>WindowBits</A
>  = <A HREF="#v%3AWindowBits"
>WindowBits</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AdefaultWindowBits"
>defaultWindowBits</A
> :: <A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AZlibException"
>ZlibException</A
>  = <A HREF="#v%3AZlibException"
>ZlibException</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>Inflate
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:Inflate"
><A NAME="t%3AInflate"
></A
></A
><B
>Inflate</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>The state of an inflation (eg, decompression) process. All allocated
 memory is automatically reclaimed by the garbage collector.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:initInflate"
><A NAME="v%3AinitInflate"
></A
></A
><B
>initInflate</B
> :: <A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Codec-Zlib.html#t%3AInflate"
>Inflate</A
></TD
></TR
><TR
><TD CLASS="doc"
>Initialize an inflation process with the given <TT
><A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
></TT
>. You will need
 to call <TT
><A HREF="Codec-Zlib.html#v%3AwithInflateInput"
>withInflateInput</A
></TT
> to feed compressed data to this and
 <TT
><A HREF="Codec-Zlib.html#v%3AfinishInflate"
>finishInflate</A
></TT
> to extract the final chunk of decompressed data.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:withInflateInput"
><A NAME="v%3AwithInflateInput"
></A
></A
><B
>withInflateInput</B
> ::  <A HREF="Codec-Zlib.html#t%3AInflate"
>Inflate</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
> -&gt; (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a</TD
></TR
><TR
><TD CLASS="doc"
><P
>Feed the given <TT
><A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
></TT
> to the inflater. This function takes a
 function argument which takes a &quot;popper&quot;. A popper is an IO action that
 will return the next bit of inflated data, returning <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> when there is
 no more data to be popped.
</P
><P
>Note that this function automatically buffers the output to
 <TT
>defaultChunkSize</TT
>, and therefore you won't get any data from the popper
 until that much decompressed data is available. After you have fed all of
 the compressed data to this function, you can extract your final chunk of
 decompressed data using <TT
><A HREF="Codec-Zlib.html#v%3AfinishInflate"
>finishInflate</A
></TT
>.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:finishInflate"
><A NAME="v%3AfinishInflate"
></A
></A
><B
>finishInflate</B
> :: <A HREF="Codec-Zlib.html#t%3AInflate"
>Inflate</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
></TD
></TR
><TR
><TD CLASS="doc"
>As explained in <TT
><A HREF="Codec-Zlib.html#v%3AwithInflateInput"
>withInflateInput</A
></TT
>, inflation buffers your decompressed
 data. After you call <TT
><A HREF="Codec-Zlib.html#v%3AwithInflateInput"
>withInflateInput</A
></TT
> with your last chunk of compressed
 data, you will likely have some data still sitting in the buffer. This
 function will return it to you.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
>Deflate
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:Deflate"
><A NAME="t%3ADeflate"
></A
></A
><B
>Deflate</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>The state of a deflation (eg, compression) process. All allocated memory
 is automatically reclaimed by the garbage collector.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:initDeflate"
><A NAME="v%3AinitDeflate"
></A
></A
><B
>initDeflate</B
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Compression level
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Codec-Zlib.html#t%3ADeflate"
>Deflate</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Initialize a deflation process with the given compression level and
 <TT
><A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
></TT
>. You will need to call <TT
><A HREF="Codec-Zlib.html#v%3AwithDeflateInput"
>withDeflateInput</A
></TT
> to feed uncompressed
 data to this and <TT
><A HREF="Codec-Zlib.html#v%3AfinishDeflate"
>finishDeflate</A
></TT
> to extract the final chunks of compressed
 data.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:withDeflateInput"
><A NAME="v%3AwithDeflateInput"
></A
></A
><B
>withDeflateInput</B
> ::  <A HREF="Codec-Zlib.html#t%3ADeflate"
>Deflate</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
> -&gt; (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a</TD
></TR
><TR
><TD CLASS="doc"
><P
>Feed the given <TT
><A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
></TT
> to the deflater. This function takes a
 function argument which takes a &quot;popper&quot;. A popper is an IO action that
 will return the next bit of deflated data, returning <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#v%3ANothing"
>Nothing</A
></TT
> when there is
 no more data to be popped.
</P
><P
>Note that this function automatically buffers the output to
 <TT
>defaultChunkSize</TT
>, and therefore you won't get any data from the popper
 until that much compressed data is available. After you have fed all of the
 decompressed data to this function, you can extract your final chunks of
 compressed data using <TT
><A HREF="Codec-Zlib.html#v%3AfinishDeflate"
>finishDeflate</A
></TT
>.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:finishDeflate"
><A NAME="v%3AfinishDeflate"
></A
></A
><B
>finishDeflate</B
> ::  <A HREF="Codec-Zlib.html#t%3ADeflate"
>Deflate</A
> -&gt; (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.5/Data-ByteString.html#t%3AByteString"
>ByteString</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/System-IO.html#t%3AIO"
>IO</A
> a</TD
></TR
><TR
><TD CLASS="doc"
>As explained in <TT
><A HREF="Codec-Zlib.html#v%3AwithDeflateInput"
>withDeflateInput</A
></TT
>, deflation buffers your compressed
 data. After you call <TT
><A HREF="Codec-Zlib.html#v%3AwithDeflateInput"
>withDeflateInput</A
></TT
> with your last chunk of decompressed
 data, we need to flush the rest of the data waiting to be deflated. This
 function takes a function parameter which accepts a &quot;popper&quot;, just like
 <TT
><A HREF="Codec-Zlib.html#v%3AwithDeflateInput"
>withDeflateInput</A
></TT
>.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="3"
><A NAME="3"
>Data types
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:WindowBits"
><A NAME="t%3AWindowBits"
></A
></A
><B
>WindowBits</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>This specifies the size of the compression window. Larger values of this
 parameter result in better compression at the expense of higher memory
 usage.
</P
><P
>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 <TT
>8..15</TT
> which corresponds
 to compression window sizes of 256b to 32Kb. The default is 15 which is also
 the maximum size.
</P
><P
>The total amount of memory used depends on the window bits and the
 <TT
><A HREF="/usr/share/doc/ghc/html/libraries/zlib-0.5.2.0/Codec-Compression-Zlib-Internal.html#t%3AMemoryLevel"
>MemoryLevel</A
></TT
>. See the <TT
><A HREF="/usr/share/doc/ghc/html/libraries/zlib-0.5.2.0/Codec-Compression-Zlib-Internal.html#t%3AMemoryLevel"
>MemoryLevel</A
></TT
> for the details.
</P
></TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:WindowBits"
><A NAME="v%3AWindowBits"
></A
></A
><B
>WindowBits</B
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v:defaultWindowBits"
><A NAME="v%3AdefaultWindowBits"
></A
></A
><B
>defaultWindowBits</B
> :: <A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
></TD
></TR
><TR
><TD CLASS="doc"
>The default <TT
><A HREF="Codec-Zlib.html#t%3AWindowBits"
>WindowBits</A
></TT
> is 15 which is also the maximum size.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:ZlibException"
><A NAME="t%3AZlibException"
></A
></A
><B
>ZlibException</B
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>Exception that can be thrown from the FFI code. The parameter is the
 numerical error code from the zlib library. Quoting the zlib.h file
 directly:
</P
><UL
><LI
> #define Z_OK            0
</LI
><LI
> #define Z_STREAM_END    1
</LI
><LI
> #define Z_NEED_DICT     2
</LI
><LI
> #define Z_ERRNO        (-1)
</LI
><LI
> #define Z_STREAM_ERROR (-2)
</LI
><LI
> #define Z_DATA_ERROR   (-3)
</LI
><LI
> #define Z_MEM_ERROR    (-4)
</LI
><LI
> #define Z_BUF_ERROR    (-5)
</LI
><LI
> #define Z_VERSION_ERROR (-6)
</LI
></UL
></TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:ZlibException"
><A NAME="v%3AZlibException"
></A
></A
><B
>ZlibException</B
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:ZlibException')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:ZlibException" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Text-Show.html#t%3AShow"
>Show</A
> <A HREF="Codec-Zlib.html#t%3AZlibException"
>ZlibException</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Data-Typeable.html#t%3ATypeable"
>Typeable</A
> <A HREF="Codec-Zlib.html#t%3AZlibException"
>ZlibException</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.0/Control-Exception-Base.html#t%3AException"
>Exception</A
> <A HREF="Codec-Zlib.html#t%3AZlibException"
>ZlibException</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.0</TD
></TR
></TABLE
></BODY
></HTML
>