Turn a TH Name for built-in syntax into an unqualified RdrName
authorChaitanya Koparkar <ckoparkar@gmail.com>
Mon, 19 Mar 2018 16:04:03 +0000 (12:04 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 19 Mar 2018 16:05:12 +0000 (12:05 -0400)
commit9868f91fd9f04fdee241df69ae826feeae89a0b6
treec63815105e0477d63ea5ebf7cc064fc6ef989f33
parentfbd9b886df92d1e0be0bdaacc7352273b504b78d
Turn a TH Name for built-in syntax into an unqualified RdrName

Previously, the Renamer would turn any fully qualified Template Haskell
name into a corresponding fully qualified `RdrName`. But this is not
what we want for built-in syntax, as it produces unnecessarily qualified
names (eg. GHC.Types.[], GHC.Tuple.(,) etc.).

Test Plan: ./validate

Reviewers: RyanGlScott, bgamari, goldfire

Reviewed By: RyanGlScott, bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #13776

Differential Revision: https://phabricator.haskell.org/D4506
compiler/hsSyn/Convert.hs
testsuite/tests/th/T13776.hs [new file with mode: 0644]
testsuite/tests/th/T13776.stderr [new file with mode: 0644]
testsuite/tests/th/T3319.stderr
testsuite/tests/th/T5700.stderr
testsuite/tests/th/TH_foreignInterruptible.stderr
testsuite/tests/th/all.T