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><br>-John<br><br>