diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-03-10 02:29:40 +0100 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-03-10 02:29:40 +0100 |
commit | a1fb279c87203bbd81f1e22d2b6fbf0fc581896a (patch) | |
tree | a5a6dd4116367a8e71b2fe34bc108e75cae1415e /WMonad.hs | |
parent | f5329d37b10d78c497f488d71d1718db37037a19 (diff) | |
download | metatile-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.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 () |