/usr/share/doc/libghc-byteable-doc/html/Data-Byteable.html is in libghc-byteable-doc 0.1.1-7.
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 | <!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.Byteable</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Byteable.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Byteable.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">byteable-0.1.1: Type class for sequence of bytes</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>License</th><td>BSD-style</td></tr><tr><th>Maintainer</th><td>Vincent Hanquez <vincent@snarc.org></td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>good</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Byteable</p></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </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">class</span> <a href="#t:Byteable">Byteable</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:constEqBytes">constEqBytes</a> :: <a href="Data-Byteable.html#t:Byteable">Byteable</a> a => a -> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:Byteable" class="def">Byteable</a> a <span class="keyword">where</span> <a href="src/Data-Byteable.html#Byteable" class="link">Source</a> <a href="#t:Byteable" class="selflink">#</a></p><div class="doc"><p>Class of things that can generate sequence of bytes</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Data-Byteable.html#v:toBytes">toBytes</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toBytes" class="def">toBytes</a> :: a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/Data-Byteable.html#toBytes" class="link">Source</a> <a href="#v:toBytes" class="selflink">#</a></p><div class="doc"><p>Convert a byteable type to a bytestring</p></div><p class="src"><a id="v:byteableLength" class="def">byteableLength</a> :: a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Data-Byteable.html#byteableLength" class="link">Source</a> <a href="#v:byteableLength" class="selflink">#</a></p><div class="doc"><p>Return the size of the byteable .</p></div><p class="src"><a id="v:withBytePtr" class="def">withBytePtr</a> :: a -> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> b) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> b <a href="src/Data-Byteable.html#withBytePtr" class="link">Source</a> <a href="#v:withBytePtr" class="selflink">#</a></p><div class="doc"><p>Provide a way to look at the data of a byteable type with a ptr.</p></div></div><div class="subs instances"><p id="control.i:Byteable" class="caption collapser" onclick="toggleSection('i:Byteable')">Instances</p><div id="section.i:Byteable" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:Byteable:Byteable:1" class="instance expander" onclick="toggleSection('i:ic:Byteable:Byteable:1')"></span> <a href="Data-Byteable.html#t:Byteable">Byteable</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></span> <a href="src/Data-Byteable.html#line-35" class="link">Source</a> <a href="#t:Byteable" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div id="section.i:ic:Byteable:Byteable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:toBytes">toBytes</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/Data-Byteable.html#toBytes" class="link">Source</a> <a href="#v:toBytes" class="selflink">#</a></p><p class="src"><a href="#v:byteableLength">byteableLength</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Data-Byteable.html#byteableLength" class="link">Source</a> <a href="#v:byteableLength" class="selflink">#</a></p><p class="src"><a href="#v:withBytePtr">withBytePtr</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Foreign-Ptr.html#t:Ptr">Ptr</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> b) -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> b <a href="src/Data-Byteable.html#withBytePtr" class="link">Source</a> <a href="#v:withBytePtr" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:constEqBytes" class="def">constEqBytes</a> :: <a href="Data-Byteable.html#t:Byteable">Byteable</a> a => a -> a -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-Byteable.html#constEqBytes" class="link">Source</a> <a href="#v:constEqBytes" class="selflink">#</a></p><div class="doc"><p>A constant time equality test for 2 byteable objects.</p><p>If objects are of 2 different sizes, the function will abort early
without comparing any bytes.</p><p>compared to == , this function will go over all the bytes
present before yielding a result even when knowing the
overall result early in the processing.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|