aboutsummaryrefslogtreecommitdiff
path: root/Graphics
diff options
context:
space:
mode:
authorJoshua Rahm <joshua.rahm@colorado.edu>2014-04-25 13:09:42 -0600
committerJoshua Rahm <joshua.rahm@colorado.edu>2014-04-25 13:09:42 -0600
commit0c54864f6301a6e0a7bf5553818995fda883bace (patch)
treed9ddf3607234aa4e8c86c7873cd1bcb3dc3fbaeb /Graphics
parente3a07ab4ccf65ddf052b483cf879f6a9bdd97720 (diff)
downloadterralloc-0c54864f6301a6e0a7bf5553818995fda883bace.tar.gz
terralloc-0c54864f6301a6e0a7bf5553818995fda883bace.tar.bz2
terralloc-0c54864f6301a6e0a7bf5553818995fda883bace.zip
have first person view
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