Simon Peyton-Jones wrote:
What I intended was a simple interactive Haskell program should behave the same on any OS/environment
What you and Ross seem to be saying is no, the behaviour of the program can, and should, depend on the OS/environment
If that's the consensus I'll happily leave echoing behaviour unspecified. Remember, that means that a conforming implementation can do whatever it pleases, and hence it's impossible to write a portable interactive Haskell program. Is that you what you intend?
The behaviour of the program itself doesn't depend upon the environment, but the overall user-visible behaviour of the system when running that program does. Any echoing, line editing, etc which is performed by the OS' terminal driver is not part of the program's behaviour. A conforming implementation should *not* do whatever it pleases. If necessary, it should be explictly specified that the terminal settings are left untouched. -- Glynn Clements <glynn.clements@virgin.net>