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 thefunlandsub-project, mirroring thestatic-landspec.Chaininherits the laws ofApplyand in addition must obey:F.chain(g, F.chain(f, fa)) <-> F.chain(x => F.chain(g, f(x)), fa)apcan be derived:(ff, fa) => F.chain(f => F.map(f, fa), ff)