[nhc-bugs] Instances of qualified imported classes

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Oct 20 15:22:12 EDT 2003


Ian Lynagh <igloo at earth.li> writes:

> While getting hat to work with ghc6 I've come across the following
> issue:

We have encountered exactly the same issue ourselves when converting
hat for ghc6.

> hugs agrees with GHC 6 on both, and the report seems to agree on the
> latter (I haven't looked for what it says on the former, but it seems
> reasonable behaviour).

Yes, nhc98 is wrong wrt the Haskell'98 Report on this point.  (It was
a change between the original publication and the recently published
revision.)  The Report no longer permits an instance method definition
to be qualified, because the method name without qualification is
completely unambiguous in the context.

It is on the ToDo list to be fixed for the next release.

Regards,
    Malcolm


More information about the Nhc-bugs mailing list