summaryrefslogtreecommitdiffstats
path: root/WMonad.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-03-10 02:29:40 +0100
committerDon Stewart <dons@cse.unsw.edu.au>2007-03-10 02:29:40 +0100
commita1fb279c87203bbd81f1e22d2b6fbf0fc581896a (patch)
treea5a6dd4116367a8e71b2fe34bc108e75cae1415e /WMonad.hs
parentf5329d37b10d78c497f488d71d1718db37037a19 (diff)
downloadmetatile-a1fb279c87203bbd81f1e22d2b6fbf0fc581896a.tar
metatile-a1fb279c87203bbd81f1e22d2b6fbf0fc581896a.zip
refactor, trying to seperate out IO from W stuff, in order to QC the handler at some point
darcs-hash:20070310012940-9c5c1-2118696702dac70f922b5ba781a3775598b955cd
Diffstat (limited to 'WMonad.hs')
-rw-r--r--WMonad.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/WMonad.hs b/WMonad.hs
index af18901..4e622c5 100644
--- a/WMonad.hs
+++ b/WMonad.hs
@@ -43,8 +43,8 @@ newtype W a = W (StateT WState IO a)
-- | Run the W monad, given a chunk of W monad code, and an initial state
-- Return the result, and final state
-runW :: WState -> W a -> IO (a, WState)
-runW st (W a) = runStateT a st
+runW :: WState -> W a -> IO ()
+runW st (W a) = runStateT a st >> return ()
-- | Run a monad action with the current display settings
withDisplay :: (Display -> W ()) -> W ()