|
Scala example source code file (ApplicativePlusSyntax.scala)
The ApplicativePlusSyntax.scala Scala example source codepackage scalaz package syntax /** Wraps a value `self` and provides methods related to `ApplicativePlus` */ final class ApplicativePlusOps[F[_],A] private[syntax](val self: F[A])(implicit val F: ApplicativePlus[F]) extends Ops[F[A]] { //// //// } sealed trait ToApplicativePlusOps0 { implicit def ToApplicativePlusOpsUnapply[FA](v: FA)(implicit F0: Unapply[ApplicativePlus, FA]) = new ApplicativePlusOps[F0.M,F0.A](F0(v))(F0.TC) } trait ToApplicativePlusOps extends ToApplicativePlusOps0 with ToApplicativeOps with ToPlusEmptyOps { implicit def ToApplicativePlusOps[F[_],A](v: F[A])(implicit F0: ApplicativePlus[F]) = new ApplicativePlusOps[F,A](v) //// //// } trait ApplicativePlusSyntax[F[_]] extends ApplicativeSyntax[F] with PlusEmptySyntax[F] { implicit def ToApplicativePlusOps[A](v: F[A]): ApplicativePlusOps[F, A] = new ApplicativePlusOps[F,A](v)(ApplicativePlusSyntax.this.F) def F: ApplicativePlus[F] //// //// } Other Scala examples (source code examples)Here is a short list of links related to this Scala ApplicativePlusSyntax.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.