
On Thu, May 31, 2012 at 10:35 PM, Michael Norrish < michael.norrish@nicta.com.au> wrote:
appName =? "xmobar" --> liftX . withDisplay . (io .) . flip raiseWindow =<< ask
xmonad.hs:122:76: Couldn't match expected type `Endo WindowSet' with actual type `()' Expected type: Display -> Window -> IO (Endo WindowSet) Actual type: Display -> Window -> IO () In the first argument of `flip', namely `raiseWindow' In the second argument of `(.)', namely `flip raiseWindow'
But I'll try to get back to the list with a version that works (for future reference).
*sigh* I always forget mangling it back to the type ManageHook expects... appName =? "xmobar" --> (liftX . withDisplay . (io .) . flip raiseWindow =<< ask) <+> idHook and may require extra parentheses depending on how you mix it into an existing ManageHook. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms