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

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

There is a newer version: 0.12.1
Show newest version
package ciris.api.syntax

import ciris.api.FlatMap

trait FlatMapSyntax {
  implicit def flatMapSyntaxOps[F[_]: FlatMap, A](fa: F[A]): FlatMapSyntaxOps[F, A] =
    new FlatMapSyntaxOps(fa)

  final class FlatMapSyntaxOps[F[_]: FlatMap, A](fa: F[A]) {
    def flatMap[B](f: A => F[B]): F[B] = FlatMap[F].flatMap(fa)(f)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy