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

Redunant instances in the type families Min, Max #10

Closed
SkorikGG opened this issue May 11, 2017 · 1 comment
Closed

Redunant instances in the type families Min, Max #10

SkorikGG opened this issue May 11, 2017 · 1 comment

Comments

@SkorikGG
Copy link

It is possible that such instances as
Min x 0 = 0
are redundant, since now type Min (0-1) 0 reduce to 0.

@christiaanb
Copy link
Member

christiaanb commented May 12, 2017

The specific case is solved. It doesn't understand negative integers completely though, because we should only be dealing with natural numbers. That is:

test :: Proxy (Min (1-2) (0-1)) -> Proxy (3-4)
test = id

will still not compile.

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

2 participants