Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-15 Thread Colin Paul Adams
> "Claus" == Claus Reinke writes: Claus> None of which is satisfactory. You might also want to add Claus> yourself to this ticket: >> Claus> "index out of range" error message regression Claus> http://hackage.haskell.org/trac/ghc/ticket/2669 >> >> How do I do tha

Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Claus Reinke
Claus> None of which is satisfactory. You might also want to add Claus> yourself to this ticket: Claus>"index out of range" error message regression Claus> http://hackage.haskell.org/trac/ghc/ticket/2669 How do I do that? Ghc Trac's idea of voting is by adding yourself to the c

Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Colin Paul Adams
> "Adrian" == Adrian Neumann writes: Adrian> You can use the ghci debugger >> http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci- Adrian> debugger.html Adrian> it can set breakpoints on exceptions. So i tried adding the -fbreak-on-error flag. It made no difference

Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Colin Paul Adams
> "Claus" == Claus Reinke writes: Claus> None of which is satisfactory. You might also want to add Claus> yourself to this ticket: Claus>"index out of range" error message regression Claus> http://hackage.haskell.org/trac/ghc/ticket/2669 How do I do that? -- Colin Adams

Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Claus Reinke
I'm getting a runtime failure "Error in array index". This causes ghci to exit. Is there a way to get it to break instead, so I can find out which function is failing? i recall two techniques - one is trivially define your own (!) and print index at least. another is to use ghc profiling with

Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Adrian Neumann
You can use the ghci debugger > http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci- debugger.html it can set breakpoints on exceptions. Am 14.03.2009 um 09:39 schrieb Colin Paul Adams: I'm getting a runtime failure "Error in array index". This causes ghci to exit. Is there a way

Re: [Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Bulat Ziganshin
Hello Colin, Saturday, March 14, 2009, 11:39:41 AM, you wrote: > I'm getting a runtime failure "Error in array index". This causes ghci > to exit. > Is there a way to get it to break instead, so I can find out which > function is failing? i recall two techniques - one is trivially define your o

[Haskell-cafe] How to catch error in array index when debugging

2009-03-14 Thread Colin Paul Adams
I'm getting a runtime failure "Error in array index". This causes ghci to exit. Is there a way to get it to break instead, so I can find out which function is failing? -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.