This is so weird, if I wait long enough it works, but if I press enter fast enough, still get the wrong answer.<br><br><div class="gmail_quote">On Wed, Jul 21, 2010 at 2:34 PM, Albert Y.C.Lai <span dir="ltr">&lt;<a href="mailto:trebla@vex.net">trebla@vex.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Try adding more delay between the two loadings, e.g., make me press enter,<br>
and hope I am not faster than a computer:<br>
<div class="im"><br>
main = do<br>
    writeTarget &quot;arg&quot;<br>
    func0 &lt;- compileTarget<br>
    putStrLn $ show $ func0 2<br>
<br>
</div>    getLine<br>
<div class="im"><br>
    writeTarget &quot;arg*2&quot;<br>
    func1 &lt;- compileTarget<br>
    putStrLn $ show $ func1 2<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>