Fix -fno-code for modules that use -XQuasiQuotes
authorDouglas Wilson <douglas.wilson@gmail.com>
Mon, 3 Jul 2017 20:54:29 +0000 (16:54 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 3 Jul 2017 22:58:11 +0000 (18:58 -0400)
commitd55bea14c745f7f448fb24673a21b511d1c1c222
treece5dca5e7ee1e044160d1ba9146235717fcc3f18
parentc3a78623cf7bb74c8ca0749f1216e802aa37a721
Fix -fno-code for modules that use -XQuasiQuotes

In commit 53c78be0aab76a3107c4dacbb1d177afacdd37fa object code is
generated for modules depended on by modules that use -XTemplateHaskell.
This turns the same logic on for modules that use -XQuasiQuotes.

A test is added.

Note that I've based this of D3646, as it has a function I want to use.

Test Plan: ./validate

Reviewers: austin, bgamari, alexbiehl

Reviewed By: alexbiehl

Subscribers: alexbiehl, rwbarton, thomie

GHC Trac Issues: #13863

Differential Revision: https://phabricator.haskell.org/D3677
compiler/main/GHC.hs
compiler/main/GhcMake.hs
compiler/main/HscTypes.hs
testsuite/tests/quasiquotation/T13863/A.hs [new file with mode: 0644]
testsuite/tests/quasiquotation/T13863/B.hs [new file with mode: 0644]
testsuite/tests/quasiquotation/T13863/all.T [new file with mode: 0644]