Portability | non-portable (uses Text.ParserCombinators.ReadP) |
---|---|
Stability | provisional |
Maintainer | libraries@haskell.org |
Safe Haskell | Trustworthy |
The cut-down Haskell lexer, used by Text.Read
- data Lexeme
- numberToInteger :: Number -> Maybe Integer
- numberToRational :: Number -> Rational
- numberToRangedRational :: (Int, Int) -> Number -> Maybe Rational
- lex :: ReadP Lexeme
- hsLex :: ReadP String
- lexChar :: ReadP Char
- readIntP :: Num a => a -> (Char -> Bool) -> (Char -> Int) -> ReadP a
- readOctP :: (Eq a, Num a) => ReadP a
- readDecP :: (Eq a, Num a) => ReadP a
- readHexP :: (Eq a, Num a) => ReadP a
Documentation
Haskell lexemes.
numberToInteger :: Number -> Maybe IntegerSource
numberToRational :: Number -> RationalSource