summaryrefslogtreecommitdiff
path: root/testsuite/tests/quotes/TH_nested_splice.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/quotes/TH_nested_splice.hs')
-rw-r--r--testsuite/tests/quotes/TH_nested_splice.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/quotes/TH_nested_splice.hs b/testsuite/tests/quotes/TH_nested_splice.hs
new file mode 100644
index 0000000000..811aa5e426
--- /dev/null
+++ b/testsuite/tests/quotes/TH_nested_splice.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TemplateHaskellQuotes #-}
+{-# LANGUAGE NoMonomorphismRestriction #-}
+module TH_nested_splice where
+
+a = [| 5 |]
+
+b = [| $(a) |]
+
+c = [|| 5 ||]
+
+d = [|| $$(c) ||]