Re: [Haskell-cafe] Obscure weirdness

2009-06-21 Thread Raynor Vliegendhart
On 6/20/09, Andrew Coppin andrewcop...@btinternet.com wrote: Is this a known bug in GHC 6.10.1? Will upgrading fix it? (Obviously, it's quite a lot of work to change GHC.) Suffice it to say that my program is quite big and complicated; it worked fine when it was still small and simple. ;-)

Re: [Haskell-cafe] Obscure weirdness

2009-06-21 Thread Andrew Coppin
Raynor Vliegendhart wrote: There is a bug in ghci 6.10.1 that seems to be fixed in 6.10.3 (not sure whether it's fixed in 6.10.3). Certain non-terminating expressions causes ghci to crash immediately and go back to the prompt: C:\ghci GHCi, version

Re: [Haskell-cafe] Obscure weirdness

2009-06-21 Thread Andrew Coppin
Andrew Coppin wrote: Anyway, I shall try 6.10.3 and see what happens. Recompiled my program. It now throws a loop exception (which the exception handler catches) instead of just dying. (Curiosly, the exception handler itself then throws an exception saying stdin: hGetLine: illegal

[Haskell-cafe] Obscure weirdness

2009-06-20 Thread Andrew Coppin
OK, so here's an interesting problem... I've been coding away all day, but now my program is doing something slightly weird. For a specific input, it summarily terminates. The registered exception handler does not fire. There is no output to stdout or stderr indicating what the problem is. It

Re: [Haskell-cafe] Obscure weirdness

2009-06-20 Thread Alexander Dunlap
On Sat, Jun 20, 2009 at 8:29 AM, Andrew Coppin andrewcop...@btinternet.com wrote: OK, so here's an interesting problem... I've been coding away all day, but now my program is doing something slightly weird. For a specific input, it summarily terminates. The registered exception handler

Re: [Haskell-cafe] Obscure weirdness

2009-06-20 Thread Andrew Coppin
Alexander Dunlap wrote: On Sat, Jun 20, 2009 at 8:29 AM, Andrew Coppin andrewcop...@btinternet.com wrote: OK, so here's an interesting problem... I've been coding away all day, but now my program is doing something slightly weird. For a specific input, it summarily terminates. The

Re: [Haskell-cafe] Obscure weirdness

2009-06-20 Thread Ross Mellgren
Really, without code or more than it just disappears, it's just conjecture what's happening. Can you post the code, or even better yet a minimized case that reproduces it? -Ross On Jun 20, 2009, at 1:34 PM, Andrew Coppin wrote: Alexander Dunlap wrote: On Sat, Jun 20, 2009 at 8:29 AM,

Re: [Haskell-cafe] Obscure weirdness

2009-06-20 Thread Marcin Kosiba
On Saturday 20 June 2009, Andrew Coppin wrote: OK, so here's an interesting problem... I've been coding away all day, but now my program is doing something slightly weird. For a specific input, it summarily terminates. The registered exception handler does not fire. There is no output to

Re: [Haskell-cafe] Obscure weirdness

2009-06-20 Thread Andrew Coppin
Marcin Kosiba wrote: On Saturday 20 June 2009, Andrew Coppin wrote: OK, so here's an interesting problem... I've been coding away all day, but now my program is doing something slightly weird. For a specific input, it summarily terminates. The registered exception handler does not fire.

Re: [Haskell-cafe] Obscure weirdness

2009-06-20 Thread Lennart Augustsson
Did you try running it in some debugger, like windbg or VS? 2009/6/20 Andrew Coppin andrewcop...@btinternet.com: Marcin Kosiba wrote: On Saturday 20 June 2009, Andrew Coppin wrote: OK, so here's an interesting problem... I've been coding away all day, but now my program is doing something