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