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

No defaulting rules for polymorphic types #94

Open
Shimuuar opened this issue Jun 11, 2017 · 1 comment
Open

No defaulting rules for polymorphic types #94

Shimuuar opened this issue Jun 11, 2017 · 1 comment

Comments

@Shimuuar
Copy link
Contributor

  1. Try to evaluate block 10
  2. It will fail with error about ambiguous type a0.

Reason for that is clear. GHC needs to select AskInliterate instance for literal 10 but have no way to do so. I think this is something that couldn't be solved without compiler help.

@NickSeagull
Copy link
Member

Yes, the eval block should be show 10, or rather it won't work

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