|
definition: |
read :: Read a => String -> a
read s = case [x | (x, t) <- reads s, ("", "") <- lex t] of
[x] -> x
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
| Reads data of the given type from a string. The operations fails if the data cannot be parsed. For instance `read "42" :: Int` evaluates to `42`, and `read "hello" :: Int` fails. |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> _}
|
|
name: |
read |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Read a => [Char] -> a |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |