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

Allow type parameters on multi effects #15

Closed
b-studios opened this issue Apr 13, 2020 · 2 comments
Closed

Allow type parameters on multi effects #15

b-studios opened this issue Apr 13, 2020 · 2 comments
Labels
feature New feature or request

Comments

@b-studios
Copy link
Collaborator

Currently only effect operations can take type parameters:

effect Foo {
  def op[A](...): ...
}

To express a state effect with operations get and put, we would like to also support type parameters on effects

effect State[S] { ... }
@b-studios b-studios added the feature New feature or request label Apr 13, 2020
@b-studios
Copy link
Collaborator Author

This requires implementing unification of effect types in trait Substitution. Two effects should only be considered equal, if they are applied to the same type parameters.

@b-studios
Copy link
Collaborator Author

Addressed in #54

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

No branches or pull requests

1 participant