Fix #15243 by fixing incorrect uses of NotPromoted
authorRyan Scott <ryan.gl.scott@gmail.com>
Thu, 7 Jun 2018 17:28:53 +0000 (13:28 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 7 Jun 2018 22:06:30 +0000 (18:06 -0400)
commit569c16a76ead8f9012fafe7a7e97c72fabe0bb94
tree4b483d838e585ab0d48516ee54d23b2141d33fee
parent5026840fddc86c3bc10693eed676fbf6a74f4227
Fix #15243 by fixing incorrect uses of NotPromoted

In `Convert`, we were incorrectly using `NotPromoted` to
denote type constructors that were actually intended to be promoted,
resulting in poor `-ddump-splices` output (as seen in #15243).
Easily fixed.

Test Plan: make test TEST=T15243

Reviewers: bgamari, goldfire

Reviewed By: bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #15243

Differential Revision: https://phabricator.haskell.org/D4809
compiler/hsSyn/Convert.hs
testsuite/tests/th/T15243.hs [new file with mode: 0644]
testsuite/tests/th/T15243.stderr [new file with mode: 0644]
testsuite/tests/th/TH_PromotedTuple.stderr
testsuite/tests/th/TH_TyInstWhere1.stderr
testsuite/tests/th/all.T