[Haskell-cafe] [Haskell] ANNOUNCE: haskell-src-meta 0.3

Ben Millwood haskell at benmachine.co.uk
Tue Jan 4 20:34:39 CET 2011


It seems I wasn't subscribed to haskell-cafe so this reply didn't get
through (sorry for sending this twice, Felipe).
I've now subscribed with delivery turned off for -cafe so if you want
me to read a response be sure to address me directly :)

On Tue, Jan 4, 2011 at 5:08 AM, Ben Millwood <haskell at benmachine.co.uk> wrote:
> On Tue, Jan 4, 2011 at 4:02 AM, Felipe Almeida Lessa
> <felipe.lessa at gmail.com> wrote:
>> On Tue, Jan 4, 2011 at 1:49 AM, Ben Millwood <haskell at benmachine.co.uk> wrote:
>>> haskell-src-meta is a package originally written by Matt Morrow to
>>> provide a translation from the syntax tree provided by
>>> haskell-src-exts to template haskell syntax. Essentially this allows
>>> TH code to be parsed from a string, and is used in several quasiquoter
>>> libraries.
>>
>> Are the purposes of haskell-src-meta and haskell-src-exts-qq the same?
>>  What are the main differences?
>>
>> Cheers! =)
>>
>> --
>> Felipe.
>>
>
> If you look at the source for Language.Haskell.Exts.Translate from
> haskell-src-exts-qq [1], you can see that it was actually taken from
> an earlier version of haskell-src-meta, presumably during the long
> period for which HSM was not maintained. I guess you could say that it
> inlined the key parts of haskell-src-meta into its codebase, but I
> hope that the maintainer can feel more confident about using the
> haskell-src-meta package as a dependency now.
>
> My understanding of the *purpose* of haskell-src-exts-qq is that it is
> for easily generating ASTs for use with haskell-src-exts, whereas
> haskell-src-meta is for generating ASTs for use with template haskell.
>
> [1] http://hackage.haskell.org/packages/archive/haskell-src-exts-qq/0.3.0/doc/html/src/Language-Haskell-Exts-Translate.html
>



More information about the Haskell-Cafe mailing list