diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-03-09 05:17:07 +0100 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-03-09 05:17:07 +0100 |
commit | 74b33d1fc8aed507305f6de929303749888bde75 (patch) | |
tree | 19858fbf18a84e271bcf7f90e817ecc1d9480ff2 /Main.hs | |
parent | 6f6785519398a926620a964e8a5125f527adcaaa (diff) | |
download | metatile-74b33d1fc8aed507305f6de929303749888bde75.tar metatile-74b33d1fc8aed507305f6de929303749888bde75.zip |
simplify StackSet api even further (-15 loc)
darcs-hash:20070309041707-9c5c1-3c9ef62c25f49b9025f137f73c8d25438a640ff4
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -210,11 +210,9 @@ view :: Int -> W () view o = do ws <- gets workspace let m = W.current ws - when (n /= m) $ - whenJust (W.index n ws) $ \new -> - whenJust (W.index m ws) $ \old -> do - mapM_ hide old - mapM_ reveal new - windows $ W.view n + when (n /= m) $ do + mapM_ hide (W.index m ws) + mapM_ reveal (W.index n ws) + windows $ W.view n where n = o-1 |