Poor man Haskell serialisation using TH, was: Re: [Haskell-cafe] Haskell serialisation

Pasqualino 'Titto' Assini tittoassini at gmail.com
Thu Jun 21 12:10:30 EDT 2007


Hi Bulat,

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




More information about the Haskell-Cafe mailing list