ParsecTools-0.0.2.0: Parsec combinators for more complex objects.

Safe HaskellSafe
LanguageHaskell98

Text.Parsec.Numbers

Description

Parsing of numbers.

Synopsis

Documentation

parseFloat :: GenParser Char st Double #

Parse a double value. This is exactly the same code as in Real World Haskell, p. 400.

TODO There are some strange 'floating point numbers' running around in the wild that can not be parsed using this code. (eg.: +.5) or (+0.5)

parseExtFloat :: GenParser Char st Double #

This parser should capture floating point numbers beginning with a +.

parseIntegral :: (Integral a, Read a) => GenParser Char st a #

Parse an integral value.

parseSignum :: GenParser Char st Char #

Parse the potential +/- before a number, returning ' ' for a +