TH_spliceDecl1.hs 194 Bytes
Newer Older
chak's avatar
chak committed
1 2 3 4 5 6 7 8 9 10
-- test splicing of a generated data declarations

module TH_spliceDecl1
where

import Language.Haskell.THSyntax


-- splice a simple data declaration
$(return [Data "T" [] [Constr "C" []] []])