-
Notifications
You must be signed in to change notification settings - Fork 138
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
Remove Lazy
for Scala 2.13
#660
base: master
Are you sure you want to change the base?
Conversation
@pomadchin early push for feedback. I plan to apply in other required places in frameless. |
9f1d820
to
d773ebd
Compare
Lazy
for Scala 2.13Lazy
for Scala 2.13
@cchantep hmmm but why do we need this change? 🤔 Lazy is not needed in 2.13? UPD: ooh, i see https://docs.scala-lang.org/sips/byname-implicits.html; should not it be replaced with by-name implicits (i'm just checking scala/scala#6050)? |
The tests confirm that what fails without |
9a014be
to
7caa1ab
Compare
Codecov Report
@@ Coverage Diff @@
## master #660 +/- ##
==========================================
+ Coverage 95.00% 95.39% +0.39%
==========================================
Files 65 71 +6
Lines 1180 1281 +101
Branches 37 34 -3
==========================================
+ Hits 1121 1222 +101
Misses 59 59
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
72e4cd0
to
daba205
Compare
daba205
to
5ab2e3c
Compare
👋 @pomadchin rebased/all ✅ |
@cchantep yo! I'll take a look a bit later 💭 My main concern is that we're adding some code + language specific subdirs just to get rid of warning that can be (?) muted in the client app via a compiler flag. Is the same approach used in circe? |
I don't see what you mean.
That's how it's done a many project. |
How to reproduce the behavior to see what is changed / what we're fighting here?
My comment is not about cross scala builds, but about the Lazy usage. Is there a similar problem in i.e. circe codecs derivation (just the first thing that came to my mind with the Lazy usage)? |
About the compiler flag, i've been referring to the scala/bug#12072 (comment) |
That's not specific to this PR and we cannot do anything about. |
@cchantep so how to reproduce the behavior to see what is the problem solved in this PR? I haven't faced Lazy being a problem in the other projects with frameless as a dep. |
Lazy
is not only not required for Scala 2.13, but it raised warnings (see typelevel/doobie#1513 ).Removing it only for Scala 2.13 using cross version compatiblity.