/usr/share/doc/libghc-cereal-conduit-doc/html/Data-Conduit-Cereal.html is in libghc-cereal-conduit-doc 0.7.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!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.Cereal</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-Cereal.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Conduit-Cereal.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">cereal-conduit-0.7.2.2: Turn Data.Serialize Gets and Puts into Sources, Sinks, and Conduits</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Data.Conduit.Cereal</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Turn a <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> into a <code>Sink</code> and a <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Put">Put</a></code> into a <code>Source</code>
These functions are built upno the Data.Conduit.Cereal.Internal functions with default
implementations of <code>ErrorHandler</code> and <code>TerminationHandler</code>
</p><p>The default <code>ErrorHandler</code> and <code>TerminationHandler</code> both throw a <code><a href="Data-Conduit-Cereal.html#t:GetException">GetException</a></code>.
</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"><span class="keyword">data</span> <a href="#t:GetException">GetException</a> </li><li class="src short"><a href="#v:sinkGet">sinkGet</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a> r -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m r</li><li class="src short"><a href="#v:conduitGet">conduitGet</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a> o -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m o</li><li class="src short"><a href="#v:sourcePut">sourcePut</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Monad">Monad</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Put">Put</a> -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Producer">Producer</a> m <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:conduitPut">conduitPut</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Monad">Monad</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Conduit">Conduit</a> a m <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:GetException" class="def">GetException</a> <a href="src/Data-Conduit-Cereal.html#GetException" class="link">Source</a></p><div class="subs instances"><p id="control.i:GetException" class="caption collapser" onclick="toggleSection('i:GetException')">Instances</p><div id="section.i:GetException" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Conduit-Cereal.html#t:GetException">GetException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Data-Conduit-Cereal.html#t:GetException">GetException</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Data-Conduit-Cereal.html#t:GetException">GetException</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:sinkGet" class="def">sinkGet</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a> r -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m r<a href="src/Data-Conduit-Cereal.html#sinkGet" class="link">Source</a></p><div class="doc"><p>Convert a <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> into a <code>Sink</code>. The <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> will be streamed bytes until it returns <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#v:Done">Done</a></code> or <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#v:Fail">Fail</a></code>.
</p><p>If <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> succeed it will return the data read and unconsumed part of the input stream.
If the <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> fails due to deserialization error or early termination of the input stream it raise an error.
</p></div></div><div class="top"><p class="src"><a name="v:conduitGet" class="def">conduitGet</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a> o -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Conduit">Conduit</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m o<a href="src/Data-Conduit-Cereal.html#conduitGet" class="link">Source</a></p><div class="doc"><p>Run a <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> repeatedly on the input stream, producing an output stream of whatever the <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Get.html#t:Get">Get</a></code> outputs.
</p></div></div><div class="top"><p class="src"><a name="v:sourcePut" class="def">sourcePut</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Monad">Monad</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Put">Put</a> -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Producer">Producer</a> m <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Cereal.html#sourcePut" class="link">Source</a></p><div class="doc"><p>Convert a <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Put">Put</a></code> into a <code>Source</code>. Runs in constant memory.
</p></div></div><div class="top"><p class="src"><a name="v:conduitPut" class="def">conduitPut</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Monad.html#t:Monad">Monad</a> m => <a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Putter">Putter</a> a -> <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Conduit">Conduit</a> a m <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Data-Conduit-Cereal.html#conduitPut" class="link">Source</a></p><div class="doc"><p>Run a <code><a href="/usr/share/doc/libghc-cereal-doc/html/Data-Serialize-Put.html#t:Putter">Putter</a></code> repeatedly on the input stream, producing a concatenated <code>ByteString</code> stream.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|