summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceD1_Lib.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/th/TH_spliceD1_Lib.hs')
-rw-r--r--testsuite/tests/th/TH_spliceD1_Lib.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceD1_Lib.hs b/testsuite/tests/th/TH_spliceD1_Lib.hs
new file mode 100644
index 0000000000..47ffa4e4e6
--- /dev/null
+++ b/testsuite/tests/th/TH_spliceD1_Lib.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+module TH_spliceD1_Lib where
+import Language.Haskell.TH
+
+foo :: Q [Dec]
+foo = sequence [funD (mkName "f")
+ [
+ clause
+ [varP $ mkName "c",varP $ mkName "c"]
+ (normalB $ [| undefined |])
+ []
+ ]]