shapeless icon indicating copy to clipboard operation
shapeless copied to clipboard

Add missing implicit annotations.

Open milessabin opened this issue 10 years ago • 5 comments

There are very many implicit arguments in shapeless without @implicitNotFound annotations. Adding them would make compiler errors more readable.

milessabin avatar Jun 25 '14 23:06 milessabin

@milessabin does this issue refer to explicitly annotating the return types of implicit vals and defs or to adding @implicitNotFound annotations to type classes?

ceedubs avatar Jul 12 '14 16:07 ceedubs

@ceedubs description updated.

milessabin avatar Jul 16 '14 07:07 milessabin

Partially addressed in #239 ... lots more to do.

milessabin avatar Oct 03 '14 06:10 milessabin

What would be a good template for the error messages? I'm thinking something like this:

Implicit not found: TypeClass[A, B, C]. Could not prove / compute / infer whatever type lever operation with A, B and C.

Then the question is whether to keep it short (a 2-lliner) or try to elaborate possible causes / solutions e.g: "Try to use the Aux pattern", "Make sure your Poly has the right arity", etc.

joroKr21 avatar May 09 '17 14:05 joroKr21

I think the messages should be specific to the particular type class in question ... I'm not sure that replacing the existing default message with a similarly non-specific template would be all that much of an improvement.

milessabin avatar May 10 '17 07:05 milessabin