Hide derived OccNames from user
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 18 Jan 2016 22:12:51 +0000 (23:12 +0100)
committerBen Gamari <ben@smart-cactus.org>
Mon, 18 Jan 2016 23:07:33 +0000 (00:07 +0100)
commitd2ea7f94cb21662857cd50c95ff41943e5911a9b
tree7f19f41c5624a85df05d27fcfb85ffb3d6071053
parentcbc03f1ce3ae23d6b9515157db7c43a2456ad9c9
Hide derived OccNames from user

This hides derived OccNames from the Names returned from
runDeclsWithLocation and clarifies the documentation. This is done to
ensure that these names (originating from, e.g., derived Generic
instances and type representation bindings) don't show up in ghci output
when run with `:set +t`. This fixes #11051.

Test Plan: Validate with included tests

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, hvr

Differential Revision: https://phabricator.haskell.org/D1794

GHC Trac Issues: #11051
compiler/main/InteractiveEval.hs
testsuite/tests/ghci/scripts/T11051a.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T11051a.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/T11051b.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T11051b.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T