|
definition: |
showOpChar :: Char -> String
showOpChar c = case c of
'_' -> "_" --"underscore" TODO: Can this lead to a name clash?
'~' -> "tilde"
'!' -> "bang"
'@' -> "at"
'#' -> "hash"
'$' -> "dollar"
'%' -> "percent"
'^' -> "caret"
'&' -> "ampersand"
'*' -> "star"
'+' -> "plus"
'-' -> "minus"
'=' -> "eq"
'<' -> "lt"
'>' -> "gt"
'?' -> "qmark"
'.' -> "dot"
'/' -> "slash"
'|' -> "bar"
'\\' ->"backslash"
':' -> "colon"
'(' -> "oparen"
')' -> "cparen"
'[' -> "obracket"
']' -> "cbracket"
',' -> "comma"
'\'' -> "tick"
_ -> error $ "unexpected symbol: " ++ show c
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
showOpChar |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Prelude.Char -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |