Summoning a typeclass in a macro #12404
|
(from gitter) I'm having a slight problem understanding the behaviour of summoning in macro. I have a method which takes a given parameter ( the f here is a type of a case class field, and the type parameter is obtained using the So for a concrete invocation we have e.g. I get an error, that a given |
Replies: 2 comments 7 replies
|
Could you show a complete example? This might be a bug. |
That doesn't sound quite true. It looks like In this case we are transforming a trait inside the macro: trait ShowFAlgebra[F[_]]:
def showF[A: Show](a: A): F[String]
def showAll[A: Show](as: A*): F[String]
def showProduct[A: Show](a: A): F[(A, String)]
def logF[A: Show](message: => A): F[Unit]
object ShowFAlgebra:
given Aspect.Function[ShowFAlgebra, Show] = Derive.aspectBut inside the |
Could you show a complete example? This might be a bug.