ciris.api.syntax.ApplicativeSyntax.scala Maven / Gradle / Ivy
package ciris.api.syntax
import ciris.api.Applicative
trait ApplicativeSyntax {
implicit def applicativeSyntaxOps[A](a: A): ApplicativeSyntaxOps[A] =
new ApplicativeSyntaxOps(a)
final class ApplicativeSyntaxOps[A](a: A) {
def pure[F[_]: Applicative]: F[A] = Applicative[F].pure(a)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy