#2905: require -XGADTs in order to pattern-match GADTs
-------------------------------------+--------------------------------------
 Reporter:  guest                    |          Owner:                  
     Type:  proposal                 |         Status:  new             
 Priority:  normal                   |      Milestone:                  
Component:  Compiler (Type checker)  |        Version:  6.10.1          
 Severity:  normal                   |     Resolution:                  
 Keywords:                           |       Testcase:                  
       Os:  Unknown/Multiple         |   Architecture:  Unknown/Multiple
-------------------------------------+--------------------------------------
Comment (by Dominic):

 I would vote for requiring the -XGADTs flag if you are using GADTs not
 merely defining them. Either that or a better suggestion on the error
 message (although this might be annoying for real "GADT pattern match in
 non-rigid context" errors).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2905#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to