diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2021-04-25 08:14:03 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-04-27 00:00:43 -0400 |
commit | dd121fa178c29a154233e95a15c755d0ca7cbdcc (patch) | |
tree | d5f8ef872539dad8c56eeedc4e583130565931f9 /testsuite/tests/th/all.T | |
parent | d9ceb2fb51b037a330a6cfaf129c24ea7f1ac644 (diff) | |
download | haskell-dd121fa178c29a154233e95a15c755d0ca7cbdcc.tar.gz |
Pretty-print HsArgPar applications correctly (#19737)
Previously, the `Outputable` instance for `HsArg` was being used to
pretty-print each `HsArgPar` in a list of `HsArg`s individually, which
simply doesn't work. In lieu of the `Outputable` instance, we now use
a dedicated `pprHsArgsApp` function to print a list of `HsArg`s as a single
unit. I have also added documentation to the `Outputable` instance for `HsArg`
to more clearly signpost that it is only suitable for debug pretty-printing.
Fixes #19737.
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 857c9f3659..fb3bc7fb49 100644 --- a/testsuite/tests/th/all.T +++ b/testsuite/tests/th/all.T @@ -523,3 +523,4 @@ test('T19363', normal, compile_and_run, ['']) test('T19377', normal, compile, ['']) test('T17804', normal, compile, ['']) test('T19470', only_ways(['ghci']), ghci_script, ['T19470.script']) +test('T19737', normal, compile, ['']) |