Improve error reporting for 'deriving'
authorsimonpj@microsoft.com <unknown>
Wed, 31 Dec 2008 14:35:21 +0000 (14:35 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 31 Dec 2008 14:35:21 +0000 (14:35 +0000)
commit9b69d74f05582ccf140c007128a52274aa49bd65
treed017588d4a9401a10d225cebf4cdb55edc094204
parent1fab5eeaf45798ee7832497d6518883be451bfca
Improve error reporting for 'deriving'

a) Improve the extra suggested fix when there's a "no instance"
   error in a deriving clause.

b) Improve error location recording in tcInstDecl2

Many of the changes in tcInstDecl2 are simple reformatting.
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcSimplify.lhs