haskell-do icon indicating copy to clipboard operation
haskell-do copied to clipboard

No defaulting rules for polymorphic types

Open Shimuuar opened this issue 7 years ago • 1 comments

  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.

Shimuuar avatar Jun 11 '17 11:06 Shimuuar

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

NickSeagull avatar Jun 11 '17 11:06 NickSeagull