aboutsummaryrefslogtreecommitdiff
path: root/tests/html-tests/tests/QuasiQuote.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/html-tests/tests/QuasiQuote.hs')
-rw-r--r--tests/html-tests/tests/QuasiQuote.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/html-tests/tests/QuasiQuote.hs b/tests/html-tests/tests/QuasiQuote.hs
new file mode 100644
index 00000000..06762cf9
--- /dev/null
+++ b/tests/html-tests/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|]