"index out of range" error message regression
In ghci 6.4.1, we get some useful information with the error:
Prelude> :m +Data.Array.IArray
Prelude Data.Array.IArray> (listArray (1,4) [1..4] :: Array Int Int) ! 5
*** Exception: Ix{Int}.index: Index (5) out of range ((1,4))
In ghci 6.8.3, that disappeared:
Prelude> :m +Data.Array.IArray
Prelude Data.Array.IArray> (listArray (1,4) [1..4] :: Array Int Int) ! 5
Loading package array-0.1.0.0 ... linking ... done.
*** Exception: Error in array index
ghci 6.11.20081004 is similarly unhelpful:
Prelude> :m +Data.Array.IArray
Prelude Data.Array.IArray> (listArray (1,4) [1..4] :: Array Int Int) ! 5
Loading package syb ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
*** Exception: Error in array index
Trac metadata
Trac field | Value |
---|---|
Version | 6.11 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | None |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |