Cats: Better error message for missing implicits

Created on 22 Oct 2015  路  3Comments  路  Source: typelevel/cats

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?

enhancement help wanted question

Most helpful comment

I just did a PR in Simulacrum (with help from @larsrh) : https://github.com/typelevel/simulacrum/pull/144

All 3 comments

(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.)

Big +1 for wiring up in Simulacrum.

I just did a PR in Simulacrum (with help from @larsrh) : https://github.com/typelevel/simulacrum/pull/144

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidabrahams picture davidabrahams  路  3Comments

Atry picture Atry  路  5Comments

alexandru picture alexandru  路  4Comments

diesalbla picture diesalbla  路  4Comments

julien-truffaut picture julien-truffaut  路  3Comments