diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2022-06-22 21:09:22 +0100 |
---|---|---|
committer | sheaf <sam.derbyshire@gmail.com> | 2022-07-06 11:32:37 +0200 |
commit | a7f407296514af572cbea1ac6da31662c37d29c6 (patch) | |
tree | c989fb49efb8a47287a1b7828f53a8cfae2e7926 /distrib/mkDocs | |
parent | 354ae313b6f142c74f1398a5086ecdf2bf5f739c (diff) | |
download | haskell-wip/romes/ttg-prune.tar.gz |
Fix exact printing of the HsRule namewip/romes/ttg-prune
Prior to this branch, the HsRule name was
XRec pass (SourceText,RuleName)
and there is an ExactPrint instance for (SourceText, RuleName).
The SourceText has moved to a different location, so synthesise the
original to trigger the correct instance when printing.
We need both the SourceText and RuleName when exact printing, as it is
possible to have a NoSourceText variant, in which case we fall back to
the FastString.
Diffstat (limited to 'distrib/mkDocs')
0 files changed, 0 insertions, 0 deletions