Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 8e73407480c13630e1be71907a07fad6 > files > 55

ghc-conduit-devel-0.2.2-1.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Conduit.Binary</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Conduit-Binary.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Conduit-Binary.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">conduit-0.2.2: Streaming data processing library.</p></div><div id="content"><div id="module-header"><p class="caption">Data.Conduit.Binary</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Functions for interacting with bytes.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:sourceFile">sourceFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:sourceHandle">sourceHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:sourceIOHandle">sourceIOHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:sourceFileRange">sourceFileRange</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:sinkFile">sinkFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:sinkHandle">sinkHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:sinkIOHandle">sinkIOHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:conduitFile">conduitFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:isolate">isolate</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:openFile">openFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IOMode">IOMode</a> -&gt; <a href="Control-Monad-Trans-Resource.html#t:ResourceT">ResourceT</a> m <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></li><li class="src short"><a href="#v:head">head</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a>)</li><li class="src short"><a href="#v:takeWhile">takeWhile</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:dropWhile">dropWhile</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:take">take</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:lines">lines</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:sourceFile" class="def">sourceFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#sourceFile" class="link">Source</a></p><div class="doc"><p>Stream the contents of a file as binary data.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:sourceHandle" class="def">sourceHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#sourceHandle" class="link">Source</a></p><div class="doc"><p>Stream the contents of a <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code> as binary data. Note that this
 function will <em>not</em> automatically close the <code>Handle</code> when processing
 completes, since it did not acquire the <code>Handle</code> in the first place.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:sourceIOHandle" class="def">sourceIOHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#sourceIOHandle" class="link">Source</a></p><div class="doc"><p>An alternative to <code><a href="Data-Conduit-Binary.html#v:sourceHandle">sourceHandle</a></code>.
 Instead of taking a pre-opened <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code>, it takes an action that opens
 a <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code> (in read mode), so that it can open it only when needed
 and close it as soon as possible.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:sourceFileRange" class="def">sourceFileRange</a><a href="src/Data-Conduit-Binary.html#sourceFileRange" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>Offset
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Integer">Integer</a></td><td class="doc"><p>Maximum count
</p></td></tr><tr><td class="src">-&gt; <a href="Data-Conduit.html#t:Source">Source</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Stream the contents of a file as binary data, starting from a certain
 offset and only consuming up to a certain number of bytes.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:sinkFile" class="def">sinkFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Data-Conduit-Binary.html#sinkFile" class="link">Source</a></p><div class="doc"><p>Stream all incoming data to the given file.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:sinkHandle" class="def">sinkHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Data-Conduit-Binary.html#sinkHandle" class="link">Source</a></p><div class="doc"><p>Stream all incoming data to the given <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code>. Note that this function
 will <em>not</em> automatically close the <code>Handle</code> when processing completes.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:sinkIOHandle" class="def">sinkIOHandle</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Data-Conduit-Binary.html#sinkIOHandle" class="link">Source</a></p><div class="doc"><p>An alternative to <code><a href="Data-Conduit-Binary.html#v:sinkHandle">sinkHandle</a></code>.
 Instead of taking a pre-opened <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code>, it takes an action that opens
 a <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code> (in write mode), so that it can open it only when needed
 and close it as soon as possible.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:conduitFile" class="def">conduitFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#conduitFile" class="link">Source</a></p><div class="doc"><p>Stream the contents of the input to a file, and also send it along the
 pipeline. Similar in concept to the Unix command <code>tee</code>.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:isolate" class="def">isolate</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#isolate" class="link">Source</a></p><div class="doc"><p>Ensure that only up to the given number of bytes are consume by the inner
 sink. Note that this does <em>not</em> ensure that all of those bytes are in fact
 consumed.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:openFile" class="def">openFile</a> :: <a href="Control-Monad-Trans-Resource.html#t:ResourceIO">ResourceIO</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IOMode">IOMode</a> -&gt; <a href="Control-Monad-Trans-Resource.html#t:ResourceT">ResourceT</a> m <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a><a href="src/Data-Conduit-Binary.html#openFile" class="link">Source</a></p><div class="doc"><p>Open a file <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/GHC-IO-Handle.html#t:Handle">Handle</a></code> safely by automatically registering a release
 action.
</p><p>While you are not required to call <code>hClose</code> on the resulting handle, you
 should do so as early as possible to free scarce resources.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:head" class="def">head</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a>)<a href="src/Data-Conduit-Binary.html#head" class="link">Source</a></p><div class="doc"><p>Return the next byte from the stream, if available.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:takeWhile" class="def">takeWhile</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#takeWhile" class="link">Source</a></p><div class="doc"><p>Return all bytes while the predicate returns <code>True</code>.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:dropWhile" class="def">dropWhile</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word8">Word8</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Data-Conduit-Binary.html#dropWhile" class="link">Source</a></p><div class="doc"><p>Ignore all bytes while the predicate returns <code>True</code>.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:take" class="def">take</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Conduit.html#t:Sink">Sink</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#take" class="link">Source</a></p><div class="doc"><p>Take the given number of bytes, if available.
</p><p>Since 0.2.0
</p></div></div><div class="top"><p class="src"><a name="v:lines" class="def">lines</a> :: <a href="Control-Monad-Trans-Resource.html#t:Resource">Resource</a> m =&gt; <a href="Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="/usr/share/doc/ghc/html/libraries/bytestring-0.9.1.10/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Binary.html#lines" class="link">Source</a></p><div class="doc"><p>Split the input bytes into lines. In other words, split on the LF byte
 (10), and strip it from the output.
</p><p>Since 0.2.0
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>