diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-01-18 23:12:51 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-01-19 00:07:33 +0100 |
commit | d2ea7f94cb21662857cd50c95ff41943e5911a9b (patch) | |
tree | 7f19f41c5624a85df05d27fcfb85ffb3d6071053 /testsuite/tests/ghci/scripts/T11051a.script | |
parent | cbc03f1ce3ae23d6b9515157db7c43a2456ad9c9 (diff) | |
download | haskell-d2ea7f94cb21662857cd50c95ff41943e5911a9b.tar.gz |
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
Diffstat (limited to 'testsuite/tests/ghci/scripts/T11051a.script')
-rw-r--r-- | testsuite/tests/ghci/scripts/T11051a.script | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T11051a.script b/testsuite/tests/ghci/scripts/T11051a.script new file mode 100644 index 0000000000..96fadeb7d3 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T11051a.script @@ -0,0 +1,3 @@ +-- Ensure that type representation bindings aren't visible to user +:set +t +data Hi |