Fix #15550 by quoting RULE names during TH conversion
authorRyan Scott <ryan.gl.scott@gmail.com>
Mon, 27 Aug 2018 12:02:42 +0000 (14:02 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sun, 16 Sep 2018 16:31:17 +0000 (12:31 -0400)
commit2cdb2de12ce4a96269cfa5fcd69dabfc4eb99786
treea2942180210f4e04a33f56e113b600d95b453392
parent83ca9bb257ff9e0b9ebfa37ba1449118d15543a2
Fix #15550 by quoting RULE names during TH conversion

Summary:
When converting a `RuleP` to a GHC source `RuleD` during TH
conversion, we were stupidly not double-quoting the name of the rule.
Easily fixed.

Test Plan: make test TEST=T15550

Reviewers: goldfire, bgamari, simonpj

Reviewed By: simonpj

Subscribers: simonpj, rwbarton, carter

GHC Trac Issues: #15550

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

(cherry picked from commit 5e6cf2a9301a5473ff9c5319b96de941b1ad72dd)
compiler/hsSyn/Convert.hs
testsuite/tests/th/T15550.hs [new file with mode: 0644]
testsuite/tests/th/T15550.stderr [new file with mode: 0644]
testsuite/tests/th/all.T