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

Detection of optional dependencies #1

Open
NeQuissimus opened this issue Aug 17, 2019 · 2 comments
Open

Detection of optional dependencies #1

NeQuissimus opened this issue Aug 17, 2019 · 2 comments

Comments

@NeQuissimus
Copy link

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.

@alexandru
Copy link
Member

@NeQuissimus that would be really cool.

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

@NeQuissimus
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants