Am Mittwoch, 21. Januar 2004 21:52 schrieb Wolfgang Jeltsch:
> Hello,
>
> I have some code which runs fine with GHC/GHCi but signals
>     Program error: undefined array element
> when run with Hugs.  Does anyone know why this difference occurs and where
> I have to search for the cause of the error in my code?
>
> Wolfgang

Hello again,

I think, I've found the problem. GHC seems to not implement Data.Array.array 
correctly. The implementation doesn't adhere to the following sentence from 
the Data.Array.IArray.array documentation:
    If any two associations in the list have the same index, the value at that
    index is undefined.
Could this be fixed?

Wolfgang

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to