cats.Semigroupal
See theSemigroupal companion object
Semigroupal captures the idea of composing independent effectful values.
It is of particular interest when taken together with Functor - where Functor
captures the idea of applying a unary pure function to an effectful value,
calling product
with map
allows one to apply a function of arbitrary arity to multiple
independent effectful values.
That same idea is also manifested in the form of Apply, and indeed Apply extends both Semigroupal and Functor to illustrate this.
Attributes
- Companion:
- object
- Source:
- Semigroupal.scala
- Graph
- Supertypes
- Known subtypes
- trait InvariantSemigroupal[F]trait Apply[F]trait Applicative[F]trait CommutativeApplicative[F]trait CommutativeMonad[F]trait Monad[F]trait Bimonad[F]trait StackSafeMonad[F]trait NonEmptyAlternative[F]trait Alternative[F]trait CommutativeApply[F]trait CommutativeFlatMap[F]trait FlatMap[F]trait ContravariantSemigroupal[F]trait ContravariantMonoidal[F]trait InvariantMonoidal[F]