#3163: GADTs should not allow polymorphism in return type
----------------------------------------+-----------------------------------
    Reporter:  Scott Turner             |        Owner:         
        Type:  bug                      |       Status:  new    
    Priority:  normal                   |    Milestone:         
   Component:  Compiler (Type checker)  |      Version:  6.10.1 
    Severity:  normal                   |   Resolution:         
    Keywords:                           |   Difficulty:  Unknown
    Testcase:                           |           Os:  Linux  
Architecture:  x86                      |  
----------------------------------------+-----------------------------------
Changes (by simonpj):

  * difficulty:  => Unknown
  * summary:  quantified types fail to match in GADT case => GADTs should
              not allow polymorphism in return type

Comment:

 GADTs shouldn't allow for-all types in the return type, even with
 `-XImpredicativeTypes`, I'm afraid.  It's hard enough doing the equality
 reasoning over monotypes, and I have no idea what additional complications
 are introduced by polytypes.

 So I'll re-title this ticket!

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3163#comment:1>
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