Title
The linearity Monad.
Abstract
We introduce a technique for programming with domain-specific linear languages using the monad that arises from the theory of linear/non-linear logic. In this work we interpret the linear/non-linear model as a simple, effectful linear language embedded inside an existing non-linear host language. We implement a modular framework for defining these linear EDSLs in Haskell, allowing both shallow and deep embeddings. To demonstrate the effectiveness of the framework and the linearity monad, we implement languages for file handles, mutable arrays, session types, and quantum computing.
Year
DOI
Venue
2017
10.1145/3156695.3122965
Haskell
Keywords
DocType
Volume
Haskell, linear/non-linear logic, monads
Conference
52
Issue
ISSN
ISBN
10
0362-1340
978-1-4503-5182-9
Citations 
PageRank 
References 
0
0.34
0
Authors
2
Name
Order
Citations
PageRank
Jennifer Paykin101.01
Steve Zdancewic2170281.35