#7032: sleep fails for compiled program
-------------------------------+--------------------------------------------
Reporter: carl | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.6.1
Component: Compiler | Version: 7.4.2
Keywords: | Os: Linux
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
-------------------------------+--------------------------------------------
Description changed by igloo:
Old description:
> 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
New description:
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#comment:3>
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