#7583: IO reordering
----------------------------------------+-----------------------------------
Reporter: Heimdell | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords: IO, invalid
evaluation order
Os: Linux | Architecture: x86_64 (amd64)
Failure: Incorrect result at runtime | Blockedby:
Blocking: | Related:
----------------------------------------+-----------------------------------
Comment(by Yuras):
The evaluation order is correct. It is related to line buffering on
stdout. You should flush stdout after writing "> " and before reading
input.
In ghci the behavior is different probably cos it setup different
buffering on stdout.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7583#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
ghc-tickets mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-tickets