blob: 618218d3ebb1b75fc08bc5fc83c5ad4f77ed0eed (
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") [] [NormalC (mkName "C") []] []])
|