/usr/share/doc/libghc-utility-ht-doc/html/Data-Bool-HT.html is in libghc-utility-ht-doc 0.0.11-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 | <!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.Bool.HT</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-Bool-HT.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Bool-HT.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">utility-ht-0.0.11: Various small helper functions for Lists, Maybes, Tuples, Functions</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Bool.HT</p></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:if-39-">if'</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> a -> a -> a</li><li class="src short"><a href="#v:ifThenElse">ifThenElse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> a -> a -> a</li><li class="src short"><a href="#v:select">select</a> :: a -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>, a)] -> a</li><li class="src short"><a href="#v:-63-:">(?:)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> (a, a) -> a</li><li class="src short"><a href="#v:implies">implies</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:if-39-" class="def">if'</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> a -> a -> a <a href="src/Data-Bool-HT-Private.html#if%27" class="link">Source</a></p><div class="doc"><p><code>if-then-else</code> as function.</p><p>Example:</p><pre>if' (even n) "even" $
if' (isPrime n) "prime" $
"boring"</pre></div></div><div class="top"><p class="src"><a name="v:ifThenElse" class="def">ifThenElse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> a -> a -> a <a href="src/Data-Bool-HT-Private.html#ifThenElse" class="link">Source</a></p><div class="doc"><p>The same as <code><a href="Data-Bool-HT.html#v:if-39-">if'</a></code>, but the name is chosen
such that it can be used for GHC-7.0's rebindable if-then-else syntax.</p></div></div><div class="top"><p class="src"><a name="v:select" class="def">select</a> :: a -> [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>, a)] -> a <a href="src/Data-Bool-HT-Private.html#select" class="link">Source</a></p><div class="doc"><p>From a list of expressions choose the one,
whose condition is true.</p><p>Example:</p><pre>select "boring" $
(even n, "even") :
(isPrime n, "prime") :
[]</pre></div></div><div class="top"><p class="src"><a name="v:-63-:" class="def">(?:)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> (a, a) -> a <span class="fixity">infixr 1</span><span class="rightedge"></span> <a href="src/Data-Bool-HT-Private.html#%3F%3A" class="link">Source</a></p><div class="doc"><p>Like the <code>?</code> operator of the C progamming language.
Example: <code>bool ?: ("yes", "no")</code>.</p></div></div><div class="top"><p class="src"><a name="v:implies" class="def">implies</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a> <span class="fixity">infixr 1</span><span class="rightedge"></span> <a href="src/Data-Bool-HT-Private.html#implies" class="link">Source</a></p><div class="doc"><p>Logical operator for implication.</p><p>Funnily because of the ordering of <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a></code> it holds <code>implies == (<=)</code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|