summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T22819.stderr
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2023-01-24 20:57:57 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-30 21:19:56 -0500
commit2f1450521b816a7d287b72deba14d59b6ccfbdbf (patch)
treede16ae0d22fe31fae4f6079dacc1caeaba9db930 /testsuite/tests/th/T22819.stderr
parent20598ef6d9e26e2e0af9ac42a42e7be00d7cc4f3 (diff)
downloadhaskell-2f1450521b816a7d287b72deba14d59b6ccfbdbf.tar.gz
Fix two bugs in TypeData TH reification
This patch fixes two issues in the way that `type data` declarations were reified with Template Haskell: * `type data` data constructors are now properly reified using `DataConI`. This is accomplished with a special case in `reifyTyCon`. Fixes #22818. * `type data` type constructors are now reified in `reifyTyCon` using `TypeDataD` instead of `DataD`. Fixes #22819.
Diffstat (limited to 'testsuite/tests/th/T22819.stderr')
-rw-r--r--testsuite/tests/th/T22819.stderr1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/th/T22819.stderr b/testsuite/tests/th/T22819.stderr
new file mode 100644
index 0000000000..6389658d1e
--- /dev/null
+++ b/testsuite/tests/th/T22819.stderr
@@ -0,0 +1 @@
+type data T22818.T = T22818.MkT