Make quoting and reification return the same types
authorDominik Bollmann <bollmann@seas.upenn.edu>
Thu, 24 Nov 2016 19:14:09 +0000 (06:14 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Thu, 24 Nov 2016 19:14:10 +0000 (06:14 +1100)
commitd081fcfc08cfeb3fb729ed2b1df7119ea5b4cf97
tree0e52e11e55bac5656b53c91a9c8a17c59e31189e
parent14ac3725eb1e93289f205cbf432b537f6c84c4dc
Make quoting and reification return the same types

Previously TH was incorrectly returning a `Dec` using a `ConT` instead
of `PromotedT`.

Test Plan: validate

Reviewers: mainland, jstolarek, osa1, goldfire, thomie, bollmann,
bgamari, RyanGlScott, austin

Reviewed By: RyanGlScott

Subscribers: erikd

Differential Revision: https://phabricator.haskell.org/D2188

GHC Trac Issues: #11629
compiler/typecheck/TcSplice.hs
compiler/types/TyCon.hs
docs/users_guide/8.2.1-notes.rst
testsuite/tests/th/T11629.hs [new file with mode: 0644]
testsuite/tests/th/all.T