WindowGo: fmt & sp

This commit is contained in:
gwern0 2010-07-12 04:29:15 +00:00
parent 129af43738
commit 9f6bb1a26e

View File

@ -164,7 +164,7 @@ raiseAndDo :: X () -> Query Bool -> (Window -> X ())-> X ()
raiseAndDo f qry after = ifWindow qry (afterRaise `mappend` raiseHook) f
where afterRaise = ask >>= (>> idHook) . liftX . after
{- | If a window matching the second arugment is found, the window is focused and the third argument is called;
{- | If a window matching the second argument is found, the window is focused and the third argument is called;
otherwise, the first argument is called. -}
runOrRaiseAndDo :: String -> Query Bool -> (Window -> X ()) -> X ()
runOrRaiseAndDo = raiseAndDo . safeSpawnProg