#7175: Panic when wrongly using a type family as return types for GADTs
--------------------------------+-------------------------------------------
 Reporter:  goldfire            |          Owner:                  
     Type:  bug                 |         Status:  new             
 Priority:  normal              |      Component:  Compiler        
  Version:  7.6.1-rc1           |       Keywords:                  
       Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
  Failure:  Compile-time crash  |       Testcase:                  
Blockedby:                      |       Blocking:                  
  Related:                      |  
--------------------------------+-------------------------------------------

Comment(by simonpj@…):

 commit d0ddde58f928a6b156d8061c406226c4fbb7cd22
 {{{
 Author: Simon Peyton Jones <simo...@microsoft.com>
 Date:   Wed Aug 29 11:33:33 2012 +0100

     Fail earlier if there's an error in a type declaration

     This change means that we don't recover from erroneous type
     declarations, thereby reporting fewer errors.  But trying to
     recover confused GHC (leading to a pattern match failure in
     the compiler Trac #7175), and it turned out to be tricky
     to fix that.

     So this patch takes the more conservative path of failing
     earlier, perhaps reporting fewer real errors.

  compiler/typecheck/TcTyClsDecls.lhs |    7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)
 }}}

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