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

sttp.tapir.integ.cats.ModifyFunctorInstances.scala Maven / Gradle / Ivy

There is a newer version: 1.11.4
Show newest version
package sttp.tapir.integ.cats

import cats.data.{Chain, NonEmptyChain, NonEmptyList, NonEmptySet}
import sttp.tapir._

trait ModifyFunctorInstances {

  implicit def nonEmptyListModifyFuntor[A]: ModifyFunctor[NonEmptyList, A] =
    new ModifyFunctor[NonEmptyList, A] {}

  implicit def nonEmptySetModifyFunctor[A]: ModifyFunctor[NonEmptySet, A] =
    new ModifyFunctor[NonEmptySet, A] {}

  implicit def chainModifyFunctor[A]: ModifyFunctor[Chain, A] =
    new ModifyFunctor[Chain, A] {}

  implicit def nonEmptyChainModifyFunctor[A]: ModifyFunctor[NonEmptyChain, A] =
    new ModifyFunctor[NonEmptyChain, A] {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy