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

Update for QuantifiedConstraints #90

Open
treeowl opened this issue Jul 6, 2019 · 0 comments
Open

Update for QuantifiedConstraints #90

treeowl opened this issue Jul 6, 2019 · 0 comments

Comments

@treeowl
Copy link
Contributor

treeowl commented Jul 6, 2019

QuantifiedConstraints makes some parts of this package rather less exciting (in particular, I believe everything currently in Data.Constraint.Forall can be made Safe). On the other hand, it introduces its own gaps. For example, we can easily write

weaken :: (c => d) => c :- d
weaken = Sub Dict

But we can't write the equally reasonable

strengthen :: ((c => d) => r) -> c :- d -> r

Doing so requires some sort of coercion that's not immediately obvious; it'd be nice if constraints could help with that.

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