[Haskell-cafe] Looking up functions inQ monad (Template Haskell).

2009-08-18 Thread Zefirov Sergey
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?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Looking up functions inQ monad (Template Haskell).

2009-08-18 Thread Bulat Ziganshin
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,
 Bulatmailto:bulat.zigans...@gmail.com

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe