summaryrefslogtreecommitdiff
path: root/testsuite/tests/quasiquotation/qq008/Test.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/quasiquotation/qq008/Test.hs')
-rw-r--r--testsuite/tests/quasiquotation/qq008/Test.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/quasiquotation/qq008/Test.hs b/testsuite/tests/quasiquotation/qq008/Test.hs
new file mode 100644
index 0000000000..c04f427f63
--- /dev/null
+++ b/testsuite/tests/quasiquotation/qq008/Test.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE QuasiQuotes #-}
+module Test where
+
+import QQ
+
+f :: [pq| foo |] -- Expands to Int -> Int
+[pq| blah |] -- Expands to f x = x
+
+h [pq| foo |] = f [$pq| blah |] * 8
+-- Expands to h (Just x) = f (x+1) * 8
+
+
+