#7032: sleep fails for compiled program
------------------------------+---------------------------------------------
 Reporter:  carl              |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.2             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 For the following program, runghc or ghci produces a list of numbers with
 a delay between printing each number.  But when I run the compiled
 program, there is no delay.

 import System.Posix
 main = loop 10
 loop 0 = print "done"
 loop n = do
   print n
   sleep 3
   loop $ n - 1

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7032>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to