Put context information for warnings in errMsgExtraInfo.
authorThomas Schilling <nominolo@googlemail.com>
Tue, 15 Sep 2009 15:03:53 +0000 (15:03 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Tue, 15 Sep 2009 15:03:53 +0000 (15:03 +0000)
commitee2571bd2a80683d33cf65a01942bc8be50a5e33
tree09ab363b37b99cf7b45321e2ce14183cce452080
parent530ced58cd18b165d03b6f62ff513c83c4fa4718
Put context information for warnings in errMsgExtraInfo.

For type checker warnings, the context information ("In the expression
...") was simply appended to the main message while for proper errors
they live in errMsgExtraInfo.  This allows GHC API clients to drop
that information if not needed.
compiler/main/ErrUtils.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcSplice.lhs