typelevel / twiddles

Micro-library for building effectful protocols

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rewrite twiddle syntax on Scala 3 as extension methods

mpilquist opened this issue · comments

This was partially done in #9 but I was unable to get all examples compiling. The goal is to remove these implicit conversions:

implicit def toTwiddleOpCons[B <: Tuple](fb: F[B]): TwiddleOpCons[F, B] = new TwiddleOpCons(
fb
)
implicit def toTwiddleOpTwo[B](fb: F[B]): TwiddleOpTwo[F, B] = new TwiddleOpTwo(fb)
and the associated AnyVals.

See #11 for a potential starting point.

Note part of #9 had to be rolled back due to #19