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).
Showing
- compiler/typecheck/TcEnv.lhs 5 additions, 1 deletioncompiler/typecheck/TcEnv.lhs
- compiler/typecheck/TcExpr.lhs 3 additions, 5 deletionscompiler/typecheck/TcExpr.lhs
- compiler/typecheck/TcRnDriver.lhs 25 additions, 13 deletionscompiler/typecheck/TcRnDriver.lhs
- compiler/typecheck/TcRnMonad.lhs 5 additions, 3 deletionscompiler/typecheck/TcRnMonad.lhs
- compiler/typecheck/TcRnTypes.lhs 1 addition, 1 deletioncompiler/typecheck/TcRnTypes.lhs
- compiler/typecheck/TcSplice.lhs 44 additions, 15 deletionscompiler/typecheck/TcSplice.lhs
Loading
Please register or sign in to comment