CurryInfo: base-3.4.0 / Numeric.readInt

definition: Info
 
readInt :: ReadS Int
readInt str = case dropWhile isSpace str of
  []       -> []
  '-':str1 -> map (\(n,s) -> (-n, s)) (readNat str1)
  str1     -> readNat str1
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Read a (possibly negative) integer as a first token in a string.
The string might contain leadings blanks and the integer is read
up to the first non-digit.
On success returns `[(v,s)]`, where `v` is the value of the integer
and `s` is the remaing string without the integer token.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 readInt
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> [(Prelude.Int, String)]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term