diff options
Diffstat (limited to 'testsuite/tests/th/TH_spliceExpr1.hs')
-rw-r--r-- | testsuite/tests/th/TH_spliceExpr1.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_spliceExpr1.hs b/testsuite/tests/th/TH_spliceExpr1.hs new file mode 100644 index 0000000000..1a22f6f667 --- /dev/null +++ b/testsuite/tests/th/TH_spliceExpr1.hs @@ -0,0 +1,10 @@ +-- test representation and splicing of left-parenthesised right infix operators + +module TH_spliceExpr1 +where + +import Language.Haskell.TH + +foo :: Int +foo = $( [| ((+) $ 2) $ 2 |] ) + |