Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Safe-Infered |
- module Text.Trifecta.Parser.Token.Combinators
- decimal :: MonadParser m => m Integer
- hexadecimal :: MonadParser m => m Integer
- octal :: MonadParser m => m Integer
Documentation
Text.Trifecta.Parser.Token.Prim
decimal :: MonadParser m => m IntegerSource
Parses a positive whole number in the decimal system. Returns the value of the number.
hexadecimal :: MonadParser m => m IntegerSource
Parses a positive whole number in the hexadecimal system. The number should be prefixed with "x" or "X". Returns the value of the number.
octal :: MonadParser m => m IntegerSource
Parses a positive whole number in the octal system. The number should be prefixed with "o" or "O". Returns the value of the number.