|
definition: |
showParen :: Bool -> ShowS -> ShowS
showParen b s = if b then showChar '(' . s . showChar ')' else s
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
| If the first argument is `True`, Converts a show function to a show function adding enclosing brackets, otherwise the show function is returned unchanged. |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({True},_) |-> {.._#lambda508} || ({False},_) |-> _}
|
|
name: |
showParen |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Bool -> ([Char] -> [Char]) -> [Char] -> [Char] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |