[GHC] #2237: qualified names not permitted everywhere in instances

GHC trac at galois.com
Fri Apr 25 07:16:02 EDT 2008


#2237: qualified names not permitted everywhere in instances
------------------------+---------------------------------------------------
    Reporter:  claus    |       Owner:                   
        Type:  bug      |      Status:  new              
    Priority:  normal   |   Component:  Compiler (Parser)
     Version:  6.9      |    Severity:  normal           
    Keywords:           |    Testcase:                   
Architecture:  Unknown  |          Os:  Unknown          
------------------------+---------------------------------------------------
 consider using a class that is imported qualified only:

  - we cannot define instance methods, as their qualified names are not
 accepted (this restriction makes sense at top-level, but not in instances)

  - we cannot refer to instances in instance contexts, as their qualified
 names are not accepted (they are accepted in class contexts, and
 -XFlexibleInstances accepts them in instance contexts)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2237>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list