GHCi 6.0.1 on Mac OS X + emacs hangs; solution and patch
Gregory Wright
gwright at comcast.net
Tue Aug 26 17:42:10 EDT 2003
On Tuesday, August 26, 2003, at 08:23 AM, Simon Marlow wrote:
>
>> The problem is caused by InteractiveUI.hs. It suppresses the
>> prompt when ghci's stdin is
>> not a tty (is_tty is false). Is there ever a reason to do
>> this? emacs needs the prompt to determine
>> when ghci's output has ended. If it never sees the prompt it
>> just waits forever.
>
> I think I did this so that you could run GHCi with the input piped in,
> and not get any annoying prompts on the output:
>
> $ echo main | ghci -v0 Main.hs
> hello world!
>
> Perhaps the prompt should be suppressed only when verbosity is zero
> *and* the input is not a tty. What do you think?
>
>
The attached patch does what you suggested. It has even been tested. :-)
Best Wishes,
Greg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-InteractiveUI.hs
Type: application/octet-stream
Size: 1386 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20030826/d2c2a3cc/patch-InteractiveUI.obj
More information about the Glasgow-haskell-bugs
mailing list