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 roles declarations to forbid unsafe coercions #30

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

kl0tl
Copy link
Contributor

@kl0tl kl0tl commented Sep 12, 2020

This prevents terms of type Option a to be coerced to type Option b. The reasoning being that two arbitrary types may not describe the same set of options.

@kl0tl kl0tl changed the base branch from master to main November 18, 2020 08:56
@thomashoneyman thomashoneyman merged commit 123f3f7 into purescript-contrib:main Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants