Proceedings of the 17th International Symposium on Principles and Practice of Declarative Programming 2015
DOI: 10.1145/2790449.2790514
|View full text |Cite
|
Sign up to set email alerts
|

From monoids to near-semirings

Abstract: It is well-known that monads are monoids in the category of endofunctors, and in fact so are applicative functors. Unfortunately, the benefits of this unified view are lost when the additional nondeterminism structure of MonadPlus or Alternative is required.This article recovers the essence of these two type classes by extending monoids to near-semirings with both additive and multiplicative structure. This unified algebraic view enables us to generically define the free construction as well as a novel double … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1

Citation Types

0
3
0

Year Published

2015
2015
2019
2019

Publication Types

Select...
3
3

Relationship

0
6

Authors

Journals

citations
Cited by 10 publications
(3 citation statements)
references
References 17 publications
0
3
0
Order By: Relevance
“…We can also verify that the morphisms m and u form a MonadPlus structure [29]. They obviously form a monoid, so it is left to verify two additional laws: left distributivity and left zero (or, in the language of Plotkin and Power [27], that m and u are algebraic).…”
Section: Free Eilenberg-moore Monoidsmentioning
confidence: 99%
See 2 more Smart Citations
“…We can also verify that the morphisms m and u form a MonadPlus structure [29]. They obviously form a monoid, so it is left to verify two additional laws: left distributivity and left zero (or, in the language of Plotkin and Power [27], that m and u are algebraic).…”
Section: Free Eilenberg-moore Monoidsmentioning
confidence: 99%
“…The fact that ⌊m⌋ ⊗ is a morphism between monoids follows from the construction of Cayley representation of monoids in monoidal categories [28,29]. The retraction r : (MA ⇒ MA) → MA is defined as follows:…”
Section: A5 Theorem 16mentioning
confidence: 99%
See 1 more Smart Citation