Skip to content

putStrLn and related printing functions don't output to MinTTY properly under Windows

One place where this glitch can be seen in cabal update by it *delaying* the term output until the update is finished and the program terminates. I've noticed it in several of my personal larger projects too. I think what's going on is that nothing is printed to the terminal until the program terminates.

It seems to be intermittent to some degree, and varying the size and contents of the program can trigger it. Because of it's indeterminacy I can't actually provide a small test case, however, I can provide a program which currently does produce the issue.

https://github.com/kvanberendonck/burrito/blob/ccd8d1fb2bb09251571cf2626314fc09e515ee14/src/Main.hs

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information