|
definition: |
showParen :: Bool -> ShowS -> ShowS
showParen True s = showChar '(' . s . showChar ')'
showParen False s = s
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Surround the inner show function with parentheses if the first argument evaluates to `True`. |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({True},_) |-> {.._#lambda508} || ({False},_) |-> _}
|
|
name: |
showParen |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Prelude.Bool -> (String -> String) -> String -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |