#6074: Instance inference failure with GADTs
----------------------------------------+-----------------------------------
    Reporter:  goldfire                 |       Owner:                  
        Type:  feature request          |      Status:  new             
    Priority:  normal                   |   Milestone:  7.8.1           
   Component:  Compiler (Type checker)  |     Version:  7.5             
    Keywords:  GADTs                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple         |     Failure:  None/Unknown    
  Difficulty:  Unknown                  |    Testcase:                  
   Blockedby:                           |    Blocking:                  
     Related:                           |  
----------------------------------------+-----------------------------------

Comment(by simonpj):

 No, types are erased at runtime.  You can't match on them. That's what
 GADTs are for: value-level things where matching conveys type information!

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