
26 Oct
2006
26 Oct
'06
8:20 a.m.
Tom Cooper
With some help, I've found a work-around, and made some progress identifying the problem. My module EHM2Alt.hs imported Array, which exports Ix, but does not explicitly import Ix itself. EHM2Alt uses functions (like range) from Ix. The Hat.Array module exports Hat.Ix, but without an 'as' clause, so the function Hat.Ix.grange is only seen in Hat.EHM2Alt as Hat.Array.grange, thus the error. The work-around is for my module to import Ix directly. Is this a bug in hat?
Yes, it could well be a bug in Hat. I will need to study the language definition carefully to be sure. Regards, Malcolm