typelevel / cats-tagless

Library of utilities for tagless final encoded algebras
https://typelevel.org/cats-tagless/
Apache License 2.0
310 stars 41 forks source link

Autoderivation for the Aspect type class #556

Open alonsodomin opened 1 week ago

alonsodomin commented 1 week ago

Attempt at implementing the auto derivation macro for the Aspect type class.

Submitting this more as a way of getting other pair of eyes to look over it than as a final implementation, someone that knows about Scala 3 macros more than me. It currently doesn't compile the AspectTests.ShowFAlgebra when deriving for the Show type class (more info in the line comment)

This implementation is based on quotes but also tried building the tree manually without success.