All Downloads are FREE. Search and download functionalities are using the official Maven repository.

refined4s.modules.cats.derivation.generic.auto.scala Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package refined4s.modules.cats.derivation.generic

import cats.*
import refined4s.*

/** @author Kevin Lee
  * @since 2023-12-07
  */

trait auto {

  inline given derivedEq[A, B](using coercible: Coercible[A, B], eqB: Eq[B]): Eq[A] =
    refined4s.modules.cats.syntax.contraCoercible(eqB)

  inline given derivedOrder[A, B](using coercible: Coercible[A, B], orderB: Order[B]): Order[A] =
    refined4s.modules.cats.syntax.contraCoercible(orderB)

  inline given derivedShow[A, B](using coercible: Coercible[A, B], showB: Show[B]): Show[A] =
    refined4s.modules.cats.syntax.contraCoercible(showB)

}
object auto extends auto




© 2015 - 2024 Weber Informatics LLC | Privacy Policy