This file is indexed.

/usr/share/doc/libghc-monadrandom-doc/html/Control-Monad-Random-Class.html is in libghc-monadrandom-doc 0.4.1-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
<!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>Control.Monad.Random.Class</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_Control-Monad-Random-Class.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Control-Monad-Random-Class.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">MonadRandom-0.4.1: Random-number generation monad.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>2006-2007 Cale Gibbard, Russell O'Connor, Dan Doel, Remi Turk, Eric Kidd.</td></tr><tr><th>License</th><td>OtherLicense</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>non-portable (multi-parameter type classes, undecidable instances)</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Control.Monad.Random.Class</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A type class for random number generation monads.  See
<a href="http://www.haskell.org/haskellwiki/NewMonads/MonadRandom">http://www.haskell.org/haskellwiki/NewMonads/MonadRandom</a> for the original
version of this code.</p><p>Instances of this type class include <code><a href="Control-Monad-Random.html#v:Rand">Rand</a></code> and
monads created using <code><a href="Control-Monad-Random.html#v:RandT">RandT</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">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; <a href="#t:MonadRandom">MonadRandom</a> m <span class="keyword">where</span><ul class="subs"><li><a href="#v:getRandom">getRandom</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; m a</li><li><a href="#v:getRandoms">getRandoms</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; m [a]</li><li><a href="#v:getRandomR">getRandomR</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; (a, a) -&gt; m a</li><li><a href="#v:getRandomRs">getRandomRs</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; (a, a) -&gt; m [a]</li></ul></li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; <a href="#t:MonadSplit">MonadSplit</a> s m | m -&gt; s <span class="keyword">where</span><ul class="subs"><li><a href="#v:getSplit">getSplit</a> :: m s</li></ul></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; <a name="t:MonadRandom" class="def">MonadRandom</a> m <span class="keyword">where</span> <a href="src/Control-Monad-Random-Class.html#MonadRandom" class="link">Source</a></p><div class="doc"><p>An interface to random number generation monads.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:getRandom" class="def">getRandom</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; m a <a href="src/Control-Monad-Random-Class.html#getRandom" class="link">Source</a></p><div class="doc"><p>Return a randomly-selected value of type <code>a</code>.  See
 <code><a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#v:random">random</a></code> for details.</p></div><p class="src"><a name="v:getRandoms" class="def">getRandoms</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; m [a] <a href="src/Control-Monad-Random-Class.html#getRandoms" class="link">Source</a></p><div class="doc"><p>Return an infinite stream of random values of type <code>a</code>.  See
 <code><a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#v:randoms">randoms</a></code> for details.</p></div><p class="src"><a name="v:getRandomR" class="def">getRandomR</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; (a, a) -&gt; m a <a href="src/Control-Monad-Random-Class.html#getRandomR" class="link">Source</a></p><div class="doc"><p>Return a randomly-selected value of type <code>a</code> in the range
 <em>[lo,hi]</em>.  See <code><a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#v:randomR">randomR</a></code> for details.</p></div><p class="src"><a name="v:getRandomRs" class="def">getRandomRs</a> :: <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:Random">Random</a> a =&gt; (a, a) -&gt; m [a] <a href="src/Control-Monad-Random-Class.html#getRandomRs" class="link">Source</a></p><div class="doc"><p>Return an infinite stream of randomly-selected value of type <code>a</code>
 in the range <em>[lo,hi]</em>.  See <code><a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#v:randomRs">randomRs</a></code> for details.</p></div></div><div class="subs instances"><p id="control.i:MonadRandom" class="caption collapser" onclick="toggleSection('i:MonadRandom')">Instances</p><div id="section.i:MonadRandom" class="show"><table><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:RandomGen">RandomGen</a> g) =&gt; <a href="Control-Monad-Random-Class.html#t:MonadRandom">MonadRandom</a> (<a href="Control-Monad-Random.html#t:RandT">RandT</a> g m)</span> <a href="src/Control-Monad-Random-Class.html#line-91" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m =&gt; <a name="t:MonadSplit" class="def">MonadSplit</a> s m | m -&gt; s <span class="keyword">where</span> <a href="src/Control-Monad-Random-Class.html#MonadSplit" class="link">Source</a></p><div class="doc"><p>An interface to monads with splittable state (as most random number generation monads will have).
 The intention is that the <code><a href="Control-Monad-Random-Class.html#v:getSplit">getSplit</a></code> action splits the state, returning one half of the result, and
 setting the new state to the other.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:getSplit" class="def">getSplit</a> :: m s <a href="src/Control-Monad-Random-Class.html#getSplit" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:MonadSplit" class="caption collapser" onclick="toggleSection('i:MonadSplit')">Instances</p><div id="section.i:MonadSplit" class="show"><table><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="file:///usr/share/doc/libghc-random-doc/html/System-Random.html#t:RandomGen">RandomGen</a> g) =&gt; <a href="Control-Monad-Random-Class.html#t:MonadSplit">MonadSplit</a> g (<a href="Control-Monad-Random.html#t:RandT">RandT</a> g m)</span> <a href="src/Control-Monad-Random-Class.html#line-98" class="link">Source</a></td><td class="doc empty">&nbsp;</td></tr></table></div></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>