[Hat] trying to get hat-make to swallow my code

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Oct 26 08:20:11 EDT 2006


Tom Cooper <t.cooper at firenet.uk.net> wrote:

>     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


More information about the Hat mailing list