Closed taig closed 10 months ago
Until 1.1.0-M2, the following code would compile just fine:
import skunk.Codec import skunk.codec.all.* case class Foo(x: Int, y: String) val codec: Codec[Foo] = (int4 *: text).to
https://scastie.scala-lang.org/OaeJYGVVRMCGwRoeDWezCw
However, in 1.1.0-M2 and M3, it stopped working:
https://scastie.scala-lang.org/3CAm3UaGTCCdInd4VplVqg
One workaround is to specify the type argument explicitly:
val codec: Codec[Foo] = (int4 *: text).to[Foo]
https://scastie.scala-lang.org/AltZ0R9yRRWk8odKKchXtQ
Or to import twiddles syntax explicitly:
import org.typelevel.twiddles.syntax.*
https://scastie.scala-lang.org/8RmxWx2cQBWtWA97buW61g
Thanks for the fix 👍 (1.0.0-M4)
Until 1.1.0-M2, the following code would compile just fine:
However, in 1.1.0-M2 and M3, it stopped working:
One workaround is to specify the type argument explicitly:
Or to import twiddles syntax explicitly: