/usr/share/doc/libghc-generic-deriving-doc/html/Generics-Deriving-Foldable.html is in libghc-generic-deriving-doc 1.4.0-2.
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 | <!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>Generics.Deriving.Foldable</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_Generics-Deriving-Foldable.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Generics-Deriving-Foldable.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">generic-deriving-1.4.0: Generic programming library for generalised deriving.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr></table><p class="caption">Generics.Deriving.Foldable</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Foldable class
</a></li><li><a href="#g:2">Default method
</a></li><li><a href="#g:3">Derived functions
</a></li></ul></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:GFoldable">GFoldable</a> t <span class="keyword">where</span><ul class="subs"><li><a href="#v:gfoldMap">gfoldMap</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> m => (a -> m) -> t a -> m</li><li><a href="#v:gfold">gfold</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> m => t m -> m</li><li><a href="#v:gfoldr">gfoldr</a> :: (a -> b -> b) -> b -> t a -> b</li><li><a href="#v:gfoldr-39-">gfoldr'</a> :: (a -> b -> b) -> b -> t a -> b</li><li><a href="#v:gfoldl">gfoldl</a> :: (a -> b -> a) -> a -> t b -> a</li><li><a href="#v:gfoldl-39-">gfoldl'</a> :: (a -> b -> a) -> a -> t b -> a</li><li><a href="#v:gfoldr1">gfoldr1</a> :: (a -> a -> a) -> t a -> a</li><li><a href="#v:gfoldl1">gfoldl1</a> :: (a -> a -> a) -> t a -> a</li></ul></li><li class="src short"><a href="#v:gfoldMapdefault">gfoldMapdefault</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic1">Generic1</a> t, GFoldable' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep1">Rep1</a> t), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> m) => (a -> m) -> t a -> m</li><li class="src short"><a href="#v:gtoList">gtoList</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t a -> [a]</li><li class="src short"><a href="#v:gconcat">gconcat</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t [a] -> [a]</li><li class="src short"><a href="#v:gconcatMap">gconcatMap</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> [b]) -> t a -> [b]</li><li class="src short"><a href="#v:gand">gand</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:gor">gor</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:gany">gany</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:gall">gall</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:gsum">gsum</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => t a -> a</li><li class="src short"><a href="#v:gproduct">gproduct</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => t a -> a</li><li class="src short"><a href="#v:gmaximum">gmaximum</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a) => t a -> a</li><li class="src short"><a href="#v:gmaximumBy">gmaximumBy</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ordering">Ordering</a>) -> t a -> a</li><li class="src short"><a href="#v:gminimum">gminimum</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a) => t a -> a</li><li class="src short"><a href="#v:gminimumBy">gminimumBy</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ordering">Ordering</a>) -> t a -> a</li><li class="src short"><a href="#v:gelem">gelem</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> a) => a -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:gnotElem">gnotElem</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> a) => a -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:gfind">gfind</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a</li></ul></div><div id="interface"><h1 id="g:1">Foldable class
</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:GFoldable" class="def">GFoldable</a> t <span class="keyword">where</span><a href="src/Generics-Deriving-Foldable.html#GFoldable" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:gfoldMap" class="def">gfoldMap</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> m => (a -> m) -> t a -> m<a href="src/Generics-Deriving-Foldable.html#gfoldMap" class="link">Source</a></p><p class="src"><a name="v:gfold" class="def">gfold</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> m => t m -> m<a href="src/Generics-Deriving-Foldable.html#gfold" class="link">Source</a></p><p class="src"><a name="v:gfoldr" class="def">gfoldr</a> :: (a -> b -> b) -> b -> t a -> b<a href="src/Generics-Deriving-Foldable.html#gfoldr" class="link">Source</a></p><p class="src"><a name="v:gfoldr-39-" class="def">gfoldr'</a> :: (a -> b -> b) -> b -> t a -> b<a href="src/Generics-Deriving-Foldable.html#gfoldr%27" class="link">Source</a></p><p class="src"><a name="v:gfoldl" class="def">gfoldl</a> :: (a -> b -> a) -> a -> t b -> a<a href="src/Generics-Deriving-Foldable.html#gfoldl" class="link">Source</a></p><p class="src"><a name="v:gfoldl-39-" class="def">gfoldl'</a> :: (a -> b -> a) -> a -> t b -> a<a href="src/Generics-Deriving-Foldable.html#gfoldl%27" class="link">Source</a></p><p class="src"><a name="v:gfoldr1" class="def">gfoldr1</a> :: (a -> a -> a) -> t a -> a<a href="src/Generics-Deriving-Foldable.html#gfoldr1" class="link">Source</a></p><p class="src"><a name="v:gfoldl1" class="def">gfoldl1</a> :: (a -> a -> a) -> t a -> a<a href="src/Generics-Deriving-Foldable.html#gfoldl1" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:GFoldable" class="caption collapser" onclick="toggleSection('i:GFoldable')">Instances</p><div id="section.i:GFoldable" class="show"><table><tr><td class="src"><a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> []</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a></td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">Default method
</h1><div class="top"><p class="src"><a name="v:gfoldMapdefault" class="def">gfoldMapdefault</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic1">Generic1</a> t, GFoldable' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep1">Rep1</a> t), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> m) => (a -> m) -> t a -> m<a href="src/Generics-Deriving-Foldable.html#gfoldMapdefault" class="link">Source</a></p></div><h1 id="g:3">Derived functions
</h1><div class="top"><p class="src"><a name="v:gtoList" class="def">gtoList</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t a -> [a]<a href="src/Generics-Deriving-Foldable.html#gtoList" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gconcat" class="def">gconcat</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t [a] -> [a]<a href="src/Generics-Deriving-Foldable.html#gconcat" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gconcatMap" class="def">gconcatMap</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> [b]) -> t a -> [b]<a href="src/Generics-Deriving-Foldable.html#gconcatMap" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gand" class="def">gand</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Generics-Deriving-Foldable.html#gand" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gor" class="def">gor</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => t <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Generics-Deriving-Foldable.html#gor" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gany" class="def">gany</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Generics-Deriving-Foldable.html#gany" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gall" class="def">gall</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Generics-Deriving-Foldable.html#gall" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gsum" class="def">gsum</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => t a -> a<a href="src/Generics-Deriving-Foldable.html#gsum" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gproduct" class="def">gproduct</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => t a -> a<a href="src/Generics-Deriving-Foldable.html#gproduct" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gmaximum" class="def">gmaximum</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a) => t a -> a<a href="src/Generics-Deriving-Foldable.html#gmaximum" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gmaximumBy" class="def">gmaximumBy</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ordering">Ordering</a>) -> t a -> a<a href="src/Generics-Deriving-Foldable.html#gmaximumBy" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gminimum" class="def">gminimum</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a) => t a -> a<a href="src/Generics-Deriving-Foldable.html#gminimum" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gminimumBy" class="def">gminimumBy</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ordering">Ordering</a>) -> t a -> a<a href="src/Generics-Deriving-Foldable.html#gminimumBy" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gelem" class="def">gelem</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> a) => a -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Generics-Deriving-Foldable.html#gelem" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gnotElem" class="def">gnotElem</a> :: (<a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> a) => a -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Generics-Deriving-Foldable.html#gnotElem" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gfind" class="def">gfind</a> :: <a href="Generics-Deriving-Foldable.html#t:GFoldable">GFoldable</a> t => (a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a>) -> t a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a<a href="src/Generics-Deriving-Foldable.html#gfind" class="link">Source</a></p></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>
|