Abstract
Software frequently converts data from one representation to another and vice versa. Naïvely specifying both conversion directions separately is error prone and introduces conceptual duplication. Instead, bidirectional programming techniques allow programs to be written which can be interpreted in both directions. However, these techniques often employ unfamiliar programming idioms via restricted, specialised combinator libraries. Instead, we introduce a framework for composing bidirectional programs monadically, enabling bidirectional programming with familiar abstractions in functional languages such as Haskell. We demonstrate the generality of our approach applied to parsers/printers, lenses, and generators/predicates. We show how to leverage compositionality and equational reasoning for the verification of round-tripping properties for such monadic bidirectional programs.
Original language | English |
---|---|
Title of host publication | Programming Languages and Systems - 28th European Symposium on Programming, ESOP 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Proceedings |
Subtitle of host publication | 28th European Symposium on Programming, ESOP 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Prague, Czech Republic, April 6–11, 2019, Proceedings |
Editors | Luís Caires |
Publisher | Springer, Cham |
Pages | 147-175 |
Number of pages | 29 |
ISBN (Electronic) | 9783030171841 |
ISBN (Print) | 9783030171834 |
DOIs | |
Publication status | Published - 6 Apr 2019 |
Publication series
Name | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|
Volume | 11423 LNCS |
ISSN (Print) | 0302-9743 |
ISSN (Electronic) | 1611-3349 |
Research Groups and Themes
- Programming Languages
Fingerprint
Dive into the research topics of 'Composing Bidirectional Programs Monadically'. Together they form a unique fingerprint.Profiles
-
Dr Meng Wang
- School of Computer Science - Associate Professor of Programming Languages
Person: Academic