#901: I/O sequencing problem on OS X/x86
-------------------------+--------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.5
Severity: normal | Keywords:
Os: MacOS X | Difficulty: Unknown
Architecture: x86 |
-------------------------+--------------------------------------------------
The following small program behaves strangely on Mac OS X on x86:
{{{
module Main where
main = do
putStr "Tell me? "
response <- getLine
putStrLn ("You said: " ++ response)
}}}
It should print the prompt, wait for input, and then report what it read.
When compiled to a binary with GHC, however, it first waits for input,
then prints the prompt and the response together. Strangely, if run inside
GHCi, it works correctly. It also works correctly under Hugs.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/901>
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