Skip to content

Interactive I/O with ghc doesn't prompt until after reading

My students complained that the interactive program they were to write using Haskell would not issue its first prompt until after the first line of input had been entered. I enclose a tiny Haskell program that exhibits this behaviour in 6.2 (SPARC Solaris) and 6.4 (Intel Linux) and am told that it also happens in 6.6. I also show that it works fine in Hugs, HBC, and NCH98. (Mangled when I tried pasting it in. Stupid web forms.)

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