diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2019-12-06 17:11:46 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-11 18:04:17 -0500 |
commit | 82023524ff050f26bf00be3432a97f1e537caf41 (patch) | |
tree | 27357f3a71baec1bbe8dab1c59ca82e370b3ca44 /testsuite/tests/quotes/TH_top_splice.hs | |
parent | 58a4ddeff7730d160dd66f19c288f8b5b27679e3 (diff) | |
download | haskell-82023524ff050f26bf00be3432a97f1e537caf41.tar.gz |
TemplateHaskellQuotes: Allow nested splices
There is no issue with nested splices as they do not require any compile
time code execution. All execution is delayed until the top-level
splice.
Diffstat (limited to 'testsuite/tests/quotes/TH_top_splice.hs')
-rw-r--r-- | testsuite/tests/quotes/TH_top_splice.hs | 7 |
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 |]) + |