patch applied (packages/base): Improve the index checking for array accesses; fixes #2120 #2669

Ian Lynagh igloo at earth.li
Sun Jul 19 12:00:08 EDT 2009


Sun Jul 19 08:32:28 PDT 2009  Ian Lynagh <igloo at earth.li>
  * Improve the index checking for array accesses; fixes #2120 #2669
  As well as checking that offset we are reading is actually inside the
  array, we now also check that it is "in range" as defined by the Ix
  instance. This fixes confusing behaviour (#2120) and improves some error
  messages (#2669).

    M ./GHC/Arr.lhs -2 +3

View patch online:
http://darcs.haskell.org/packages/base/_darcs/patches/20090719153228-3fd76-4b62f94aa6046312abe7e59afa393ab4dc52d8b7.gz


More information about the Cvs-libraries mailing list