Plutonomicon / plutarch-core

Plutarch 2.0
MIT License
19 stars 6 forks source link

Implement effects in Nix backend #37

Open L-as opened 1 year ago

L-as commented 1 year ago

The Compile type needs to be changed to take an effect that returns a term. The concrete implementation would likely be something similar to (M (m NixAST), a). Sequencing two effects would essentially seq the contained terms. TermCont and PEffect should be renamed and should be different instantiations of another type, e.g. PE purity a. Then plet etc. can abstract over that, same for pmatch/pcase.