[ ghc-Bugs-1069656 ] ghc-ghci inconsisteny
SourceForge.net
noreply at sourceforge.net
Mon Nov 22 08:30:23 EST 2004
Bugs item #1069656, was opened at 2004-11-19 19:57
Message generated for change (Settings changed) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1069656&group_id=8032
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Nightmare (goronsf)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghc-ghci inconsisteny
Initial Comment:
The following program has different semantics in ghc
and ghci.
main = do putStrLn "something"
putStr "something else"
It's the linebuffering. NoLineBuffering should be used
on expressions without side-effects.
So 5*5 should print immediately, and do putStrLn
"something" should behave the same in both
applications. How doesn't matter that much to me, but
they should be the same.
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2004-11-22 13:30
Message:
Logged In: YES
user_id=48280
Buffering of the standard handles does indeed differ in GHCi
compared to GHC. The behaviour is a compromise: you don't
want NoBuffering by default for stdout in a compiled program,
because it would be too slow. You probably *do* want
NoBuffering in an interactive environment, however, because
you want interactivity.
So, unless we hear from lots of people who want this to
change, it'll stay as is.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1069656&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list