I'm pleased to announce the recent release of haskell-src-meta 0.3.
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.
The biggest reason for 0.3 is support for GHC 7 and TH 2.5. In
addition to that, there is also better support for inline pragmas, and
a smaller API. The original haskell-src-meta had a lot of neat ideas
all in one place, and while they were quite useful, they were also
irritating to maintain and made the version number unstable (keeping
in line with the PVP). In an attempt to address this, I've moved the
two most useful quasiquoters to their own new package -
applicative-quoters - and moved the rest to an unexported 'examples'
directory. I intend to do more to reduce the exposed API, but I
thought I would make this release as soon as possible so that my
reverse dependencies could start building again.
I welcome contributions and contributors. This package is not in any
real sense "mine" so I am happy to grant committer access to the
github or joint maintainership to anyone with an interest in doing so.
If you find bugs, there is an issue tracker, or if you want to discuss
issues, there is a wiki:
https://github.com/benmachine/haskell-src-meta
Yours,
Ben Millwood
_______________________________________________
Haskell mailing list
Has...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
Are the purposes of haskell-src-meta and haskell-src-exts-qq the same?
What are the main differences?
Cheers! =)
--
Felipe.
_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Tue, Jan 4, 2011 at 5:08 AM, Ben Millwood <has...@benmachine.co.uk> wrote:
> On Tue, Jan 4, 2011 at 4:02 AM, Felipe Almeida Lessa
> <felipe...@gmail.com> wrote:
>> On Tue, Jan 4, 2011 at 1:49 AM, Ben Millwood <has...@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