TH_spliceDecl2.hs 170 Bytes
Newer Older
chak's avatar
chak committed
1 2 3 4 5 6 7 8 9
-- test splicing of a quoted data declarations

module TH_spliceDecl2
where

import Language.Haskell.THSyntax

-- splice a simple quoted declaration
$([d| data T = C |])