Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scala-steward.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ updates.ignore = [
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.13."},
]
updates.pin = [
{groupId = "org.scala-lang", artifactId = "scala3-library", version = "3.3."}
{groupId = "org.scala-lang", artifactId = "scala3-library", version = "3.9."}
]
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.softwaremill.UpdateVersionInDocs

val scala212 = "2.12.21"
val scala213 = "2.13.18"
val scala3 = "3.3.8"
val scala3 = "3.9.0"

val scalaIdeaVersion = scala3 // the version for which to import sources into intellij

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ object QuicklensMacros {
symbols.toPathTree
case (PathTree.Node(children), (symbol :: Nil)) =>
PathTree.Node {
if children.find(_._1 equiv symbol).isEmpty then children :+ (symbol -> Seq(PathTree.Empty))
if children.find(_._1.equiv(symbol)).isEmpty then children :+ (symbol -> Seq(PathTree.Empty))
else
children.map {
case (sym, trees) if sym equiv symbol =>
case (sym, trees) if sym.equiv(symbol) =>
sym -> (trees :+ PathTree.Empty)
case c => c
}
Expand All @@ -89,10 +89,10 @@ object QuicklensMacros {
this
case (PathTree.Node(children), (symbol :: tail)) =>
PathTree.Node {
if children.find(_._1 equiv symbol).isEmpty then children :+ (symbol -> Seq(tail.toPathTree))
if children.find(_._1.equiv(symbol)).isEmpty then children :+ (symbol -> Seq(tail.toPathTree))
else
children.map {
case (sym, trees) if sym equiv symbol =>
case (sym, trees) if sym.equiv(symbol) =>
sym -> (trees.init ++ {
trees.last match
case PathTree.Empty => Seq(PathTree.Empty, tail.toPathTree)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LensLazyTest extends AnyFlatSpec with Matchers {
val lens_a1_a3 = modifyLens[A1](_.a2.a3)
val lens_a3_name = modifyLens[A3](_.a4.a5.name)

val lm = (lens_a1_a3 andThenModify lens_a3_name).using(duplicate)
val lm = lens_a1_a3.andThenModify(lens_a3_name).using(duplicate)
lm(a1) should be(a1dup)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class LensTest extends AnyFlatSpec with Matchers {
val lens_a1_a3 = modify(_: A1)(_.a2.a3)
val lens_a3_name = modify(_: A3)(_.a4.a5.name)

(lens_a1_a3 andThenModify lens_a3_name)(a1).using(duplicate) should be(a1dup)
lens_a1_a3.andThenModify(lens_a3_name)(a1).using(duplicate) should be(a1dup)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ class SecondParamListTest extends AnyFlatSpec with Matchers {

val d: Double = 1.0

val state1 = State(true)(d)

implicit val dd: Double = d
val state1 = State(true)
val state2 = state1.modify(_.inside).setTo(true)

state1 should be(state2)
Expand Down
Loading