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.
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.