aboutsummaryrefslogtreecommitdiff
path: root/Graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics')
-rw-r--r--Graphics/Glyph/Util.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Graphics/Glyph/Util.hs b/Graphics/Glyph/Util.hs
index 78fd053..790b9f6 100644
--- a/Graphics/Glyph/Util.hs
+++ b/Graphics/Glyph/Util.hs
@@ -310,3 +310,6 @@ for = flip map
distribMaybe :: Maybe (a,b) -> (Maybe a, Maybe b)
distribMaybe Nothing = (Nothing,Nothing)
distribMaybe (Just (a,b)) = (Just a, Just b)
+
+whenM :: IO Bool -> IO () -> IO ()
+whenM b = (>>=) b . flip when