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)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Mon, 27 Aug 2018 12:02:42 +0000 (14:02 +0200)
commit5e6cf2a9301a5473ff9c5319b96de941b1ad72dd
tree78e37421b84d14b96af5371d33ba94b4de10626e
parentc523525b0e434d848f6e47ea3f9a37485965fa79
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
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