definition: |
readInt :: ReadS Int readInt str = case dropWhile isSpace str of [] -> [] '-':str1 -> map (\(n,s) -> (-n, s)) (readNat str1) str1 -> readNat str1 |
demand: |
argument 1 |
deterministic: |
deterministic operation |
documentation: |
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: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_) |-> _} |
name: |
readInt |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> [(Prelude.Int, String)] |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |