Don't drop arguments in TH type arguments
authorAlec Theriault <alec.theriault@gmail.com>
Thu, 4 Oct 2018 22:13:15 +0000 (18:13 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Thu, 4 Oct 2018 22:13:16 +0000 (18:13 -0400)
commitba163c3b3502df039e589c5bb0bc9ea767267b2a
treef33232f02ca1c775694153381e3b0d69771c89c4
parentbace26aadaafa4064e78f9ed088c1e2217221acc
Don't drop arguments in TH type arguments

Summary:
When converting from TH AST back to HsType, we were occasionally
dropping type arguments. This resulted in incorrectly accepted programs
as well as incorrectly rejected programs.

Test Plan: make TEST=T15360a && make TEST=T15360b

Reviewers: goldfire, bgamari, tdammers

Reviewed By: bgamari, tdammers

Subscribers: RyanGlScott, rwbarton, carter

GHC Trac Issues: #15360

Differential Revision: https://phabricator.haskell.org/D5188
compiler/hsSyn/Convert.hs
testsuite/tests/th/T15360a.hs [new file with mode: 0644]
testsuite/tests/th/T15360b.hs [new file with mode: 0644]
testsuite/tests/th/T15360b.stderr [new file with mode: 0644]
testsuite/tests/th/all.T