Looking up functions inQ monad (Template Haskell).

Why isn't possible to lookup and call user-defined functions while performing Template Haskell actions? Just like the way Template Haskell looks up and calls 'f' in $(f ...). 'f' gets looked up and called. And user of Q monad cannot do that. A colleague of mine, a Lisp user, says that almost everything is in place. It's just not enabled. Is there any problem we do not understand?

Hello Zefirov, Tuesday, August 18, 2009, 5:55:19 PM, you wrote:
Why isn't possible to lookup and call user-defined functions while performing Template Haskell actions?
if i understood correctly what you mean - it's possible. the function just need to be defined in module imported by current one. defining and using function in the same module isn't supported since it may be tricky for language with global module analysis. Lisp just executes lists as it reads them, so it doesn't have such problem -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (2)
-
Bulat Ziganshin
-
Zefirov Sergey