summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/all.T
diff options
context:
space:
mode:
authorZubin Duggal <zubin.duggal@gmail.com>2022-02-25 17:41:11 +0530
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-19 07:35:49 -0400
commite9d8de93ed8343be5a9530346f254b18dd6df3bc (patch)
tree25cdf7530bd77f5193b8e2231e01972c7cf3f76a /testsuite/tests/th/all.T
parent435a3d5df098099ec984847b84f0bc734f5d2c3f (diff)
downloadhaskell-e9d8de93ed8343be5a9530346f254b18dd6df3bc.tar.gz
TH: Fix pretty printing of newtypes with operators and GADT syntax (#20868)
The pretty printer for regular data types already accounted for these, and had some duplication with the newtype pretty printer. Factoring the logic out into a common function and using it for both newtypes and data declarations is enough to fix the bug.
Diffstat (limited to 'testsuite/tests/th/all.T')
-rw-r--r--testsuite/tests/th/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T
index 01a64a3848..97e5700607 100644
--- a/testsuite/tests/th/all.T
+++ b/testsuite/tests/th/all.T
@@ -549,3 +549,4 @@ test('T20842', normal, compile_and_run, [''])
test('T15433a', [extra_files(['T15433_aux.hs'])], multimod_compile_fail, ['T15433a', '-v0'])
test('T15433b', [extra_files(['T15433_aux.hs'])], multimod_compile, ['T15433b', '-v0'])
test('T20711', normal, compile_and_run, [''])
+test('T20868', normal, compile_and_run, [''])