hs-plugins does look promising.
thanks for the hint,
hugo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hello Hugo,
Tuesday, September 25, 2007, 1:05:28 PM, you wrote:
> Yes, I would need to generate code at runtime according since the
you have selected improper instrument for it. look at GHC-as-a-lbrary
and hs-plugins by Donald Stewart
--
Best regards,
Bulatmailto:
The sel function was just the simpliest example I remembered of.
Yes, I would need to generate code at runtime according since the generated
code would depend on the function arguments, but have already guessed It
wouldn't be possible.
Anyway, thanks for the clarification,
hugo
___
2007/9/22, Hugo Pacheco <[EMAIL PROTECTED]>:
> Hi all,
> If I want to write some function that will dynamically create a selection
> function according to its arguments and do something with it.
You cannot dynamically create function, all you can is to create it at
compile-time (that's what TH le
Hi all,
I'm try to write some function in TH that I don't even know if it is
possible.
Consider the example from the tutorials
sel 1 2 = [| \(x,_) -> x |]
sel 2 2 = [| \(_,x) -> x |]
If I want to write some function that will dynamically create a selection
function according to its arguments