diff --git a/modules/core/src/main/scala-3/util/ReadPlatform.scala b/modules/core/src/main/scala-3/util/ReadPlatform.scala index f58a6691c..0c66736de 100644 --- a/modules/core/src/main/scala-3/util/ReadPlatform.scala +++ b/modules/core/src/main/scala-3/util/ReadPlatform.scala @@ -10,11 +10,11 @@ import doobie.util.shapeless.OrElse trait ReadPlatform: // Trivial Read for EmptyTuple - given MkRead[EmptyTuple] = + given readEmpty: MkRead[EmptyTuple] = new MkRead[EmptyTuple](Nil, (_, _) => EmptyTuple) // Read for head and tail. - given [H, T <: Tuple]( + given readTuple[H, T <: Tuple]( using H: Read[H] OrElse MkRead[H], T: => MkRead[T] ): MkRead[H *: T] = { @@ -27,7 +27,7 @@ trait ReadPlatform: } // Generic Read for products. - given [P <: Product, A]( + given derived[P <: Product, A]( using m: Mirror.ProductOf[P], i: A =:= m.MirroredElemTypes, w: MkRead[A] @@ -71,7 +71,7 @@ trait ReadPlatform: } // Generic Read for option of products. - given [P <: Product, A]( + given readOptionProduct[P <: Product, A]( using m: Mirror.ProductOf[P], i: A =:= m.MirroredElemTypes, w: MkRead[Option[A]] diff --git a/modules/core/src/main/scala-3/util/WritePlatform.scala b/modules/core/src/main/scala-3/util/WritePlatform.scala index bd3f4bbcb..38a260bd2 100644 --- a/modules/core/src/main/scala-3/util/WritePlatform.scala +++ b/modules/core/src/main/scala-3/util/WritePlatform.scala @@ -10,11 +10,11 @@ import doobie.util.shapeless.OrElse trait WritePlatform: // Trivial write for empty tuple. - given MkWrite[EmptyTuple] = + given writeEmpty: MkWrite[EmptyTuple] = new MkWrite(Nil, _ => Nil, (_, _, _) => (),(_, _, _) => ()) // Inductive write for writable head and tail. - given [H, T <: Tuple]( + given writeTuple[H, T <: Tuple]( using H: Write[H] OrElse MkWrite[H], T: => MkWrite[T] ): MkWrite[H *: T] = { @@ -82,7 +82,7 @@ trait WritePlatform: ) // Generic write for options of products. - given [P <: Product, A]( + given writeOptionProduct[P <: Product, A]( using m: Mirror.ProductOf[P], i: m.MirroredElemTypes =:= A, w: MkWrite[Option[A]]