natural is:exact
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.
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