Ticket #2669 (closed bug: fixed)
"index out of range" error message regression
| Reported by: | claus | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | None | Version: | 6.11 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
