diff options
author | David Waern <david.waern@gmail.com> | 2009-01-22 19:48:09 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2009-01-22 19:48:09 +0000 |
commit | 1abb4b96ff98b49e0b55c8cf55f2fdf1a35299e1 (patch) | |
tree | c8d963bb59d4fd81ef388eea0ea7762d8aa1b226 /tests/tests/QuasiQuote.hs | |
parent | 2ca9f33e5147bf1499e578dd559b927752fce0cc (diff) |
Add test for quasi quotation. No reference output yet.
Diffstat (limited to 'tests/tests/QuasiQuote.hs')
-rw-r--r-- | tests/tests/QuasiQuote.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests/QuasiQuote.hs b/tests/tests/QuasiQuote.hs new file mode 100644 index 00000000..a1aa7256 --- /dev/null +++ b/tests/tests/QuasiQuote.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE TemplateHaskell, QuasiQuotes #-} + +-- example taken from the GHC documentation +module QuasiQuote where + +import QuasiExpr + +run :: IO () +run = do { print $ eval [$expr|1 + 2|] } |