Bidirectional transformations (bx) have primarily been modeled as pure functions, and do not account for the possibility of the side-effects that are available in most programming languages. Recently several formulations of bx that use monads to account for effects have been proposed, both among practitioners and in academic research. The combination of bx with effects turns out to be surprisingly subtle, leading to problems with some of these proposals and increasing the complexity of others. This paper reviews the proposals for monadic lenses to date, and offers some improved definitions, paying particular attention to the obstacles to naively adding monadic effects to existing definitions of pure bx such as lenses and symmetric lenses, and the subtleties of equivalence of symmetric bidirectional transformations in the presence of effects.
|Title of host publication||A List of Successes that can Change the World|
|Subtitle of host publication||Essays Dedicated to Philip Wadler on the Occasion of his 60th Birthday|
|Editors||Sam Lindley, Conor McBride, Phil Trinder, Don Sannella|
|Number of pages||31|
|Publication status||Published - 25 Mar 2016|
|Name||Lecture Notes in Computer Science|
ASJC Scopus subject areas
- Theoretical Computer Science
- Computer Science(all)
FingerprintDive into the research topics of 'Reflections on monadic lenses'. Together they form a unique fingerprint.
- School of Mathematical & Computer Sciences - Associate Professor
- School of Mathematical & Computer Sciences, Computer Science - Associate Professor
Person: Academic (Research & Teaching)