summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/th/TH_tuple1.hs
blob: c3469e4a9770571e1e4e916dc92cb35ac8893904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE TemplateHaskell #-}

-- Test the use of tupleDataName, tupleTypeName

module ShouldCompile where

import Language.Haskell.TH

foo = $( sigE (appsE [conE (tupleDataName 2),
		     litE (integerL 1),
		     litE (integerL 2)])
	      (appT (appT (conT (tupleTypeName 2))
			  (conT ''Integer))
		    (conT ''Integer))
	)