diff options
Diffstat (limited to 'testsuite/tests/th/TH_spliceDecl2.hs')
-rw-r--r-- | testsuite/tests/th/TH_spliceDecl2.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceDecl2.hs b/testsuite/tests/th/TH_spliceDecl2.hs new file mode 100644 index 0000000000..e7f92d2c11 --- /dev/null +++ b/testsuite/tests/th/TH_spliceDecl2.hs @@ -0,0 +1,11 @@ +-- test splicing of quoted data and newtype declarations + +module TH_spliceDecl2 +where + +import Language.Haskell.TH + +-- splice a simple quoted declaration (x 2) +$([d| data T1 = C1 |]) + +$([d| newtype T2 = C2 String |]) |