Re: Instances of qualified imported classes

Malcolm Wallace <[email protected]> Mon, 20 Oct 2003 14:22:12 +0100
Newsgroups gmane.comp.lang.haskell.nhc.bugs
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
Ian Lynagh <[email protected]> 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