summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_typed3.hs
blob: b9477b27f006a425e235f7aa0d5d64b7dbf930cc (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE TemplateHaskell #-}

module Main where

import Language.Haskell.TH

-- test parenthesis around splice
main = do
    print $( typedSpliceE $ typedBracketE [| 'z' |] )
    print $( typedSpliceE $ appE [| id |] (typedBracketE [| 'z' |]) )