bishbosh-0.1.3.0: Plays chess.
Safe HaskellSafe-Inferred
LanguageHaskell2010

BishBosh.Data.Integral

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Arbitrary operations for numeric types.
Synopsis

Functions

stringToUnsignedDecimal :: Num i => String -> i Source #

  • N.B. much faster than the instance of Read for the integral type. TODO: compare with readDec.
  • N.B. ignores any leading zeroes.
  • CAVEAT: intolerant to any white-space or a leading sign-character; digitToInt throws an exception if it receives a character which isn't a digit.