Fix #12525: Remove derived bindings from the TyThings from getBindings
authorRoland Senn <rsx@bluewin.ch>
Sat, 17 Nov 2018 11:22:23 +0000 (12:22 +0100)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Sat, 17 Nov 2018 12:51:58 +0000 (13:51 +0100)
commit921fd890abe0e7267962c9439098b03c94ebdb9b
treed3c70d86ea798e57540e3bcec8e6120128dedd94
parent65517979adf03a1fa5d33d34e419e7dfc9444002
Fix #12525: Remove derived bindings from the TyThings from getBindings

Summary:
Remove derived OccNames from the list of TyThings returned by the function GHC.getBindings.
Therefore the output of the `:show bindings `command will not contain names generated by GHC.

Test Plan: make test TEST=T12525

Reviewers: austin, hvr, alanz, angerman, thomie, bgamari, osa1

Reviewed By: osa1

Subscribers: simonpj, osa1, rwbarton, carter

GHC Trac Issues: #12525

Differential Revision: https://phabricator.haskell.org/D5326
ghc/GHCi/UI.hs
testsuite/tests/ghci/should_run/T12525.script [new file with mode: 0644]
testsuite/tests/ghci/should_run/T12525.stdout [new file with mode: 0644]
testsuite/tests/ghci/should_run/all.T