Template Haskell changes to names and package keys

Edward Z. Yang ezyang at mit.edu
Tue May 5 14:50:57 UTC 2015

Excerpts from Simon Peyton Jones's message of 2015-05-05 01:15:50 -0700:
> Very good exercise!  Looking for how an existing API is used (perhaps in a clumsy way, because of the inadequacies of the existing API) is a good guide to improving it.
> e.g. If tuple names are an issue, let’s provide a TH API for getting their names!!

Hello Simon,

The right and proper way of getting a tuple name (well, constructor
really, but that's the only reason people want names) should be:

    [| (,) |]

But people sometimes don't want to use quotes, e.g. as in
https://github.com/ekmett/lens/issues/496 where they want to
work with stage1 GHC.

So in this case, https://ghc.haskell.org/trac/ghc/ticket/10382 (making
quotes work with stage1 GHC) will help a lot.


More information about the Libraries mailing list