blob: e7f92d2c11e0cdf62986d4c114fe0c1f39a0a756 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
-- test splicing of quoted data and newtype declarations
module TH_spliceDecl2
where
import Language.Haskell.TH
-- splice a simple quoted declaration (x 2)
$([d| data T1 = C1 |])
$([d| newtype T2 = C2 String |])
|