:: Monoid m => Bool -> m -> m package:extra

Like when, but operating on a Monoid. If the first argument is True returns the second, otherwise returns mempty.
mwhen True  "test" == "test"
mwhen False "test" == ""