What causes loop?

2008-11-08 Thread Creighton Hogg
Hello, So I'm trying to debug an issue that is causing GHC to emit the loop warning. I was hoping to get more information about what exactly that tells me about the kind of problem, other than the obvious interpretation that I appear to be getting into some kind of infinite loop. What is GHC

Re: What causes loop?

2008-11-08 Thread Krasimir Angelov
Hi Creighton, This means that the interpreter have detected that your program run into infinite loop. There are many possibilities but one of them (the most often for me) is to have something like: let x = f x because of the lazy evaluation this is possible but leads to infinite loop. It is

Re: What causes loop?

2008-11-08 Thread Brent Yorgey
On Sat, Nov 08, 2008 at 10:32:38AM -0600, Creighton Hogg wrote: Hello, So I'm trying to debug an issue that is causing GHC to emit the loop warning. I was hoping to get more information about what exactly that tells me about the kind of problem, other than the obvious interpretation that I

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Ian Lynagh
Hi Philip, On Fri, Nov 07, 2008 at 12:13:04PM +0100, Philip K.F. Hölzenspies wrote: After the announcement, I downloaded and installed the final release of 6.10.1. At some prior stage, I used the RC1 release, which had the same bug, but I had generally assumed it to be an RC-phenomenon.

Re: What causes loop?

2008-11-08 Thread Antti-Juhani Kaijanaho
On Sat, Nov 08, 2008 at 10:32:38AM -0600, Creighton Hogg wrote: So I'm trying to debug an issue that is causing GHC to emit the loop warning. I was hoping to get more information about what exactly that tells me about the kind of problem, other than the obvious interpretation that I appear to

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Judah Jacobson
On Fri, Nov 7, 2008 at 8:38 PM, Alexander Dunlap [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 3:13 AM, Philip K.F. Hölzenspies [EMAIL PROTECTED] wrote: Hi all, I apologize if this is off-topic, but I'm having a similar (but distinct) problem: editline thinks that my delete key is a tilde

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Alexander Dunlap
On Sat, Nov 8, 2008 at 12:33 PM, Judah Jacobson [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 8:38 PM, Alexander Dunlap [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 3:13 AM, Philip K.F. Hölzenspies [EMAIL PROTECTED] wrote: Hi all, I apologize if this is off-topic, but I'm having a

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Ian Lynagh
On Sat, Nov 08, 2008 at 12:33:57PM -0800, Judah Jacobson wrote: bind \e[3~ ed-delete-next-char It's a shame this doesn't just work out of the box in an xterm, on Debian at least. Perhaps we should consider switching to haskeline? Do we know anything about how portable and complete that is?

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Ian Lynagh
On Sun, Nov 09, 2008 at 01:49:43AM +, Ian Lynagh wrote: On Sat, Nov 08, 2008 at 12:33:57PM -0800, Judah Jacobson wrote: bind \e[3~ ed-delete-next-char It's a shame this doesn't just work out of the box in an xterm, on Oh, the other thing I meant to say is that it seems to behaves

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Reiner Pope
On Sun, Nov 9, 2008 at 12:53 PM, Ian Lynagh [EMAIL PROTECTED] wrote: On Sun, Nov 09, 2008 at 01:49:43AM +, Ian Lynagh wrote: On Sat, Nov 08, 2008 at 12:33:57PM -0800, Judah Jacobson wrote: bind \e[3~ ed-delete-next-char It's a shame this doesn't just work out of the box in an xterm, on

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Brandon S. Allbery KF8NH
On 2008 Nov 8, at 22:13, Rohan Drape wrote: Emacs sends text to processes in packets of at most 255 characters. In between these ghci now gets a ^D character sequence inserted into the text. This did not happen previously (ie. with 6.8.2). This sounds like a bug: either editline or ghci

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Rohan Drape
On 2008-11-09, Reiner Pope [EMAIL PROTECTED] wrote: I'm not sure if this is Emacs' fault, but when I run GHCi through Emacs, entered text is printed to stdout or stderr immediately after Enter is pressed; when this is done after a file is loaded, ^J is appended. Also here, and there is a