<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 07.01.2016 12:44, Brandon Allbery
wrote:<br>
</div>
<blockquote
cite="mid:CAKFCL4XokVVD-Ya9ObY+-uyC4POri9e2XLvzAyX9D1TOKan02w@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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>
</div>
</div>
</blockquote>
That works! Thank you. Yeah it sounds like a GHC bug for me. I also
have xmonad 0.12 and GHC 7.10.3.<br>
</body>
</html>