summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs
diff options
context:
space:
mode:
authorsimonpj <simonpj@microsoft.com>2008-01-18 14:52:55 +0000
committersimonpj <simonpj@microsoft.com>2008-01-18 14:52:55 +0000
commit9764c7297af14a90d17ad11c48f4f14dbfb47419 (patch)
tree3a9f9184c787679e8ecff253ea5141e247b26b88 /testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs
parent090fb7b3ed9fef4f0151348c9d8f916d978cd855 (diff)
downloadhaskell-9764c7297af14a90d17ad11c48f4f14dbfb47419.tar.gz
Tests for quasi-quotation
Diffstat (limited to 'testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs')
-rw-r--r--testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs b/testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs
new file mode 100644
index 0000000000..7e21acc235
--- /dev/null
+++ b/testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE QuasiQuotes #-}
+module Main where
+
+import Expr
+
+main :: IO ()
+main = do case [$expr|1 + 2|] of
+ [$expr|$x + $x|] -> print x
+ _ -> return ()