#2435: Qualified name required when defining type family instance in instance
declaration
------------------------+---------------------------------------------------
    Reporter:  rl       |       Owner:          
        Type:  bug      |      Status:  new     
    Priority:  normal   |   Component:  Compiler
     Version:  6.9      |    Severity:  normal  
    Keywords:           |    Testcase:          
Architecture:  Unknown  |          Os:  Unknown 
------------------------+---------------------------------------------------
 With these two modules, GHC gives the following error:

 {{{
 Bar.hs:3:30: Not in scope: type constructor or class `T'
 }}}

 I have to use Foo.T in the instance definition. This is inconsistent with
 method definitions which must use unqualified names.

 {{{
 module Foo where
 class C a where type T a
 }}}

 {{{
 module Bar where
 import qualified Foo
 instance Foo.C Int where type T Int = Int
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2435>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to