Hi Reiner,<br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 00:30, Reiner Pope <span dir="ltr">&lt;<a href="mailto:reiner.pope@gmail.com">reiner.pope@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
A similar question is what the following should do:<br>
<br>
&gt; {-# LANGUAGE DeriveGeneric, FlexibleInstances, StandaloneDeriving #-}<br>
&gt; import GHC.Generics<br>
&gt; data T a = T a<br>
&gt; deriving instance Generic (T Bool)<br>
<br>
Surprisingly, it currently generates the following instances:<br>
<br>
&gt; instance Generic (T Bool) where ...<br>
&gt; type instance Rep (T a) = ...<br></blockquote><div><br>Oh, this is a bug. I&#39;ll open a ticket for it and fix it soon.<br><br><br>Thanks,<br>Pedro<br><br></div></div>