Make derived functor stuff watch out for type functions (Trac #5686)
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Dec 2011 08:12:18 +0000 (08:12 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Dec 2011 08:12:18 +0000 (08:12 +0000)
commit88cd0d1fd68ec88dfe843fa14f3895a21e1ca07f
treef316647b13e4673b89d8b04dae6ad3a48460c2c8
parent34ab89a9f86a33b225a7d8743302db8808127b64
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
compiler/typecheck/TcGenDeriv.lhs