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

ciris.api.syntax.ApplicativeSyntax.scala Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
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