Skip to content

Commit

Permalink
Add algebra name to the instance, generated by boopickleWireProtocol (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavkin authored and notxcain committed Dec 14, 2018
1 parent 9eb9b62 commit be6b979
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ object BoopickleWireProtocolMacro {

val unifiedInvocation = t"({type X[A] = aecor.encoding.WireProtocol.Invocation[$unifiedBase, A]})#X"

val instanceName = Term.Name(s"aecorWireProtocol${typeName.value}")
val companionStats: Seq[Stat] = Seq(
q"""
implicit def aecorWireProtocol[..$abstractParams]: aecor.encoding.WireProtocol[$unifiedBase] =
implicit def $instanceName[..$abstractParams]: aecor.encoding.WireProtocol[$unifiedBase] =
new aecor.encoding.WireProtocol[$unifiedBase] {

final val encoder = new ${Ctor.Name(typeName.value)}[..$abstractTypes, aecor.encoding.WireProtocol.Encoded] {
Expand Down

0 comments on commit be6b979

Please sign in to comment.