diff options
| author | Ryan Scott <ryan.gl.scott@gmail.com> | 2021-02-13 20:23:13 -0500 |
|---|---|---|
| committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2021-02-24 18:33:16 -0500 |
| commit | 1e17221abd0520b956b58d203234d890b9970f52 (patch) | |
| tree | e6716d940d324e47396186f1f82501508f71ff22 /testsuite/tests/th/all.T | |
| parent | 10e115d39d6062151cc95256fee052b197a46186 (diff) | |
| download | haskell-wip/T19363.tar.gz | |
Fix #19363 by using pprName' {Applied,Infix} in the right placeswip/T19363
It was revealed in #19363 that the Template Haskell pretty-printer implemented
in `Language.Haskell.TH.Ppr` did not pretty-print infix names or symbolic names
correctly in certain situations, such as in data constructor declarations or
fixity declarations. Easily fixed by using `pprName' Applied` (which always
parenthesizes symbolic names in prefix position) or `pprName' Infix` (which
always surrounds alphanumeric names with backticks in infix position) in the
right spots.
Fixes #19363.
Diffstat (limited to 'testsuite/tests/th/all.T')
| -rw-r--r-- | testsuite/tests/th/all.T | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T index 866bbdef31..235c0148f7 100644 --- a/testsuite/tests/th/all.T +++ b/testsuite/tests/th/all.T @@ -518,4 +518,5 @@ test('T18388', normal, compile, ['']) test('T18612', normal, compile, ['']) test('T18740c', normal, compile_fail, ['']) test('T18740d', normal, compile_fail, ['']) +test('T19363', normal, compile_and_run, ['']) test('T19377', normal, compile, ['']) |
