RE: [Template-haskell] unexpected behaviour
15 Apr
2003
15 Apr
'03
11:02 a.m.
or you could, I think, say
| foo :: Q Dec -> Q () | foo qd = do d<-qd | return (out' d) | | outGen :: Q [Dec] | outGen = do let d = reifyDecl Tree | dec1<-clause [pvar "x"] (normal [|foo d|]) [] | return [Fun "out" [dec1]]
For info, this does not work either: ghc gives a "No instance for (Lift Decl)" (instead of a "No instance for (Lift Dec)"), which doesn't surprise me. However, I've got a working solution, and I'm fine with that. Best wishes, fr.
8287
Age (days ago)
8287
Last active (days ago)
0 comments
1 participants
participants (1)
-
François-Régis Sinot