summaryrefslogtreecommitdiff
path: root/testsuite/tests/quotes/TH_top_splice.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/quotes/TH_top_splice.hs')
-rw-r--r--testsuite/tests/quotes/TH_top_splice.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/quotes/TH_top_splice.hs b/testsuite/tests/quotes/TH_top_splice.hs
new file mode 100644
index 0000000000..a7092bfd9d
--- /dev/null
+++ b/testsuite/tests/quotes/TH_top_splice.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE TemplateHaskellQuotes #-}
+module TH_top_splice where
+
+-- Should be a compile time error as TemplateHaskell is not enabled.
+
+foo = $([| 1 |])
+