
Hello Pasqualino, Thursday, June 21, 2007, 8:10:30 PM, you wrote: how it can interpret call to "foo" without loading it? :)
the receiving side has the option of either interpreting the TH representation or, as you suggested, to just dynamically compile its Haskell source equivalent (as produced by TH's pprint) using GHC API or hs-plugins.
Probably not very efficient but quite easy to implement,
Best,
titto
On Thursday 21 June 2007 16:39:58 Bulat Ziganshin wrote:
Hello Pasqualino,
Thursday, June 21, 2007, 7:35:47 PM, you wrote:
So, the state is both applicable and serialisable (on the receiving side we should naturally have an interpreter for the TH representation).
and this interpreter should have a way to find function definition by its name - it's the most complex part of job, as i have wrote in previous letter
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com