A Unified View of Monadic and Applicative Non-determinism

with Exequiel Rivas and Tom Schrijvers. SCP 2017.PDFCode

Abstract

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.

BibTeX

@article{RivasJaskelioffSchrijvers2017,
  author    = "Rivas, Exequiel and Jaskelioff, Mauro and Schrijvers, Tom",
  year      = "2017",
  journal   = {Science of Computer Programming},
  title     = "A Unified View of Monadic and Applicative Non-determinism",
  note      = "Accepted for publication"
}