summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-05-22 06:37:58 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-05-22 06:37:58 +0200
commit2d4d422162e442c3b9fc88dd31e808c2f536c778 (patch)
treeb7e0195d7e90cfd60f539e49775cb7a012f26c63
parenta4b510151ed03652f7ac745e666d6df21f635942 (diff)
downloadmetatile-2d4d422162e442c3b9fc88dd31e808c2f536c778.tar
metatile-2d4d422162e442c3b9fc88dd31e808c2f536c778.zip
Generalize withDisplay's type
darcs-hash:20070522043758-a5988-7738168ac829a9b2cf79e6866072cccde379a977
-rw-r--r--XMonad.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad.hs b/XMonad.hs
index d2f16a7..1484bf6 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -83,7 +83,7 @@ runX c st (X a) = runStateT (runReaderT a c) st >> return ()
-- Convenient wrappers to state
-- | Run a monad action with the current display settings
-withDisplay :: (Display -> X ()) -> X ()
+withDisplay :: (Display -> X a) -> X a
withDisplay f = asks display >>= f
-- | Run a monadic action with the current workspace