/usr/share/doc/libghc-generic-deriving-doc/html/Generics-Deriving-Enum.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 11 12 13 14 15 16 | <!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.Enum</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-Enum.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Generics-Deriving-Enum.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.Enum</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Generic enum class
</a></li><li><a href="#g:2">Default definitions for GEnum
</a></li><li><a href="#g:3">Generic Ix class
</a></li><li><a href="#g:4">Default definitions for GIx
</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:GEnum">GEnum</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:genum">genum</a> :: [a]</li></ul></li><li class="src short"><a href="#v:genumDefault">genumDefault</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => [a]</li><li class="src short"><a href="#v:toEnumDefault">toEnumDefault</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> a</li><li class="src short"><a href="#v:fromEnumDefault">fromEnumDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">class</span> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a => <a href="#t:GIx">GIx</a> a <span class="keyword">where</span><ul class="subs"><li><a href="#v:range">range</a> :: (a, a) -> [a]</li><li><a href="#v:index">index</a> :: (a, a) -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li><a href="#v:inRange">inRange</a> :: (a, a) -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li></ul></li><li class="src short"><a href="#v:rangeDefault">rangeDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => (a, a) -> [a]</li><li class="src short"><a href="#v:indexDefault">indexDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => (a, a) -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:inRangeDefault">inRangeDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => (a, a) -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li></ul></div><div id="interface"><h1 id="g:1">Generic enum class
</h1><div class="top"><p class="src"><span class="keyword">class</span> <a name="t:GEnum" class="def">GEnum</a> a <span class="keyword">where</span><a href="src/Generics-Deriving-Enum.html#GEnum" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:genum" class="def">genum</a> :: [a]<a href="src/Generics-Deriving-Enum.html#genum" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:GEnum" class="caption collapser" onclick="toggleSection('i:GEnum')">Instances</p><div id="section.i:GEnum" class="show"><table><tr><td class="src"><a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> a => <a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> [a]</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> a => <a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">Default definitions for GEnum
</h1><div class="top"><p class="src"><a name="v:genumDefault" class="def">genumDefault</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => [a]<a href="src/Generics-Deriving-Enum.html#genumDefault" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toEnumDefault" class="def">toEnumDefault</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -> a<a href="src/Generics-Deriving-Enum.html#toEnumDefault" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromEnumDefault" class="def">fromEnumDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a><a href="src/Generics-Deriving-Enum.html#fromEnumDefault" class="link">Source</a></p></div><h1 id="g:3">Generic Ix class
</h1><div class="top"><p class="src"><span class="keyword">class</span> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a => <a name="t:GIx" class="def">GIx</a> a <span class="keyword">where</span><a href="src/Generics-Deriving-Enum.html#GIx" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:range" class="def">range</a> :: (a, a) -> [a]<a href="src/Generics-Deriving-Enum.html#range" class="link">Source</a></p><div class="doc"><p>The list of values in the subrange defined by a bounding pair.
</p></div><p class="src"><a name="v:index" class="def">index</a> :: (a, a) -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a><a href="src/Generics-Deriving-Enum.html#index" class="link">Source</a></p><div class="doc"><p>The position of a subscript in the subrange.
</p></div><p class="src"><a name="v:inRange" class="def">inRange</a> :: (a, a) -> 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-Enum.html#inRange" class="link">Source</a></p><div class="doc"><p>Returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#v:True">True</a></code> the given subscript lies in the range defined
the bounding pair.
</p></div></div><div class="subs instances"><p id="control.i:GIx" class="caption collapser" onclick="toggleSection('i:GIx')">Instances</p><div id="section.i:GIx" class="show"><table><tr><td class="src"><a href="Generics-Deriving-Enum.html#t:GIx">GIx</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> a, <a href="Generics-Deriving-Enum.html#t:GIx">GIx</a> a) => <a href="Generics-Deriving-Enum.html#t:GIx">GIx</a> [a]</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="Generics-Deriving-Enum.html#t:GEnum">GEnum</a> a, <a href="Generics-Deriving-Enum.html#t:GIx">GIx</a> a) => <a href="Generics-Deriving-Enum.html#t:GIx">GIx</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:4">Default definitions for GIx
</h1><div class="top"><p class="src"><a name="v:rangeDefault" class="def">rangeDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => (a, a) -> [a]<a href="src/Generics-Deriving-Enum.html#rangeDefault" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:indexDefault" class="def">indexDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => (a, a) -> a -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a><a href="src/Generics-Deriving-Enum.html#indexDefault" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:inRangeDefault" class="def">inRangeDefault</a> :: (<a href="Generics-Deriving-Eq.html#t:GEq">GEq</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Generic">Generic</a> a, Enum' (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/GHC-Generics.html#t:Rep">Rep</a> a)) => (a, a) -> 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-Enum.html#inRangeDefault" 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>
|