Re: Querying the instances a data type implements
Jonathan Fischoff <[email protected]> Tue, 19 Jan 2010 13:37:57 -0800
| Newsgroups | gmane.comp.lang.haskell.template,gmane.comp.lang.haskell.glasgow.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0903554270== Content-Type: multipart/alternative; boundary=00504502f5fd82fc21047d8b48e8 --00504502f5fd82fc21047d8b48e8 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I got the link from the Template Haskell Wiki page. It is possible that I might have time to work on the feature myself. I don'= t it, but if that is the case I will let you know. -Jonathan On Mon, Jan 18, 2010 at 1:55 AM, Simon Peyton-Jones <[email protected]>wrote: > All: as Robert says, I keep meaning to close the template-haskell list > altogether; but I am not sure how to do so. > > > > Jonathan: where did you find a pointer to the mailing list? I should > remove those too. > > > > Returning to the question, sadly there=92s no way to do what you want rig= ht > now. There=92s an open feature request: > > http://hackage.haskell.org/trac/ghc/ticket/1835 > > Would anyone like to undertake it? It=92s not hard. > > > > Simon > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of * > [email protected] > *Sent:* 17 January 2010 23:42 > *To:* [email protected] > *Subject:* [Template-haskell] Querying the instances a data type > implements > > > > Hi, > > I am trying query the instances that a data type implements. Calling reif= y > on the data type doesn't appear to return anything relating to type class= es. > > > I am very new to Template Haskell, so I apologize if there is a easy way = to > do this that I missed. > > -Jonathan > --00504502f5fd82fc21047d8b48e8 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I got the link from the Template Haskell Wiki page.=A0<div><br></div><div>I= t is possible that I might have time to work on the feature myself. I don&#= 39;t it, but if that is the case I will let you know.</div><div><br></div> <div>-Jonathan<br><br><div class=3D"gmail_quote">On Mon, Jan 18, 2010 at 1:= 55 AM, Simon Peyton-Jones <span dir=3D"ltr"><<a href=3D"mailto:simonpj@m= icrosoft.com">[email protected]</a>></span> wrote:<br><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p= adding-left:1ex;"> <div lang=3D"EN-GB" link=3D"blue" vlink=3D"purple"> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">All: = as Robert says, I keep meaning to close the template-haskell list altogether; but I am not sure how to do so.=A0 </span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">=A0</= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">Jonat= han: where did you find a pointer to the mailing list?=A0 I should remove those too.</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">=A0</= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">Retur= ning to the question, sadly there=92s no way to do what you want right now.=A0 There=92s an open feature request:</span></p> <p class=3D"MsoNormal" style=3D"text-indent:5.25pt"><span style=3D"font-siz= e:11.0pt;color:#1F497D">=A0<a href=3D"http://hackage.haskell.org/trac/ghc/t= icket/1835" target=3D"_blank">http://hackage.haskell.org/trac/ghc/ticket/18= 35</a></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">Would= anyone like to undertake it?=A0 It=92s not hard.</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">=A0</= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">Simon= </span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">=A0</= span></p> <div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm = 4.0pt"> <div> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:10.0pt">F= rom:</span></b><span lang=3D"EN-US" style=3D"font-size:10.0pt"> <a href=3D"= mailto:[email protected]" target=3D"_blank">template-has= [email protected]</a> [mailto:<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>] <b>On Behalf Of </b><a hre= f=3D"mailto:[email protected]" target=3D"_blank">jonathanGfischof= [email protected]</a><br> <b>Sent:</b> 17 January 2010 23:42<br> <b>To:</b> <a href=3D"mailto:[email protected]" target=3D"_blank= ">[email protected]</a><br> <b>Subject:</b> [Template-haskell] Querying the instances a data type implements</span></p> </div> </div><div><div></div><div class=3D"h5"> <p class=3D"MsoNormal">=A0</p> <p class=3D"MsoNormal">Hi, <br> <br> I am trying query the instances that a data type implements. Calling reify = on the data type doesn't appear to return anything relating to type classe= s. <br> <br> I am very new to Template Haskell, so I apologize if there is a easy way to= do this that I missed.<br> <br> -Jonathan</p> </div></div></div> </div> </div> </blockquote></div><br></div> --00504502f5fd82fc21047d8b48e8-- --===============0903554270== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ template-haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/template-haskell --===============0903554270==--