Improve the handling of deriving, in error cases
authorsimonpj@microsoft.com <unknown>
Wed, 20 Jun 2007 10:28:28 +0000 (10:28 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 20 Jun 2007 10:28:28 +0000 (10:28 +0000)
commitf6a741fad12b14b102be1aca959b8d63cbb2734a
tree75d52a71f956e3e60842e78f857abf60f9cd3131
parent5c2ecdff9b9e814c2549da0b3efd61d5107c72d6
Improve the handling of deriving, in error cases

I'd been too ambitious with error handling for 'deriving', and got it
entirely wrong.  This fixes it.  See extensive
Note [Exotic derived instance contexts]
in TcSimplify.  (Most of the extra lines are comments!)
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcSimplify.lhs