| Copyright | (c) 2014 Bryan O'Sullivan |
|---|---|
| License | BSD-style |
| Maintainer | bos@serpentine.com |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.Text.Internal.Read
Description
Common internal functions for reading textual data.
Synopsis
- type IReader t a = t -> Either String (a, t)
- newtype IParser t a = P {}
- data T = T !Integer !Int
- digitToInt :: Char -> Int
- hexDigitToInt :: Char -> Int
- maxExponentDigits :: Int
- perhaps :: a -> IParser t a -> IParser t a
- catchOrBind :: IParser t a -> IParser t b -> (a -> IParser t b) -> IParser t b
- err :: String -> IParser t a
- snapshot :: IParser t t
- reset :: t -> a -> IParser t a
Documentation
digitToInt :: Char -> Int Source #
hexDigitToInt :: Char -> Int Source #
maxExponentDigits :: Int Source #
The number of digits that always fit in an Int. An exponent with more
significant digits is out of range.