Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement effects in Nix backend #37

Open
L-as opened this issue Dec 27, 2022 · 0 comments
Open

Implement effects in Nix backend #37

L-as opened this issue Dec 27, 2022 · 0 comments

Comments

@L-as
Copy link
Member

L-as commented Dec 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant