summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_spliceExpr1.hs
blob: ca78740986017c79eb26ab0594928a807b819fa4 (plain)
1
2
3
4
5
6
7
8
9
10
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 |] )