diff options
author | simonpj <simonpj@microsoft.com> | 2008-01-18 14:52:55 +0000 |
---|---|---|
committer | simonpj <simonpj@microsoft.com> | 2008-01-18 14:52:55 +0000 |
commit | 9764c7297af14a90d17ad11c48f4f14dbfb47419 (patch) | |
tree | 3a9f9184c787679e8ecff253ea5141e247b26b88 /testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs | |
parent | 090fb7b3ed9fef4f0151348c9d8f916d978cd855 (diff) | |
download | haskell-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.hs | 9 |
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 () |