<div dir="ltr"><div>The Scrap Your Boilerplate (SYB) papers are probably the best resource for Data.Data.  I'm not aware of a similar resource on GHC Generics.<br><br>I think the problem you had is that your original question is a very small fragment of the problems generics are meant to solve.  For people used to generics systems (Oleg, not really me!), your question is near-trivial.  But you need a decent familiarity with the whole apparatus to see how to use any of it.<br>
<br></div><div>(I still think 'mapQ typeOf' is likely to be the most concise solution).<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 5:19 AM, AntC <span dir="ltr"><<a href="mailto:anthony_clayden@clear.net.nz" target="_blank">anthony_clayden@clear.net.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> <oleg <at> <a href="http://okmij.org" target="_blank">okmij.org</a>> writes:<br>
<br>
> ...<br>
<div class="im">><br>
> It is easy to answer the original question about someFoo<br>
><br>
</div>> ...<br>
<br>
So it is! (For some value of `easy` ;-)<br>
<br>
Thank you both Oleg and John.<br>
<br>
Is all that documented somewhere 'official'?<br>
(I did try various searches and wikis, and look at Data.Data on Hackage.<br>
 But nothing seemed to hang together enough.<br>
 Perhaps my question is an unusual use case?)<br>
<span class="HOEnZb"><font color="#888888"><br>
AntC<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>