diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-12-15 16:08:52 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-15 20:45:59 +0100 |
commit | e2c917381ff099820b1ee30fcfa8bc0c20cf5c1f (patch) | |
tree | f9295bd3f9ab1e4d4b296960d1f046d1eb37b449 /testsuite/tests/simplCore/should_compile/T8274.stdout | |
parent | 947e44feebb4e979d7d476ff2aa5c7054a1c0899 (diff) | |
download | haskell-e2c917381ff099820b1ee30fcfa8bc0c20cf5c1f.tar.gz |
Narrow scope of special-case for unqualified printing of names in core libraries
Commit 547c597112954353cef7157cb0a389bc4f6303eb modifies the
pretty-printer to render names from a set of core packages (`base`,
`ghc-prim`, `template-haskell`) as unqualified. The idea here was that
many of these names typically are not in scope but are well-known by the
user and therefore qualification merely introduces noise.
This, however, is a very large hammer and potentially breaks any
consumer who relies on parsing GHC output (hence #11208). This commit
partially reverts this change, now only printing `Constraint` (which
appears quite often in errors) as unqualified.
Fixes #11208.
Updates tests in `array` submodule.
Test Plan: validate
Reviewers: hvr, thomie, austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1619
GHC Trac Issues: #11208
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/T8274.stdout')
-rw-r--r-- | testsuite/tests/simplCore/should_compile/T8274.stdout | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T8274.stdout b/testsuite/tests/simplCore/should_compile/T8274.stdout index 8d4236b282..269f4e73f6 100644 --- a/testsuite/tests/simplCore/should_compile/T8274.stdout +++ b/testsuite/tests/simplCore/should_compile/T8274.stdout @@ -1,12 +1,12 @@ -T8274.$trModule2 = TrNameS "main"# -T8274.$trModule1 = TrNameS "T8274"# -T8274.$tc'Positives1 = TrNameS "'Positives"# - TyCon 0## 0## T8274.$trModule T8274.$tc'Positives1 -T8274.$tcP1 = TrNameS "P"# -T8274.$tcP = TyCon 0## 0## T8274.$trModule T8274.$tcP1 -T8274.$tc'Negatives1 = TrNameS "'Negatives"# - TyCon 0## 0## T8274.$trModule T8274.$tc'Negatives1 -T8274.$tcN1 = TrNameS "N"# -T8274.$tcN = TyCon 0## 0## T8274.$trModule T8274.$tcN1 +T8274.$trModule2 = GHC.Types.TrNameS "main"# +T8274.$trModule1 = GHC.Types.TrNameS "T8274"# +T8274.$tc'Positives1 = GHC.Types.TrNameS "'Positives"# + GHC.Types.TyCon 0## 0## T8274.$trModule T8274.$tc'Positives1 +T8274.$tcP1 = GHC.Types.TrNameS "P"# +T8274.$tcP = GHC.Types.TyCon 0## 0## T8274.$trModule T8274.$tcP1 +T8274.$tc'Negatives1 = GHC.Types.TrNameS "'Negatives"# + GHC.Types.TyCon 0## 0## T8274.$trModule T8274.$tc'Negatives1 +T8274.$tcN1 = GHC.Types.TrNameS "N"# +T8274.$tcN = GHC.Types.TyCon 0## 0## T8274.$trModule T8274.$tcN1 p = T8274.Positives 42# 4.23# 4.23## '4'# 4## n = T8274.Negatives -4# -4.0# -4.0## |