Improve error reporting when there's an error inside a spliced expression
authorsimonpj@microsoft.com <unknown>
Thu, 5 Nov 2009 12:07:33 +0000 (12:07 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 5 Nov 2009 12:07:33 +0000 (12:07 +0000)
commit830f4b00a7299dfa742c89e13e861f310d804642
tree16341521dded5c8e9d96023b3bbef90b84a743fe
parent8f53119f5772a8c8dc9fd08065cc86df7a4f0b26
Improve error reporting when there's an error inside a spliced expression

If an error occurs in *spliced* code, it can be tricky to understand
what is going on.  With this patch, in
     - epxressions
     - types
we give a helpful indicator that it's in the result of a splice.

For declarations it's harder, because they get type-checked in a
group with other non-spliced decls, so I have not made the same improvement.
But it's still better than it was.
compiler/typecheck/TcSplice.lhs