Elaborate "deriving" error messages
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 3 Dec 2013 10:42:55 +0000 (10:42 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 3 Dec 2013 10:42:55 +0000 (10:42 +0000)
commit4025d66cc795b728f745aec23fc5c2267d1839f0
treea1558e0e0a71b99bdd86822ce563dd359ac8b4f8
parent51bebb7c324d2572d5a299f950c09dc4d21cd271
Elaborate "deriving" error messages

If "deriving (C)" fails, it will now, if possible, indicate which
particular field of which constructor has caused the failure. (This
fixes #8576)
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcErrors.lhs
compiler/typecheck/TcRnTypes.lhs