diff options
Diffstat (limited to 'testsuite/tests/quotes/TH_nested_splice.hs')
-rw-r--r-- | testsuite/tests/quotes/TH_nested_splice.hs | 11 |
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) ||] |