<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 7, 2016 at 3:30 PM, Jakob Schöttl <span dir="ltr"><<a href="mailto:jschoett@gmail.com" target="_blank">jschoett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1n4" class="a3s" style="overflow:hidden">For me it does not work, I don't know why.<br>
<br>
myStartupHook = do<br>
args <- io getArgs<br>
spawn $ "xmessage " ++ show (length args)<br>
...<br>
<br></div></blockquote></div><br>Actually... I updated to 0.12 and at the same time switched from ghc 7.6.3 to 7.10.3, and found the same thing. I had to move the "args <- io getArgs" directly into "main" before invocation of the "xmonad" function.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I haven't yet looked at the code but this seems surprising. I also suspect it's not related to a change in xmonad, since the only core changes (and only a core change could have any effect here) were documentation.<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>