summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/TH_spliceDecl1.hs
blob: 94070a3c694e594994de62f9808424bcc326c74d (plain)
1
2
3
4
5
6
7
8
9
10
-- test splicing of a generated data declarations

module TH_spliceDecl1
where

import Language.Haskell.TH


-- splice a simple data declaration
$(return [DataD [] (mkName "T") [] Nothing [NormalC (mkName "C") []] []])