summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/print031.stdout
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-03-11 15:24:49 +0100
committerBen Gamari <ben@smart-cactus.org>2016-03-12 12:03:19 +0100
commit4d791b4f77975422df38f6b43084008edd097f1b (patch)
tree327edc081c24a62309a88aa2db4f6c407eb12700 /testsuite/tests/ghci.debugger/scripts/print031.stdout
parente46742f5c51938bc7c992ac37fecc6df8cab7647 (diff)
downloadhaskell-4d791b4f77975422df38f6b43084008edd097f1b.tar.gz
Simplify: Make generated names more useful
makeTrivial is responsible for concocting names during simplification. Previously, however, it would make no attempt to generate a name that might be useful to later readers of the resulting Core. Here we add a bit of state to SimplEnv: a finite depth stack of binders within which we are currently simplifying. We then derive generated binders from this context. See #11676. Open questions: * Is there a better way to accomplish this? * Is `maxContextDepth` too large/small? Test Plan: Validate, look at Core. Reviewers: austin, simonpj Reviewed By: simonpj Subscribers: thomie, simonpj Differential Revision: https://phabricator.haskell.org/D1970 GHC Trac Issues: #11676
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/print031.stdout')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/print031.stdout2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/print031.stdout b/testsuite/tests/ghci.debugger/scripts/print031.stdout
index 6a326a6fae..0a13e0a225 100644
--- a/testsuite/tests/ghci.debugger/scripts/print031.stdout
+++ b/testsuite/tests/ghci.debugger/scripts/print031.stdout
@@ -2,5 +2,5 @@ Breakpoint 0 activated at print031.hs:7:7-19
MkT2 [Just (Phantom 1)]
Stopped in Print031.f, print031.hs:7:7-19
_result :: Bool = _
-x :: t (Phantom a6) = [Just (Phantom 1)]
+x :: t (Phantom a) = [Just (Phantom 1)]
x = [Just (Phantom 1)]