diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-10-12 17:15:24 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-10-12 17:15:24 +0200 |
commit | 8576d74f6ab0f5ae424fb5c4b961851be3305712 (patch) | |
tree | f720724fdfea7c018a50867db5b47a2a96c0564d | |
parent | 09b72be6e576610a74f82e8e8caf2c0abdbb337a (diff) | |
download | metatile-8576d74f6ab0f5ae424fb5c4b961851be3305712.tar metatile-8576d74f6ab0f5ae424fb5c4b961851be3305712.zip |
Make runX return XState
darcs-hash:20071012151524-a5988-8ef9d310d3e0576b5880c1e8b3d3fc38ec3b8f64
-rw-r--r-- | XMonad.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,8 +81,8 @@ newtype X a = X (ReaderT XConf (StateT XState IO) a) -- | Run the X monad, given a chunk of X monad code, and an initial state -- Return the result, and final state -runX :: XConf -> XState -> X a -> IO () -runX c st (X a) = runStateT (runReaderT a c) st >> return () +runX :: XConf -> XState -> X a -> IO (a, XState) +runX c st (X a) = runStateT (runReaderT a c) st -- | Run in the X monad, and in case of exception, and catch it and log it -- to stderr, and run the error case. |