[GHC] #5811: Compiler cannot deduce that type function is injective

GHC cvs-ghc at haskell.org
Tue Jan 24 20:41:01 CET 2012


#5811: Compiler cannot deduce that type function is injective
-------------------------------+--------------------------------------------
  Reporter:  gatoatigrado      |          Owner:                  
      Type:  bug               |         Status:  closed          
  Priority:  normal            |      Milestone:                  
 Component:  Compiler          |        Version:  7.2.2           
Resolution:  invalid           |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by simonpj):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid


Comment:

 So just substitute!   GHC's consistent view is that instance '''heads'''
 must not overlap, without taking into account the instance context.   One
 could take a different view, but that would be a major major change
 (involving search, notably).

 Simon

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



More information about the Glasgow-haskell-bugs mailing list