[GHC] #7583: IO reordering
GHC
cvs-ghc at haskell.org
Tue Jan 15 12:16:47 CET 2013
#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
More information about the ghc-tickets
mailing list