I am also interested in such a feature of TH. It is not one of my burning issues, but reading this post I thought one could pool together.
I'd like to use TH to find what classes a type is an instance of, or alternatively all known instances of a class.
In particular I am additionally interested in accessing the class functions via an instance of that particular class.
As far as I can tell this is not yet possible.
This confirms my conjecture, too.
How hard would it be to implement? I'd like to help out, but it would be nice to have some idea of where to start. Any tips?
Unfortunately, I don't have a clue either. Greetings, Martin
On Thu, Jan 15, 2009 at 8:34 AM, Martin Hofmann
How hard would it be to implement? I'd like to help out, but it would be nice to have some idea of where to start. Any tips?
I would recommend adding yourself to the CC list of http://hackage.haskell.org/trac/ghc/ticket/1835
Right, that's the one. Any volunteers?
| -----Original Message-----
| From: template-haskell-bounces@haskell.org [mailto:template-haskell-bounces@haskell.org] On
| Behalf Of Alfonso Acosta
| Sent: 15 January 2009 07:37
| To: martin.hofmann@uni-bamberg.de
| Cc: template-haskell@haskell.org
| Subject: Re: [Template-haskell] Finding instances for a data type
|
| On Thu, Jan 15, 2009 at 8:34 AM, Martin Hofmann
|
participants (3)
-
Alfonso Acosta -
Martin Hofmann -
Simon Peyton-Jones