summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_spliceDecl3.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_spliceDecl3.hs')
-rw-r--r--tests/examples/ghc86/TH_spliceDecl3.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_spliceDecl3.hs b/tests/examples/ghc86/TH_spliceDecl3.hs
new file mode 100644
index 0000000..208fef4
--- /dev/null
+++ b/tests/examples/ghc86/TH_spliceDecl3.hs
@@ -0,0 +1,13 @@
+-- test splicing of reified and renamed data declarations
+{-# LANGUAGE TemplateHaskell #-}
+
+module TH_spliceDecl3
+where
+
+import Language.Haskell.TH
+import TH_spliceDecl3_Lib
+
+data T = C
+
+$(do { TyConI d <- reify ''T; rename' d})
+