Changes between Initial Version and Version 1 of Ticket #1259


Ignore:
Timestamp:
May 27, 2007 5:31:32 PM (8 years ago)
Author:
igloo
Comment:

I think the right way to fix this is to wait until we have extensible exceptions, so MArray throws a structured exception. DiffArray can then s/MArray/DiffArray/ without having to duplicate all the checks.

As such, it's probably something for 6.10.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1259

    • Property Milestone changed from to 6.1
  • Ticket #1259 – Description

    initial v1  
     1{{{
    12Prelude> :m + Data.Array.Diff
    23Prelude Data.Array.Diff> :t array
     
    45Prelude Data.Array.Diff> array (1,1) [] :: DiffArray Int Int
    56array (1,1) [(1,*** Exception: MArray: undefined array element
    6 
     7}}}
    78Since DiffArray isn't a MArray(it implements IArray), this is misleading. It should either say IArray or better DiffArray: undefined array element.