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 deduction for numeric types #9

Open
jbearer opened this issue Sep 6, 2017 · 0 comments
Open

Improve type deduction for numeric types #9

jbearer opened this issue Sep 6, 2017 · 0 comments

Comments

@jbearer
Copy link
Owner

jbearer commented Sep 6, 2017

The polymorphic type of number literals (i.e. 1 :: Num a => a) gets in the way of type inference through the abstraction layer of HSPLType. We should either refactor the AST so that GHC can better infer these types or provide helper functions that handle the most common cases, such as increment and decrement, etc.

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