This file is indexed.

/usr/share/doc/libghc-distributive-doc/html/Data-Distributive-Generic.html is in libghc-distributive-doc 0.5.0.2-3.

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.Distributive.Generic</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-Distributive-Generic.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Distributive-Generic.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">distributive-0.5.0.2: Distributive functors -- Dual to Traversable</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(C) 2011-2016 Edward Kmett</td></tr><tr><th>License</th><td>BSD-style (see the file LICENSE)</td></tr><tr><th>Maintainer</th><td>Edward Kmett &lt;ekmett@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.Distributive.Generic</p></div><div id="description"><p class="caption">Description</p><div class="doc empty">&nbsp;</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:GDistributive">GDistributive</a> g <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:genericDistribute">genericDistribute</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Generic1">Generic1</a> g, <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Rep1">Rep1</a> g)) =&gt; f (g a) -&gt; g (f a)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:GDistributive" class="def">GDistributive</a> g <span class="keyword">where</span> <a href="src/Data-Distributive-Generic.html#GDistributive" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></p><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src"><a href="Data-Distributive-Generic.html#v:gdistribute">gdistribute</a></p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:gdistribute" class="def">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f (g a) -&gt; g (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div><div class="subs instances"><p id="control.i:GDistributive" class="caption collapser" onclick="toggleSection('i:GDistributive')">Instances</p><div id="section.i:GDistributive" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:GDistributive:GDistributive:1" class="instance expander" onclick="toggleSection('i:ic:GDistributive:GDistributive:1')"></span> <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:U1">U1</a></span> <a href="src/Data-Distributive-Generic.html#line-38" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:GDistributive:GDistributive:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gdistribute">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:U1">U1</a> a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:U1">U1</a> (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:GDistributive:GDistributive:2" class="instance expander" onclick="toggleSection('i:ic:GDistributive:GDistributive:2')"></span> <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Par1">Par1</a></span> <a href="src/Data-Distributive-Generic.html#line-52" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:GDistributive:GDistributive:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gdistribute">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Par1">Par1</a> a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Par1">Par1</a> (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:GDistributive:GDistributive:3" class="instance expander" onclick="toggleSection('i:ic:GDistributive:GDistributive:3')"></span> <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> f =&gt; <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Rec1">Rec1</a> f)</span> <a href="src/Data-Distributive-Generic.html#line-56" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:GDistributive:GDistributive:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gdistribute">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Rec1">Rec1</a> f a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Rec1">Rec1</a> f (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:GDistributive:GDistributive:4" class="instance expander" onclick="toggleSection('i:ic:GDistributive:GDistributive:4')"></span> (<a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> a, <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> b) =&gt; <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t::-42-:">(:*:)</a> a b)</span> <a href="src/Data-Distributive-Generic.html#line-42" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:GDistributive:GDistributive:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gdistribute">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f ((a <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t::-42-:">:*:</a> b) a) -&gt; (a <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t::-42-:">:*:</a> b) (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:GDistributive:GDistributive:5" class="instance expander" onclick="toggleSection('i:ic:GDistributive:GDistributive:5')"></span> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> a, <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> a, <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> b) =&gt; <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t::.:">(:.:)</a> a b)</span> <a href="src/Data-Distributive-Generic.html#line-48" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:GDistributive:GDistributive:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gdistribute">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f ((a <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t::.:">:.:</a> b) a) -&gt; (a <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t::.:">:.:</a> b) (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:GDistributive:GDistributive:6" class="instance expander" onclick="toggleSection('i:ic:GDistributive:GDistributive:6')"></span> <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> f =&gt; <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:M1">M1</a> i c f)</span> <a href="src/Data-Distributive-Generic.html#line-60" class="link">Source</a> <a href="#t:GDistributive" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:GDistributive:GDistributive:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:gdistribute">gdistribute</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f =&gt; f (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:M1">M1</a> i c f a) -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:M1">M1</a> i c f (f a) <a href="src/Data-Distributive-Generic.html#gdistribute" class="link">Source</a> <a href="#v:gdistribute" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:genericDistribute" class="def">genericDistribute</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> f, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Generic1">Generic1</a> g, <a href="Data-Distributive-Generic.html#t:GDistributive">GDistributive</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Rep1">Rep1</a> g)) =&gt; f (g a) -&gt; g (f a) <a href="src/Data-Distributive-Generic.html#genericDistribute" class="link">Source</a> <a href="#v:genericDistribute" class="selflink">#</a></p><div class="doc"><p><code>distribute</code> derived from a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Generic1">Generic1</a></code> type</p><p>This can be used to easily produce a <code>Distributive</code> instance for a
 type with a <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/GHC-Generics.html#t:Generic1">Generic1</a></code> instance,</p><pre>data V2 a = V2 a a deriving (Show, Functor, Generic1)
instance Distributive V2' where distribute = genericDistribute</pre></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>