Hugs/GHC incompatibility

Wolfgang Jeltsch wolfgang at
Wed Jan 21 22:49:11 EST 2004

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?


More information about the Haskell mailing list