ghc-6 messing with terminal settings?

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Jul 2 08:56:50 EDT 2004


"Simon Marlow" <simonmar at microsoft.com> writes:

> I tend to think that changing the terminal settings for NonBlocking
> Handles attached to TTYs is the right thing, because it leads to fewer
> confused users.

And I tend to agree.

>                                           GHC has always changed the
> terminal settings (well, for as long as I remember, anyway).

But the new behaviour in ghc-6 is that it actively attempts to
restore the old settings on program termination, yes?  And what is
confusing is that the old settings are saved lazily part-way through
the computation, not necessarily at the beginning.

> Sure the Haskell 98 report doesn't require you to do this, and you can
> use that as a valid defense.  But in the end, you still have to deal
> with those messages from confused users.

And as my program demonstrates, ghc central will also have to deal
with confused users on occasion.  ;-)

Regards,
    Malcolm



More information about the Glasgow-haskell-bugs mailing list