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

Make arithmetic extensible #3

Open
adituv opened this issue Aug 2, 2018 · 0 comments
Open

Make arithmetic extensible #3

adituv opened this issue Aug 2, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@adituv
Copy link
Owner

adituv commented Aug 2, 2018

This may not be possible directly.

When I attempted this before by making type families open, all existing code worked in GHC >= 8.2, but a new module attempting to extend arithmetic with a type representing positive infinity failed to resolve AddK Nat InfiniteK to InfiniteK. There might be a way to do this still but so far it looks like a closed type family is required for the result kind of another type family.

Previous attempt: https://github.com/adituv/typenums/blob/open-type-families/src/Test.hs

@adituv adituv added the enhancement New feature or request label Aug 2, 2018
@adituv adituv mentioned this issue Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant