/usr/share/doc/libghc-non-negative-doc/html/Numeric-NonNegative-Wrapper.html is in libghc-non-negative-doc 0.1.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 14 15 16 17 18 | <!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>Numeric.NonNegative.Wrapper</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_Numeric-NonNegative-Wrapper.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Numeric-NonNegative-Wrapper.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">non-negative-0.1.1: Non-negative numbers</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>Haskell 98</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Maintainer</th><td>haskell@henning-thielemann.de</td></tr><tr><th>Safe Haskell</th><td>Safe-Inferred</td></tr></table><p class="caption">Numeric.NonNegative.Wrapper</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A type for non-negative numbers.
It performs a run-time check at construction time (i.e. at run-time)
and is a member of the non-negative number type class
<code><a href="Numeric-NonNegative-Class.html#t:C">C</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">data</span> <a href="#t:T">T</a> a</li><li class="src short"><a href="#v:fromNumber">fromNumber</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a</li><li class="src short"><a href="#v:fromNumberMsg">fromNumberMsg</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -> a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a</li><li class="src short"><a href="#v:fromNumberClip">fromNumberClip</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a</li><li class="src short"><a href="#v:fromNumberUnsafe">fromNumberUnsafe</a> :: a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a</li><li class="src short"><a href="#v:toNumber">toNumber</a> :: <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a -> a</li><li class="src short"><span class="keyword">type</span> <a href="#t:Int">Int</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</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">type</span> <a href="#t:Integer">Integer</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Float">Float</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Float">Float</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Double">Double</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Ratio">Ratio</a> a = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ratio.html#t:Ratio">Ratio</a> a)</li><li class="src short"><span class="keyword">type</span> <a href="#t:Rational">Rational</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Rational">Rational</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:T" class="def">T</a> a <a href="src/Numeric-NonNegative-Wrapper.html#T" class="link">Source</a></p><div class="subs instances"><p id="control.i:T" class="caption collapser" onclick="toggleSection('i:T')">Instances</p><div id="section.i:T" class="show"><table><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Bounded">Bounded</a> a) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Bounded">Bounded</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Enum">Enum</a> a) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Enum">Enum</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Floating">Floating</a> a) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Floating">Floating</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Fractional">Fractional</a> a) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Fractional">Fractional</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integral">Integral</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Real">Real</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Real">Real</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:RealFrac">RealFrac</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:RealFrac">RealFrac</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => <a href="Numeric-NonNegative-Class.html#t:C">C</a> (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a, Arbitrary a) => Arbitrary (<a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:fromNumber" class="def">fromNumber</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a<a href="src/Numeric-NonNegative-Wrapper.html#fromNumber" class="link">Source</a></p><div class="doc"><p>Convert a number to a non-negative number.
If a negative number is given, an error is raised.
</p></div></div><div class="top"><p class="src"><a name="v:fromNumberMsg" class="def">fromNumberMsg</a><a href="src/Numeric-NonNegative-Wrapper.html#fromNumberMsg" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a></td><td class="doc"><p>name of the calling function to be used in the error message
</p></td></tr><tr><td class="src">-> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a</td><td class="doc empty"> </td></tr></table></div></div><div class="top"><p class="src"><a name="v:fromNumberClip" class="def">fromNumberClip</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Num">Num</a> a) => a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a<a href="src/Numeric-NonNegative-Wrapper.html#fromNumberClip" class="link">Source</a></p><div class="doc"><p>Convert a number to a non-negative number.
A negative number will be replaced by zero.
Use this function with care since it may hide bugs.
</p></div></div><div class="top"><p class="src"><a name="v:fromNumberUnsafe" class="def">fromNumberUnsafe</a> :: a -> <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a<a href="src/Numeric-NonNegative-Wrapper.html#fromNumberUnsafe" class="link">Source</a></p><div class="doc"><p>Wrap a number into a non-negative number without doing checks.
This routine exists entirely for efficiency reasons
and must be used only in cases where you are absolutely sure,
that the input number is non-negative.
</p></div></div><div class="top"><p class="src"><a name="v:toNumber" class="def">toNumber</a> :: <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> a -> a<a href="src/Numeric-NonNegative-Wrapper.html#toNumber" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Int" class="def">Int</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</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/Numeric-NonNegative-Wrapper.html#Int" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Integer" class="def">Integer</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a><a href="src/Numeric-NonNegative-Wrapper.html#Integer" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Float" class="def">Float</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Float">Float</a><a href="src/Numeric-NonNegative-Wrapper.html#Float" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Double" class="def">Double</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a><a href="src/Numeric-NonNegative-Wrapper.html#Double" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Ratio" class="def">Ratio</a> a = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ratio.html#t:Ratio">Ratio</a> a)<a href="src/Numeric-NonNegative-Wrapper.html#Ratio" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Rational" class="def">Rational</a> = <a href="Numeric-NonNegative-Wrapper.html#t:T">T</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Rational">Rational</a><a href="src/Numeric-NonNegative-Wrapper.html#Rational" 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>
|