Type-class laws for Chain, as defined in the funland sub-project, mirroring the static-land spec.
Chain
funland
static-land
Chain inherits the laws of Apply and in addition must obey:
Apply
F.chain(g, F.chain(f, fa)) <-> F.chain(x => F.chain(g, f(x)), fa)
ap
(ff, fa) => F.chain(f => F.map(f, fa), ff)
Generated using TypeDoc
Type-class laws for
Chain
, as defined in thefunland
sub-project, mirroring thestatic-land
spec.Chain
inherits the laws ofApply
and in addition must obey:F.chain(g, F.chain(f, fa)) <-> F.chain(x => F.chain(g, f(x)), fa)
ap
can be derived:(ff, fa) => F.chain(f => F.map(f, fa), ff)