| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
BishBosh.Data.Integral
Contents
Description
AUTHOR- Dr. Alistair Ward
DESCRIPTION- Arbitrary operations for numeric types.
Synopsis
- stringToUnsignedDecimal :: Num i => String -> i
Functions
stringToUnsignedDecimal :: Num i => String -> i Source #
- N.B. much faster than the instance of
Readfor the integral type. TODO: compare withreadDec. - N.B. ignores any leading zeroes.
- CAVEAT: intolerant to any white-space or a leading sign-character;
digitToIntthrows an exception if it receives a character which isn't a digit.