Skip to content

Commit

Permalink
Merge pull request #4047 from satorg/fix-scalafmt-config
Browse files Browse the repository at this point in the history
Fix scalafmt config file
  • Loading branch information
rossabaker authored Nov 18, 2021
2 parents 26cdba3 + 4f248a3 commit 7c5a211
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ docstrings = JavaDoc
newlines.afterCurlyLambda = preserve
docstrings.style = keep
docstrings.oneline = unfold
project.excludeFilters = [ "core/src/main/scala-3.x" ]

runner.dialect = scala213source3
fileOverride {
"glob:**/*.sbt" {
runner.dialect = sbt1
}
"glob:**/src/{main,test}/scala-2.12/**" {
runner.dialect = scala212source3
}
"glob:**/src/{main,test}/scala-3.x/**" {
runner.dialect = scala3
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cats.syntax

import cats.{Monad, Alternative}
import cats.{Alternative, Monad}

final class MonadOps[F[_], A](private val fa: F[A]) extends AnyVal {
def whileM[G[_]](using M: Monad[F], G: Alternative[G])(p: F[Boolean]): F[G[A]] = M.whileM(p)(fa)
Expand Down
4 changes: 2 additions & 2 deletions free/src/main/scala-3.x/cats/free/FreeFoldStep.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cats.free

import Free.{FlatMapped, Pure, Suspend}
import cats.{Foldable, Eval}
import cats.{Eval, Foldable}

private[free] trait FreeFoldStep[S[_], A] {

Expand Down Expand Up @@ -38,4 +38,4 @@ private[free] trait FreeFoldStep[S[_], A] {
fa => F.foldRight(fa, lb)(f),
[X] => (sx: S[X], g: X => Free[S, A]) => F.foldRight(sx, lb)((a, lbb) => foldRight(g(a), lbb)(f))
)
}
}

0 comments on commit 7c5a211

Please sign in to comment.