summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/TH_spliceDecl3.hs
blob: 208fef4a507b5e62917a48fb0f7b7bf5bceb99f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- test splicing of reified and renamed data declarations
{-# LANGUAGE TemplateHaskell #-}

module TH_spliceDecl3
where

import Language.Haskell.TH
import TH_spliceDecl3_Lib

data T = C

$(do { TyConI d <- reify ''T; rename' d})