
17 Jul
2013
17 Jul
'13
10:03 a.m.
Jose A. Lopes, Wed 2013-07-17 @ 13:36:01+0200:
I am quite new to template haskell and I am still trying to get the hang of it. How can I achieve something like the following Common Lisp code ?
`(,fn ,arg1 ,arg2)
Or is there a more Haskelley way of doing this ?
The naive translation would be: [|$fn $arg1 $arg2|] or, more explicitly: appsE [fn, arg1, arg2] `appsE` is from `Language.Haskell.TH`.