This file is indexed.

/usr/share/doc/libghc-listlike-doc/html/Data-ListLike-Utils.html is in libghc-listlike-doc 4.5.1-1build2.

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
<!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.ListLike.Utils</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-ListLike-Utils.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-ListLike-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">ListLike-4.5.1: Generic support for list-like structures</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>Copyright (C) 2007 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Lato &lt;jwlato@gmail.com&gt;</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.ListLike.Utils</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utilities for <code><a href="Data-ListLike.html#v:ListLike">ListLike</a></code> and friends.  More functions
similar to <code><a href="Data.html#v:List">List</a></code> but not part of the main typeclass.</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:and">and</a> :: <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> =&gt; full -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:or">or</a> :: <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> =&gt; full -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:sum">sum</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> a, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a) =&gt; full -&gt; a</li><li class="src short"><a href="#v:product">product</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> a, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a) =&gt; full -&gt; a</li><li class="src short"><a href="#v:zip">zip</a> :: (<a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full item, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> fullb itemb, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> result (item, itemb)) =&gt; full -&gt; fullb -&gt; result</li><li class="src short"><a href="#v:zipWith">zipWith</a> :: (<a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full item, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> fullb itemb, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> result resultitem) =&gt; (item -&gt; itemb -&gt; resultitem) -&gt; full -&gt; fullb -&gt; result</li><li class="src short"><a href="#v:unzip">unzip</a> :: (<a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full (itema, itemb), <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> ra itema, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> rb itemb) =&gt; full -&gt; (ra, rb)</li><li class="src short"><a href="#v:sequence_">sequence_</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="Data-ListLike-FoldableLL.html#t:FoldableLL">FoldableLL</a> full (m item)) =&gt; full -&gt; m ()</li><li class="src short"><a href="#v:toMonadPlus">toMonadPlus</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a) =&gt; full -&gt; m (a, full)</li><li class="src short"><a href="#v:list">list</a> :: <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a =&gt; b -&gt; (a -&gt; full -&gt; b) -&gt; full -&gt; b</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:and" class="def">and</a> :: <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> =&gt; full -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-ListLike-Utils.html#and" class="link">Source</a> <a href="#v:and" class="selflink">#</a></p><div class="doc"><p>Returns True if all elements are True</p></div></div><div class="top"><p class="src"><a id="v:or" class="def">or</a> :: <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> =&gt; full -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Data-ListLike-Utils.html#or" class="link">Source</a> <a href="#v:or" class="selflink">#</a></p><div class="doc"><p>Returns True if any element is True</p></div></div><div class="top"><p class="src"><a id="v:sum" class="def">sum</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> a, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a) =&gt; full -&gt; a <a href="src/Data-ListLike-Utils.html#sum" class="link">Source</a> <a href="#v:sum" class="selflink">#</a></p><div class="doc"><p>The sum of the list</p></div></div><div class="top"><p class="src"><a id="v:product" class="def">product</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Num">Num</a> a, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a) =&gt; full -&gt; a <a href="src/Data-ListLike-Utils.html#product" class="link">Source</a> <a href="#v:product" class="selflink">#</a></p><div class="doc"><p>The product of the list</p></div></div><div class="top"><p class="src"><a id="v:zip" class="def">zip</a> :: (<a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full item, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> fullb itemb, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> result (item, itemb)) =&gt; full -&gt; fullb -&gt; result <a href="src/Data-ListLike-Base.html#zip" class="link">Source</a> <a href="#v:zip" class="selflink">#</a></p><div class="doc"><p>Takes two lists and returns a list of corresponding pairs. </p></div></div><div class="top"><p class="src"><a id="v:zipWith" class="def">zipWith</a> :: (<a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full item, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> fullb itemb, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> result resultitem) =&gt; (item -&gt; itemb -&gt; resultitem) -&gt; full -&gt; fullb -&gt; result <a href="src/Data-ListLike-Base.html#zipWith" class="link">Source</a> <a href="#v:zipWith" class="selflink">#</a></p><div class="doc"><p>Takes two lists and combines them with a custom combining function </p></div></div><div class="top"><p class="src"><a id="v:unzip" class="def">unzip</a> :: (<a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full (itema, itemb), <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> ra itema, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> rb itemb) =&gt; full -&gt; (ra, rb) <a href="src/Data-ListLike-Utils.html#unzip" class="link">Source</a> <a href="#v:unzip" class="selflink">#</a></p><div class="doc"><p>Converts a list of pairs into two separate lists of elements </p></div></div><div class="top"><p class="src"><a id="v:sequence_" class="def">sequence_</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:Monad">Monad</a> m, <a href="Data-ListLike-FoldableLL.html#t:FoldableLL">FoldableLL</a> full (m item)) =&gt; full -&gt; m () <a href="src/Data-ListLike-FoldableLL.html#sequence_" class="link">Source</a> <a href="#v:sequence_" class="selflink">#</a></p><div class="doc"><p>Evaluate each action, ignoring the results.
   Same as <code><code><a href="Data-ListLike-FoldableLL.html#v:mapM_">mapM_</a></code> <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Function.html#v:id">id</a></code></code>. </p></div></div><div class="top"><p class="src"><a id="v:toMonadPlus" class="def">toMonadPlus</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Control-Monad.html#t:MonadPlus">MonadPlus</a> m, <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a) =&gt; full -&gt; m (a, full) <a href="src/Data-ListLike-Utils.html#toMonadPlus" class="link">Source</a> <a href="#v:toMonadPlus" class="selflink">#</a></p><div class="doc"><p>Converts to a MonadPlus instance</p></div></div><div class="top"><p class="src"><a id="v:list" class="def">list</a> :: <a href="Data-ListLike-Base.html#t:ListLike">ListLike</a> full a =&gt; b -&gt; (a -&gt; full -&gt; b) -&gt; full -&gt; b <a href="src/Data-ListLike-Utils.html#list" class="link">Source</a> <a href="#v:list" class="selflink">#</a></p><div class="doc"><p>List-like destructor (like Data.Maybe.maybe)</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>