summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2013-09-03 09:10:26 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2013-09-03 09:20:35 +0100
commitdfa8ef031c83998c163bb94fb84ff8e02ef86cf8 (patch)
tree419031d9a9985af5319a21f1cb0e7ef09a9c9249 /compiler/codeGen
parente52554768ad28bd0c191826100786b1aee3295dc (diff)
downloadhaskell-dfa8ef031c83998c163bb94fb84ff8e02ef86cf8.tar.gz
Improve Linting in GHCi (fixes Trac #8215)
The original problem was that we weren't bringing varaibles bound in the interactive context into scope before Linting the result of a top-level declaration in GHCi. (We were doing this for expressions.) Moreover I found that we weren't Linting the result of desugaring a GHCi expression, which we really should be doing. It took me a bit of time to unravel all this, and I did some refactoring to make it easier next time. * CoreMonad contains the Lint wrappers that get the right environments into place. It always had endPass and lintPassResult (which Lints bindings), but now it has lintInteractiveExpr. * Both use a common function CoreMonad.interactiveInScope to find those in-scope variables. Quite a bit of knock-on effects from this, but nothing exciting.
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions