natural -is:module

This lexeme parser parses a natural number (a non-negative whole number). Returns the value of the number. The number can be specified in decimal, hexadecimal or octal. The number is parsed according to the grammar rules in the Haskell report.
This token parser parses a natural number (a non-negative whole number). Returns the value of the number. The number can be specified in decimal, hexadecimal or octal. The number is parsed according to the grammar rules in the Haskell report.
Decode a Natural.
>>> input natural "42"
42
Codec for natural values.
Undefined Natural value.
Not on Stackage, so not searched. Natural number
Decode JSON number to GHC's Natural (non negative) This function requires base >= 4.8.0
Encode JSON number to GHC's Natural (non negative) This function requires base >= 4.8.0
Natural number Invariant: numbers <= 0xffffffffffffffff use the NS constructor
Type representing arbitrary-precision non-negative integers.
>>> 2^100 :: Natural
1267650600228229401496703205376
Operations whose result would be negative throw (Underflow :: ArithException),
>>> -1 :: Natural
*** Exception: arithmetic underflow
Natural                                  ~  Natural
Natural number Invariant: numbers <= 0xffffffffffffffff use the NS constructor
Type representing arbitrary-precision non-negative integers. Operations whose result would be negative throw (Underflow :: ArithException). The Natural type has become part of base starting with `base-4.8.0.0`.
Natural numbers (including 0): 0, 1, 2, 3, 4, 5, 6, 7, ... Internally, this type is represented as an Integer allowing for an infinity of possible values. Its Enum, Listable and Num instances only produce non-negative values. When x < y then x - y = 0.
Type representing arbitrary-precision non-negative integers. Operations whose result would be negative throw (Underflow :: ArithException).