/usr/share/doc/libghc-missingh-doc/html/Data-Bits-Utils.html is in libghc-missingh-doc 1.2.1.0-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 15 16 | <!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.Bits.Utils</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-Bits-Utils.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Bits-Utils.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">MissingH-1.2.1.0: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable to platforms with rawSystem</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>John Goerzen <jgoerzen@complete.org> </td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Data.Bits.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Bit-related utilities
</p><p>Written by John Goerzen, jgoerzen@complete.org
</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:getBytes">getBytes</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Bounded">Bounded</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bits.html#t:Bits">Bits</a> a) => a -> [a]</li><li class="src short"><a href="#v:fromBytes">fromBytes</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bits.html#t:Bits">Bits</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => [a] -> a</li><li class="src short"><a href="#v:c2w8">c2w8</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a></li><li class="src short"><a href="#v:s2w8">s2w8</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>]</li><li class="src short"><a href="#v:w82c">w82c</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:w82s">w82s</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:getBytes" class="def">getBytes</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Bounded">Bounded</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bits.html#t:Bits">Bits</a> a) => a -> [a]<a href="src/Data-Bits-Utils.html#getBytes" class="link">Source</a></p><div class="doc"><p>Returns a list representing the bytes that comprise a data type.
</p><p>Example:
</p><pre> getBytes (0x12345678::Int) -> [0x12, 0x34, 0x56, 0x78]
</pre></div></div><div class="top"><p class="src"><a name="v:fromBytes" class="def">fromBytes</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bits.html#t:Bits">Bits</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => [a] -> a<a href="src/Data-Bits-Utils.html#fromBytes" class="link">Source</a></p><div class="doc"><p>The opposite of <code><a href="Data-Bits-Utils.html#v:getBytes">getBytes</a></code>, this function builds a number based on
its component bytes.
</p><p>Results are undefined if any components of the input list are > 0xff!
</p></div></div><div class="top"><p class="src"><a name="v:c2w8" class="def">c2w8</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a><a href="src/Data-Bits-Utils.html#c2w8" class="link">Source</a></p><div class="doc"><p>Converts a Char to a Word8.
</p></div></div><div class="top"><p class="src"><a name="v:s2w8" class="def">s2w8</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>]<a href="src/Data-Bits-Utils.html#s2w8" class="link">Source</a></p><div class="doc"><p>Converts a String to a [Word8].
</p></div></div><div class="top"><p class="src"><a name="v:w82c" class="def">w82c</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Data-Bits-Utils.html#w82c" class="link">Source</a></p><div class="doc"><p>Converts a Word8 to a Char.
</p></div></div><div class="top"><p class="src"><a name="v:w82s" class="def">w82s</a> :: [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Data-Bits-Utils.html#w82s" class="link">Source</a></p><div class="doc"><p>Converts a [Word8] to a String.
</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>
|