GHCi: Don't remove shadowed bindings from typechecker scope.
The shadowed out bindings are accessible via qualified names like Ghci1.foo. Since they are accessable in the renamer the typechecker should be able to see them too. As a consequence they show up in :show bindings. This fixes T11547 Test Plan: Fixed current tests to accomodate to new stuff in :show bindings Added a test that verifies that the typechecker doesn't crash Reviewers: austin, bgamari, simonpj Reviewed By: simonpj Subscribers: simonpj, thomie Differential Revision: https://phabricator.haskell.org/D2447 GHC Trac Issues: #11547
Showing
- compiler/main/HscTypes.hs 2 additions, 11 deletionscompiler/main/HscTypes.hs
- testsuite/tests/ghci.debugger/scripts/break011.stdout 7 additions, 0 deletionstestsuite/tests/ghci.debugger/scripts/break011.stdout
- testsuite/tests/ghci.debugger/scripts/hist001.stdout 4 additions, 0 deletionstestsuite/tests/ghci.debugger/scripts/hist001.stdout
- testsuite/tests/ghci/scripts/T11547.script 9 additions, 0 deletionstestsuite/tests/ghci/scripts/T11547.script
- testsuite/tests/ghci/scripts/T11547.stdout 5 additions, 0 deletionstestsuite/tests/ghci/scripts/T11547.stdout
- testsuite/tests/ghci/scripts/T2976.stdout 2 additions, 0 deletionstestsuite/tests/ghci/scripts/T2976.stdout
- testsuite/tests/ghci/scripts/all.T 1 addition, 0 deletionstestsuite/tests/ghci/scripts/all.T
Loading
Please register or sign in to comment