Fix Trac #1814 (staging interaction in Template Haskell and GHCi), and add comments
authorsimonpj@microsoft.com <unknown>
Tue, 6 Nov 2007 13:55:48 +0000 (13:55 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 6 Nov 2007 13:55:48 +0000 (13:55 +0000)
commit3f1b316d7035c55cd712cd39a9981339bcef2e8c
tree996cd4631dabb4203a94160db8c98122fad02b73
parent08efb089bb9a1a9c77df6caefe15b44d6ab5b2d3
Fix Trac #1814 (staging interaction in Template Haskell and GHCi), and add comments

An Id bound by GHCi from a previous Stmt is Global but Internal, and
I'd forgotten that, leading to unnecessary restrictions when using TH
and GHCi together.

This patch fixes the problem and adds lots of explanatory comments (which
is where most of the extra lines come from).
compiler/typecheck/TcEnv.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcRnMonad.lhs
compiler/typecheck/TcRnTypes.lhs
compiler/typecheck/TcSplice.lhs