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

Improve type inference #133

Closed
noelwelsh opened this issue Jul 28, 2023 · 1 comment
Closed

Improve type inference #133

noelwelsh opened this issue Jul 28, 2023 · 1 comment
Assignees

Comments

@noelwelsh
Copy link
Contributor

The original Doodle model was that you start by fixing the Algebra operations you want to use , and then write everything to that fixed Algebra. In practice this doesn't work so well when combining different systems and we can be much more flexible. This will avoid a lot of type inference issues, particularly when writing cross-backend code, at the cost of more work for implementors of algebras (i.e. me). This is a reasonable trade-off.

The essential thing is that operations should accept some Alg and return Alg with TheStuffINeed.

@noelwelsh noelwelsh self-assigned this Jul 28, 2023
@noelwelsh
Copy link
Contributor Author

Closed in bb84364

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

1 participant