-
Notifications
You must be signed in to change notification settings - Fork 8
A typelevel sbt plugin for unifying the partial unification setting #69
Comments
Surely this is just a handful of lines of goop in a build.sbt isn't it? Is a plugin really worth the effort? |
It's non-obvious goop and I recall being enraged at some point, but yeah maybe a plugin isn't worth the effort since the doc for it would have to explain most of the implementation. A blog post on how to do it might be as effective. |
Is this just for support for 2.10.x? If it is then we should reconsider typelevel/scala#122. |
For the most part. But also this plugin helps projects that cross build. This library will be easier to use if you turn on partial unification for your scalac.
If you are on 2.11.x please make sure you upgrade to 2.11.10+ and enable this scalac flag
If you are on 2.12.x pelase enabled the flag as above. if you are cross building you would need these lines of code goop
<<<<<<<<<<<<<<<<<<<<<<<<<<< I think that's a lot for the users to consume. |
Hm, yeah that's a lot of goop. I switch my vote to 👍 |
👍 from me |
Very disappointing to see so much enthusiasm for this and so little for TLS for 2.10.x. |
@milessabin from my part, I need this for pushing through for cats 1.0.0-RC1, this sounds an easier and quicker solution than TLS 2.10.x. Not saying that we shouldn't pursue TLS 2.10.x |
I guess I see this as a way for 2.10 projects to limp along a bit longer, as opposed to TLS 2.10 which seems like a bigger and more long-term commitment. I want my reality to be rid of 2.10 by the end of the year (if not earlier) so quick fixes don't bother me. |
That SBT project was somehow marked as "not watching", so didn't see the change. I've merged those changes. I previously had seen limited interest in the plugin, but I can either keep it updated, or you can do whatever you want with a fork. I'm also very much open to whatever seems reasonable with adding some level of support for TLS - at the very least, it should do the right thing if |
Thanks very much for merging and releasing @fiadliel. I'd rather continue using yours than forking. I am going to close this issue. |
Plugin argued for in typelevel/general#69.
TL;DR: Use https://github.com/fiadliel/sbt-partial-unification. Opened typelevel/cats#1699 to document it. |
There are several typelevel projects that need to manage user experience around SI-2712.
Currently, there is fiadliel/sbt-partial-unification which tries to provide an easy way to enable partial unification for Scala projects, i.e. set the scalacOption for 2.11.10+ and use the s2712 fix plugin by @milessabin for 2.10.8 and 2.11.8. However this plugin has some issues and the owner didn't respond to a PR that address them.
Shall we start a new sbt plugin under typelevel to provide the same thing? If so, shall we consider making it part of sbt-catalysts or a new repo?
related issue: typelevel/cats#1583
The text was updated successfully, but these errors were encountered: