when package:haskell-gi-base
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.
When the given value is of "Just a" form, execute the given action,
otherwise do nothing.