BinderAnn: Automated Reification of Source Annotations for Monadic EDSLs
Paper i proceeding, 2020
In this work, we propose a simple technique for enhancing monadic EDSLs expressed using do notation. This technique employs source-to-source plugins, a relatively new feature of GHC, to annotate every do statement of our EDSLs with relevant information extracted from the source code at compile time. We show how these annotations can be incorporated into EDSL designs either directly inside values or as monadic effects. We provide BinderAnn, a GHC source plugin implementing our ideas, and evaluate it by enhancing existing real-world EDSLs with relatively minor modification efforts to contemplate the source-level static information related to variables names and source locations.
Embedded domain-specific languages
Haskell
Författare
Claudio Agustin Mista
Chalmers, Data- och informationsteknik, Informationssäkerhet
Alejandro Russo
Chalmers, Data- och informationsteknik, Informationssäkerhet
Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
03029743 (ISSN) 16113349 (eISSN)
Vol. 12222 LNCS 25-469783030577605 (ISBN)
Kraków, Poland,
Octopi: Säker Programering för Sakernas Internet
Stiftelsen för Strategisk forskning (SSF) (RIT17-0023), 2018-03-01 -- 2023-02-28.
WebSec: Säkerhet i webb-drivna system
Stiftelsen för Strategisk forskning (SSF) (RIT17-0011), 2018-03-01 -- 2023-02-28.
Styrkeområden
Informations- och kommunikationsteknik
Ämneskategorier
Språkteknologi (språkvetenskaplig databehandling)
Studier av enskilda språk
Datavetenskap (datalogi)
DOI
10.1007/978-3-030-57761-2_2
ISBN
9783030577605