Template Haskell question

Ian Lynagh igloo@earth.li
Sat, 28 Jun 2003 00:49:52 +0100


On Fri, Jun 27, 2003 at 03:57:19PM -0700, Ashley Yakeley wrote:
> 
>     aninstance :: TypQ -> Q [Dec];
>     aninstance t = [d|
> 
>         instance HasZero $t where   -- error here
>             {
>             zero = 0;
>             };
> 
>     |];

You can only splice in expressions and declarations at the moment.


Ian