summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T17379b.hs
diff options
context:
space:
mode:
authorAdam Sandberg Eriksson <adam@sandbergericsson.se>2019-10-31 07:28:21 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-11-01 15:49:16 -0400
commitc9236384e5aaa50e188f2b8549d61c0a20d1af86 (patch)
treebf3aa196cd8cac2b6534ee67f02b1fbc374482b7 /testsuite/tests/th/T17379b.hs
parentdab12c8780fe1e6e3c2adb1c9565e2a43aa207db (diff)
downloadhaskell-c9236384e5aaa50e188f2b8549d61c0a20d1af86.tar.gz
template-haskell: require at least 1 GADT constructor name (#17379)
Diffstat (limited to 'testsuite/tests/th/T17379b.hs')
-rw-r--r--testsuite/tests/th/T17379b.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/th/T17379b.hs b/testsuite/tests/th/T17379b.hs
new file mode 100644
index 0000000000..c83d180d18
--- /dev/null
+++ b/testsuite/tests/th/T17379b.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE TemplateHaskell #-}
+{-# LANGUAGE GADTSyntax #-}
+
+module T17379b where
+
+import Language.Haskell.TH
+
+$(let typ = mkName "T" in pure [ DataD [] typ [] Nothing [RecGadtC [] [] (ConT typ)] [] ])