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

Better error message for missing implicits #581

Closed
non opened this issue Oct 21, 2015 · 3 comments
Closed

Better error message for missing implicits #581

non opened this issue Oct 21, 2015 · 3 comments

Comments

@non
Copy link
Contributor

non commented Oct 21, 2015

Lots of newcomers forget to import implicit instances (e.g. cats.implicits._) which causes lots of pain.

It might be nice if when Functor[X] is not found, the the message indicates that you may have failed to import it (and can even mention cats.std.all._ or cats.implicits._).

What do you all think?

@non
Copy link
Contributor Author

non commented Oct 21, 2015

(The bad part here is that I think this would require annotating every type class with some kind of message. Either that, or wiring it up to Simulacrum somehow.)

@milessabin
Copy link
Member

Big +1 for wiring up in Simulacrum.

@erwan
Copy link

erwan commented Jun 27, 2019

I just did a PR in Simulacrum (with help from @larsrh) : typelevel/simulacrum#144

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

4 participants