Disambiguate reified closed type family kinds in TH
authorRyan Scott <ryan.gl.scott@gmail.com>
Fri, 9 Dec 2016 13:50:54 +0000 (08:50 -0500)
committerRyan Scott <ryan.gl.scott@gmail.com>
Fri, 9 Dec 2016 13:50:54 +0000 (08:50 -0500)
commitf65ff2c4c9b60e370a722ac7572186816e23e573
treecb8e7f56d8ddf048cf75f98b0e085600c5e6df39
parent6da62535469149d69ec98674db1c51dbde0efab1
Disambiguate reified closed type family kinds in TH

Summary:
A continuation of #8953. This fixes an oversight in which the
left-hand sides of closed type families, when reified in Template Haskell,
would not be given kind annotations, even when they are necessary for
disambiguation purposes in the presence of `PolyKinds`.

Fixes #8953 and #12646.

Test Plan: ./validate

Reviewers: hvr, bgamari, austin, goldfire

Reviewed By: goldfire

Subscribers: thomie

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

GHC Trac Issues: #8953, #12646
compiler/typecheck/TcSplice.hs
docs/users_guide/8.2.1-notes.rst
testsuite/tests/th/T12646.hs [new file with mode: 0644]
testsuite/tests/th/T12646.stderr [new file with mode: 0644]
testsuite/tests/th/T8884.stderr
testsuite/tests/th/all.T