Commit 3319c67d authored by igloo's avatar igloo

[project @ 2003-05-21 02:58:40 by igloo]

Added support for newtypes to TH and altered a test for them.
parent a929bd21
-- test splicing of a quoted data declarations
-- test splicing of quoted data and newtype declarations
module TH_spliceDecl2
import Language.Haskell.THSyntax
-- splice a simple quoted declaration
$([d| data T = C |])
-- splice a simple quoted declaration (x 2)
$([d| data T1 = C1 |])
$([d| newtype T2 = C2 String |])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment