Hi John,<div><br></div><div>Which sleep are you using? From which module? Can you show the full source with import statements?</div><div><br></div><div>Cheers,<br></div><div><div>Peter</div><div><br><div class="gmail_quote">
2009/2/9 John Ky <span dir="ltr">&lt;<a href="mailto:newhoggy@gmail.com">newhoggy@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Haskell Cafe,<br>
<br>I wrote very short program to sleep for 5 seconds compiled with the -threaded option in ghc on the Mac OS X 1.5.<br><br>I am finding that using the sleep function doesn&#39;t sleep at all, whereas using threadDelay does:<br>

<br>main = do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; putStrLn &quot;Waiting for 5 seconds.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; threadDelay 5000000 -- works<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; putStrLn &quot;Done.&quot;<br><br>main = do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; putStrLn &quot;Waiting for 5 seconds.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sleep 5 -- doesn&#39;t sleep at all<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; putStrLn &quot;Done.&quot;<br><br>Anybody know what&#39;s happening?<br><br>Thanks<br><font color="#888888"><br>-John<br><br>
</font><br>_______________________________________________<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>
<br></blockquote></div><br></div></div>