AssociativeFunctorLaws
dev.constructive.eo.laws.typeclass.AssociativeFunctorLaws
Laws for dev.constructive.eo.compose.AssociativeFunctor. Operational, not category-theoretic: the "associative" part refers to packing Xo / Xi into Z, not monoidal structure.
- A1 compose-modify distributes:
composed.modify(f)(s) == outer.modify(inner.modify(f))(s). - A2 compose-modify identity: a Cogen-free specialisation of A1.
Both require ForgetfulFunctor[F] (every cats-eo AssociativeFunctor carrier also ships one).
Type parameters
- A
-
outer focus / inner source (mono A = B)
- C
-
inner focus (mono C = D)
- F
-
shared carrier
- S
-
outer source (mono S = T)
Attributes
- Source
- AssociativeFunctorLaws.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article