|
definition: |
when :: Applicative f => Bool -> f () -> f () when p s = if p then s else pure () |
|
demand: |
argument 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
| Conditional execution of 'Applicative' expressions. |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,{True},_) |-> _ || (_,{False},_) |-> _}
|
|
name: |
when |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Prelude.Applicative a => Prelude.Bool -> a () -> a () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |