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`.
signature.asc
Description: Digital signature
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe