-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parsec combinators for more complex objects. -- -- Combined parsers for complex objects: floating point, and integral -- numbers. @package ParsecTools @version 0.0.2.0 -- | Parsing of numbers. module Text.Parsec.Numbers -- | 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) parseFloat :: GenParser Char st Double -- | This parser should capture floating point numbers beginning with a -- +. parseExtFloat :: GenParser Char st Double -- | Parse an integral value. parseIntegral :: (Integral a, Read a) => GenParser Char st a -- | Parse the potential +/- before a number, returning ' ' for a + parseSignum :: GenParser Char st Char