summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/quasiquotation/qq006/Main.hs
blob: 7e21acc23558f4ff8722c58507bf87b1cdac8483 (plain)
1
2
3
4
5
6
7
8
9
{-# LANGUAGE QuasiQuotes #-}
module Main where

import Expr

main :: IO ()
main = do  case [$expr|1 + 2|] of
             [$expr|$x + $x|] -> print x
             _                -> return ()