[GHC] #902: Deriving for H98 types using GADT syntax fails

GHC trac at galois.com
Fri Sep 15 18:33:55 EDT 2006


#902: Deriving for H98 types using GADT syntax fails
--------------------------------------+-------------------------------------
  Reporter:  bringert at cs.chalmers.se  |          Owner:         
      Type:  bug                      |         Status:  new    
  Priority:  normal                   |      Milestone:         
 Component:  Compiler                 |        Version:  6.5    
  Severity:  normal                   |     Resolution:         
  Keywords:                           |             Os:  Unknown
Difficulty:  Unknown                  |   Architecture:  Unknown
--------------------------------------+-------------------------------------
Comment (by bringert at cs.chalmers.se):

 In compiler/typecheck/TcDeriv.lhs, mkDataTypeEqn, ordinary_constraints,
 constraints are added for all argument types of all data constructors.
 However, with GADTs, type variables which are data constructor arguments
 are distinct from the type constructor arguments. simonpj suggested fixing
 this by using dataConInstOrigArgTys to instantiate the type variables.

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


More information about the Glasgow-haskell-bugs mailing list