Say I have this:
f x = x + 1
tt2 name o = sequence [valD (varP (mkName name)) (normalB [| f $(varE o) |]) []]
I'd like to convert tt2
to tt
:
tt name o = [d| ??? = f $(varE o) |]
I cannot figure out what ???
should be. This is probably because I don't understand how TH works yet. Can someone help?