¤ quitIdF
Terminating the program
Types
quitIdF :: (
a
-> Bool) ->
F
a
a
Synopsis
quitIdF p
Description
quitIdF
is an identity fudget that terminates the program if a message satistfying a given predicate is received.
Input
any type
Output
the input passed through unchanged
Arguments
p
::
a
-> Bool
The predicate that tests the input. An input
x
is passed through unchanged, if
p x
is
False
.
See Also
Related fudgets:
quitButtonF
,
buttonF
,
quitF
.