[Haskell-cafe] semantics of concurrent program depends on -O level, -f[no-]omit-yields
Johannes Waldmann
johannes.waldmann at htwk-leipzig.de
Thu Nov 29 19:37:35 UTC 2018
> ... try flushing stdout within the forked thread,
I did. The behaviour is still as described:
depends on -O0/2, [no]omit-yield,
and small changes in the source.
While I agree with the general point -
why would I need to hFlush after putStrLn?
hGetBuffering stdout tells me it's LineBuffering,
and putStrLn does write a line?
- J.
More information about the Haskell-Cafe
mailing list