-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix some warnings related to -xsource:3 #890
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I admit I've lost all track of what syntax is in and out of fashion anymore. The build passes and I'm not offended by anything, so, ✅
|
||
object MyThing { | ||
// Impure But What 90% of Folks I know do with log4s | ||
implicit def unsafeLogger[F[_]: Sync] = Slf4jLogger.getLogger[F] | ||
implicit def unsafeLogger[F[_] : Sync] = Slf4jLogger.getLogger[F] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a warning on these spaces? This is the thing that seems strangest to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default spaces.beforeContextBoundColon
is Never and it doesn't seem configured so it's a bit weird these have been added
@@ -41,33 +41,33 @@ Good news, you don't have to! Enter log4cats! Read on! | |||
import org.typelevel.log4cats.Logger | |||
import org.typelevel.log4cats.slf4j.Slf4jLogger | |||
import cats.effect.Sync | |||
import cats.implicits._ | |||
import cats.implicits.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these all be changed to cats.syntax.all.*
? It's mentioned in these release notes that the latter is preferred
https://github.com/typelevel/cats/releases/tag/v2.2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm indifferent to whether it happens in this PR, but 👍 in general.
Fixes #889