implicitbox icon indicating copy to clipboard operation
implicitbox copied to clipboard

Detection of optional dependencies

Open NeQuissimus opened this issue 6 years ago • 2 comments

With sbt's optional dependencies, it is possible to write code against type classes that may or may not exist downstream.

See https://blog.7mind.io/no-more-orphans.html

It would be great to have common HasCats, HasScalaz marker traits.

NeQuissimus avatar Aug 17 '19 01:08 NeQuissimus

@NeQuissimus that would be really cool.

Guess I'll have to study that article in more detail to see how it would work.

alexandru avatar Aug 17 '19 06:08 alexandru

I tried it briefly and it seems OK to have an object that has an implicit class. But once you have alternative implicit classes for the same A, you always run into diverging implicits, I had some trouble with that.

NeQuissimus avatar Aug 17 '19 21:08 NeQuissimus