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
- data Lexeme'
- numberToInteger :: Number -> Maybe Integer
- numberToRangedRational :: (Int, Int) -> Number -> Maybe Rational
- lex :: ReadP Lexeme
- 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