[Haskell-cafe] HSTringTemplate and syb-with-class

Sterling Clover s.clover at gmail.com
Mon Mar 23 18:42:36 EDT 2009


You don't need to derive ToSElem -- you get the instance for free if
you derive Data. Import GenericWithClass to get the instance for Data
from syb-with-class, and import GenericStandard for use with Data from
the vanilla syb that comes with GHC.

Cheers,
Sterl.

2009/3/23 Kemps-Benedix Torsten <torsten.kemps-benedix at sks-ub.de>:
> Hello all,
>
>
>
> I’m trying to use the generic capabilities of HSTringTemplate. The
> documentation claims that the package is able to automatically generate
> instances of ToSElem if syb-with-class is installed but gives no further
> details. I installed syb-with-class and then installed HSTringTemplate with
> additional configure parameter syb-with-class=True. But when I import
> Text.StringTemplate.GenericWithClass and then try deriving ToSElem or
> $(derive ToSElem), I just get an error like “Can't make a derived instance
> of `ToSElem …”.
>
>
>
> Any suggestions or pointer to further docs?
>
>
>
> Kind regards
>
>
>
> Torsten
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>


More information about the Haskell-Cafe mailing list