Quoting with template haskell

17 Jul
2013
17 Jul
'13
7:36 a.m.
Hi everyone, 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 ? Cheers, Jose

17 Jul
17 Jul
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`.
4326
Age (days ago)
4326
Last active (days ago)
2 comments
2 participants
participants (2)
-
Jose A. Lopes
-
Taylor Hedberg