#2669: "index out of range" error message regression
---------------------------------+------------------------------------------
    Reporter:  claus             |       Owner:                  
        Type:  bug               |      Status:  new             
    Priority:  normal            |   Component:  None            
     Version:  6.11              |    Severity:  normal          
    Keywords:                    |    Testcase:                  
Architecture:  Unknown/Multiple  |          Os:  Unknown/Multiple
---------------------------------+------------------------------------------
 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
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2669>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to