Hello Jason,

Wednesday, June 24, 2009, 1:55:24 PM, you wrote:

>     array ((0,0),(65535,65535)) [((0,0),*** Exception: Error in array index

>   What do I need to do to debug this?

i think that it may be a bit too large for internal Int indicies:

safeIndex :: Ix i => (i, i) -> Int -> i -> Int
safeIndex (l,u) n i = let i' = unsafeIndex (l,u) i
                      in if (0 <= i') && (i' < n)
                         then i'
                         else error "Error in array index"



-- 
Best regards,
 Bulat                            mailto:[email protected]

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to