Ticket #7032 (closed bug: fixed)
sleep fails for compiled program
| Reported by: | carl | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Compiler | Version: | 7.4.2 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | x86_64 (amd64) |
| Type of failure: | Incorrect result at runtime | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

