Proposal: Improved error message of "Error in array index"
Ketil Malde
ketil at ii.uib.no
Wed Nov 9 05:17:53 EST 2005
Simon Marlow wrote:
>Hmm yes, this is indeed rather unhelpful. I can explain why it happens,
>though. The compiler has lifted out the error case into a top-level
>binding:
>
> x = error "Error in array index"
>
>
Would the compiler be less agressive with this if I turn off
optimization? I usually use optimization with profiling as well, but
could of course turn it off if it would result in more useful stack
backtraces.
-k
More information about the Glasgow-haskell-users
mailing list