On Mon, Jan 12, 2015 at 1:27 PM, <
yar....@gmail.com> wrote:
> I cannot use a type that has more than one type parameter as a type
> parameter for LabelledTypeClassCompanion. I am working on a deserializer for
> Tim, and I need two additional type parameters to describe the source (think
> generic deserializer for json and xml). Is there a workaround?
Ahh ... understood. Yes, this is exactly the kind of scenario that
decomposing TypeClass into Lazy, (Labelled)Generic and vanilla
implicit resolution was intended to address. TypeClass is fairly
simple to use, but also somewhat inflexible. The primitives enable
pretty much anything, but some self-assembly is required.
From the examples Tim has already posted it looks like you're well
underway with that ... aside from the issue with case objects (I'll
take a look at that ASAP) are there any other obstacles in your way?