Generalized monoidal effects and handlers. (28th July 2020)
- Record Type:
- Journal Article
- Title:
- Generalized monoidal effects and handlers. (28th July 2020)
- Main Title:
- Generalized monoidal effects and handlers
- Authors:
- PIETERS, RUBEN P.
RIVAS, EXEQUIEL
SCHRIJVERS, TOM - Abstract:
- Abstract: Algebraic effects and handlers are a convenient method for structuring monadic effects with primitive effectful operations and separating the syntax from the interpretation of these operations. However, the scope of conventional handlers is limited as not all side effects are monadic in nature. This paper generalizes the notion of algebraic effects and handlers from monads to generalized monoids, which notably covers applicative functors and arrows as well as monads. For this purpose, we switch the category theoretical basis from free algebras to free monoids. In addition, we show how lax monoidal functors enable the reuse of handlers and programs across different computation classes, for example, handling applicative computations with monadic handlers. We motivate and present these handler interfaces in the context of build systems. Tasks in a build system are represented by a free computation and their interpretation as a handler. This use case is based on the work of Mokhov et al. [(2018 ). PACMPL 2 (ICFP), 79:1–79:29.].
- Is Part Of:
- Journal of functional programming. Volume 30(2020)
- Journal:
- Journal of functional programming
- Issue:
- Volume 30(2020)
- Issue Display:
- Volume 30, Issue 2020 (2020)
- Year:
- 2020
- Volume:
- 30
- Issue:
- 2020
- Issue Sort Value:
- 2020-0030-2020-0000
- Page Start:
- Page End:
- Publication Date:
- 2020-07-28
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S0956796820000106 ↗
- Languages:
- English
- ISSNs:
- 0956-7968
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library STI - ELD Digital store
- Ingest File:
- 14691.xml