
Number.NonNegative  Portability  Haskell 98  Stability  stable  Maintainer  haskell@henningthielemann.de 



Description 
A type for nonnegative numbers.
It performs a runtime check at construction time (i.e. at runtime)
and is a member of the nonnegative number type class
Numeric.NonNegative.Class.C.


Synopsis 



Documentation 


Instances  (Ord a, Num a, Bounded a) => Bounded (T a)  (Ord a, Num a, Enum a) => Enum (T a)  Eq a => Eq (T a)  (Ord a, Floating a) => Floating (T a)  (Ord a, Fractional a) => Fractional (T a)  Integral a => Integral (T a)  (Ord a, Num a) => Num (T a)  Ord a => Ord (T a)  Real a => Real (T a)  RealFrac a => RealFrac (T a)  Show a => Show (T a)  (Num a, Arbitrary a) => Arbitrary (T a)  (Ord a, Num a) => C (T a)  (Ord a, C a) => C (T a)  (Ord a, C a) => C (T a)  C a => C (T a)  (Ord a, C a) => C (T a)  (C a, C a) => C (T a)  (Ord a, C a) => C (T a)  (Ord a, C a) => C (T a)  C a => C (T a)  C a => C (T a)  C a => C (T a)  (Ord a, C a) => C (T a)  C a => C (T a)  (Ord a, C a) => C (T a) 




Convert a number to a nonnegative number.
If a negative number is given, an error is raised.






Convert a number to a nonnegative number.
A negative number will be replaced by zero.
Use this function with care since it may hide bugs.



Wrap a number into a nonnegative 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 nonnegative.
















Produced by Haddock version 2.6.0 