diff options
author | Adam Sandberg Eriksson <adam@sandbergericsson.se> | 2019-10-31 07:28:21 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-01 15:49:16 -0400 |
commit | c9236384e5aaa50e188f2b8549d61c0a20d1af86 (patch) | |
tree | bf3aa196cd8cac2b6534ee67f02b1fbc374482b7 /testsuite/tests/th/T17379b.hs | |
parent | dab12c8780fe1e6e3c2adb1c9565e2a43aa207db (diff) | |
download | haskell-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.hs | 8 |
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)] [] ]) |