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

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

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

import cats.Functor
import sttp.tapir.EndpointIO.Example

trait ExampleInstances {
  implicit val exampleFunctor: Functor[Example] = new Functor[Example] {
    override def map[A, B](example: Example[A])(f: A => B): Example[B] = example.map(f)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy