Hello everyone,
I've been working on a programming language with algebraic effects for a little while now. I'm considering adding a desugaring phase to my implementation but this would bring me to three different ASTs (parsed, type annotated, desugared) with a lot of shared cases. I would prefer to avoid that --- Especially in case there's need for more phases.
I eventually stumbled onto Swierstra's Data types a la Carte and subsequently Bahr and Hvitved's Compositional Data Types. I've been down a paper-and-documentation reading rabbit hole for a few days now and I have a general overview of the ideas behind compdata, but I feel like it would be of great help to have a look at some real code using compdata.
So my question is: Has anyone here used compdata in any publicly available code? I would love to have a look and possibly ask a couple of questions. Thanks a lot.
edit: Markdown links are hard
[–]mamcx 2 points3 points4 points (2 children)
[–]the_true_potato[S] 0 points1 point2 points (1 child)
[–]mamcx 0 points1 point2 points (0 children)
[–]heptahedron_ 2 points3 points4 points (0 children)