#5686: 'impossible' happened when deriving Functor on a type with a type family
application
--------------------------------+-------------------------------------------
 Reporter:  patrick_premont     |          Owner:                  
     Type:  bug                 |         Status:  new             
 Priority:  normal              |      Component:  Compiler        
  Version:  7.2.1               |       Keywords:                  
       Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
  Failure:  Compile-time crash  |       Testcase:                  
Blockedby:                      |       Blocking:                  
  Related:                      |  
--------------------------------+-------------------------------------------

Comment(by simonpj@…):

 commit 88cd0d1fd68ec88dfe843fa14f3895a21e1ca07f
 {{{
 Author: Simon Peyton Jones <[email protected]>
 Date:   Mon Dec 12 08:12:18 2011 +0000

     Make derived functor stuff watch out for type functions (Trac #5686)

     The problem was simply that the side-condition check didn't test for a
     type function, and then splitAppTy fell over.

  compiler/typecheck/TcDeriv.lhs    |    2 +-
  compiler/typecheck/TcGenDeriv.lhs |   57
 ++++++++++++++++++++----------------
  2 files changed, 33 insertions(+), 26 deletions(-)
 }}}

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