when package:LambdaHack
Conditional execution of
Applicative expressions. For example,
when debug (putStrLn "Debugging")
will output the string
Debugging if the Boolean value
debug is
True, and otherwise do nothing.
if condition not met, fail without a message; better avoided, since AI
can't value it well