aboutsummaryrefslogtreecommitdiff
path: root/html-test/tests/QuasiQuote.hs
diff options
context:
space:
mode:
Diffstat (limited to 'html-test/tests/QuasiQuote.hs')
-rw-r--r--html-test/tests/QuasiQuote.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/html-test/tests/QuasiQuote.hs b/html-test/tests/QuasiQuote.hs
new file mode 100644
index 00000000..06762cf9
--- /dev/null
+++ b/html-test/tests/QuasiQuote.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
+
+-- example taken from the GHC documentation
+module QuasiQuote where
+
+import QuasiExpr
+
+val :: Integer
+val = eval [expr|1 + 2|]