<div class="gmail_quote">On Sun, Nov 4, 2012 at 5:39 PM, Johan Tibell <span dir="ltr"><<a href="mailto:johan.tibell@gmail.com" target="">johan.tibell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Couldn't we do it using GHC's default implementations based on<br>
signatures features, so we don't have to expose any new things in the<br>
API?<br>
<br>
We used that in unordered-containers like so:<br>
<br>
#ifdef GENERICS<br>
default parseRecord :: (Generic a, GFromRecord (Rep a)) => Record<br>
-> Parser a<br>
parseRecord r = to <$> gparseRecord r<br>
#endif<span class="HOEnZb"></span><br></blockquote><div><br>Exactly, that's what I meant with DefaultSignatures.<br><br>(I see that someone CC'd you here so maybe you missed the thread on cafe.) <br></div></div>