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

org.http4s.play.PlayEntityDecoder.scala Maven / Gradle / Ivy

The newest version!
package org.http4s.play

import cats.effect.Sync
import org.http4s.EntityDecoder
import play.api.libs.json.Reads

/**
  * Derive [[EntityDecoder]] if implicit [[Reads]] is in the scope without need to explicitly call `jsonOf`
  */
trait PlayEntityDecoder {
  implicit def playEntityDecoder[F[_]: Sync, A: Reads]: EntityDecoder[F, A] = jsonOf[F, A]
}

object PlayEntityDecoder extends PlayEntityDecoder




© 2015 - 2025 Weber Informatics LLC | Privacy Policy