Fix logic error in GhcMake.enableCodeGenForTH
authorDouglas Wilson <douglas.wilson@gmail.com>
Tue, 11 Jul 2017 17:58:17 +0000 (13:58 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 11 Jul 2017 18:34:09 +0000 (14:34 -0400)
commitea751248d80efe7633a31120da56e9a31b6820ff
treec47cdef025659590952c317dad74208fd2f315cd
parentabda03be6794ffd9bbc2c4f77d7f9d534a202b21
Fix logic error in GhcMake.enableCodeGenForTH

transitive_deps_set was incorrect, it was not considering the
dependencies of dependencies in some cases. I've corrected it and tidied
it up a little.

The test case from leftaroundabout, as linked to from the ticket, is
added with small modifications to flatten directory structure.

Test Plan: make test TEST=T13949

Reviewers: austin, bgamari, alexbiehl

Reviewed By: alexbiehl

Subscribers: rwbarton, thomie, alexbiehl

GHC Trac Issues: #13949

Differential Revision: https://phabricator.haskell.org/D3720
compiler/main/GhcMake.hs
testsuite/tests/th/should_compile/T13949/ASCII.hs [new file with mode: 0644]
testsuite/tests/th/should_compile/T13949/Makefile [new file with mode: 0644]
testsuite/tests/th/should_compile/T13949/PatternGenerator.hs [new file with mode: 0644]
testsuite/tests/th/should_compile/T13949/These.hs [new file with mode: 0644]
testsuite/tests/th/should_compile/T13949/Tree.hs [new file with mode: 0644]
testsuite/tests/th/should_compile/T13949/all.T [new file with mode: 0644]