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

Add effect typing #31

Open
girving opened this issue Oct 1, 2009 · 1 comment
Open

Add effect typing #31

girving opened this issue Oct 1, 2009 · 1 comment

Comments

@girving
Copy link
Owner

girving commented Oct 1, 2009

The syntax should probably be something like

print "blah" :: E e ()

where E means "effect", e is the particular effect(s), and () is the result type of the evaluation. However we implement it, the space of effect annotations e should be a complete lattice. In particular, we want the ability to write something like "E None t" which is identical to t or "E Any t" which can have any effect (useful for wrapping weird C functions).

@dylex
Copy link
Collaborator

dylex commented May 9, 2011

This was enlightening and possibly useful: http://www.cs.ucla.edu/~todd/research/tldi09.html
It seems like we might need a way to declare new effects, and that we need some way to specify effect sets, possibly by a definable hierarchy (ala type classes).

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

No branches or pull requests

2 participants