Skip to content

Commit

Permalink
Merge pull request #1598 from rcardin/main
Browse files Browse the repository at this point in the history
Fixed name of the implicit val defining the function for the Get and Write types
  • Loading branch information
jatcwang authored Dec 10, 2021
2 parents 57138b9 + c237942 commit 7aec31f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/core/src/main/scala/doobie/util/get.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ trait GetInstances extends GetPlatform {
import Predef._ // for array ops

/** @group Instances */
implicit val FunctorPut: Functor[Get] =
implicit val FunctorGet: Functor[Get] =
new Functor[Get] {
def map[A, B](fa: Get[A])(f: A => B): Get[B] =
fa.map(f)
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/main/scala/doobie/util/write.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object Write extends WritePlatform {

def apply[A](implicit A: Write[A]): Write[A] = A

implicit val ReadContravariantSemigroupal: ContravariantSemigroupal[Write] =
implicit val WriteContravariantSemigroupal: ContravariantSemigroupal[Write] =
new ContravariantSemigroupal[Write] {
def contramap[A, B](fa: Write[A])(f: B => A) = fa.contramap(f)
def product[A, B](fa: Write[A], fb: Write[B]) = fa.product(fb)
Expand Down

0 comments on commit 7aec31f

Please sign in to comment.