[GHC] #7032: sleep fails for compiled program
GHC
cvs-ghc at haskell.org
Thu Jun 28 05:07:48 CEST 2012
#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
More information about the Glasgow-haskell-bugs
mailing list