A unified view of monadic and applicative non-determinism

作者:Rivas Exequiel*; Jaskelioff Mauro; Schrijvers Tom
来源:Science of Computer Programming, 2018, 152: 70-98.
DOI:10.1016/j.scico.2017.09.007

摘要

It is well-known that monads are monoids in the category of endofunctors, and in fact so are applicative functors. Unfortunately, monoids do not have enough structure to account for computational effects with non-determinism operators.
This article recovers a unified view of computational effects with non-determinism by extending monoids to near-semirings with both additive and multiplicative structure. This enables us to generically define free constructions as well as a novel double Cayley representation that optimises both left-nested sums and left-nested products.

  • 出版日期2018-1-15

全文