summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_spliceExpr1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/TH_spliceExpr1.hs')
-rw-r--r--tests/examples/ghc86/TH_spliceExpr1.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/examples/ghc86/TH_spliceExpr1.hs b/tests/examples/ghc86/TH_spliceExpr1.hs
new file mode 100644
index 0000000..ca78740
--- /dev/null
+++ b/tests/examples/ghc86/TH_spliceExpr1.hs
@@ -0,0 +1,11 @@
+-- test representation and splicing of left-parenthesised right infix operators
+{-# LANGUAGE TemplateHaskell #-}
+
+module TH_spliceExpr1
+where
+
+import Language.Haskell.TH
+
+foo :: Int
+foo = $( [| ((+) $ 2) $ 2 |] )
+