natural package:dhall
Decode a
Natural.
>>> input natural "42"
42
Natural number
Invariant: numbers <= 0xffffffffffffffff use the
NS
constructor
Parse a
Natural literal
This corresponds to the
natural-literal rule from the
official grammar
NaturalBuild ~ Natural/build
NaturalEven ~ Natural/even
NaturalFold ~ Natural/fold
NaturalIsZero ~ Natural/isZero
NaturalShow ~ Natural/show
NaturalSubtract ~ Natural/subtract
NaturalToInteger ~ Natural/toInteger
Parse the Natural built-in
This corresponds to the Natural rule from the official
grammar
Parse the Natural/build built-in
This corresponds to the Natural-build rule from the official
grammar
Parse the Natural/even built-in
This corresponds to the Natural-even rule from the official
grammar
Parse the Natural/fold built-in
This corresponds to the Natural-fold rule from the official
grammar
Parse the Natural/isZero built-in
This corresponds to the Natural-isZero rule from the official
grammar
Parse the Natural/odd built-in
This corresponds to the Natural-odd rule from the official
grammar
Parse the Natural/show built-in
This corresponds to the Natural-show rule from the official
grammar
Parse the Natural/subtract built-in
This corresponds to the Natural-subtract rule from the
official grammar
Parse the Natural/toInteger built-in
This corresponds to the Natural-toInteger rule from the
official grammar