[GHC] #5516: Universally quantified GADT context leads to overlapping instance

GHC cvs-ghc at haskell.org
Thu Sep 29 19:16:53 CEST 2011


#5516: Universally quantified GADT context leads to overlapping instance
---------------------------------+------------------------------------------
    Reporter:  andersk           |        Owner:                           
        Type:  bug               |       Status:  new                      
    Priority:  normal            |    Milestone:                           
   Component:  Compiler          |      Version:  7.3                      
    Keywords:                    |     Testcase:                           
   Blockedby:                    |   Difficulty:                           
          Os:  Unknown/Multiple  |     Blocking:                           
Architecture:  Unknown/Multiple  |      Failure:  GHC rejects valid program
---------------------------------+------------------------------------------

Comment(by andersk):

 Even if GHC is unable to use the polymorphic evidence, I feel like its
 presence should not cause an error when the code would otherwise have
 worked.  If that’s true, this is a regression from 7.0.  But probably
 nobody writes code like this, so I guess the question is whether there’s
 now a good reason to disallow it.

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



More information about the Glasgow-haskell-bugs mailing list