[GHC] #2237: qualified names not permitted everywhere in
instances
GHC
trac at galois.com
Fri Apr 25 13:52:59 EDT 2008
#2237: qualified names not permitted everywhere in instances
-------------------------------+--------------------------------------------
Reporter: claus | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 6.9
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
-------------------------------+--------------------------------------------
Comment (by claus):
Replying to [comment:4 simonpj]:
> OK I think we are agreeing that GHC implements the spec. We can argue
separately about whether the language should be changed!
yes, agreed. one suggestion: could GHC point to the spec for this error
message in the case of an instance method definition? something like
{{{
Qualified name in instance method definition: ..
please refer to Section 4.3.2 of the Haskell 98 report
}}}
as part of the message would have spared me the confusion, by pointing out
that (a) the compiler is aware of the non-toplevel context and (b) there
is a spec reason for the restriction.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2237#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list