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
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Scala Steward: Reformat with scalafmt 3.8.0
1eef3f33e4376b5c345be62c4183ab4d3dd0b9be

# Scala Steward: Reformat with scalafmt 3.8.3
ebc8da931ff274b883cc488a8d5bf93c357b692d
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.8.1
version = 3.8.3
runner.dialect = scala3
continuationIndent.defnSite = 2
docstrings.style = Asterisk
Expand Down
4 changes: 2 additions & 2 deletions docs/total_transformations/configuring_transformations.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ Docs.printCode {
val source = (1, List(2, 2, 2), 3, 4)

// using `.apply` to select the element
source.into[(Int, Vector[Int], Int)].transform(Field.const(_.apply(2), 10))
source.into[(Int, Vector[Int], Int)].transform(Field.const(_.apply(2), 10))

// using the legacy accessors
source.into[(Int, Vector[Int], Int)].transform(Field.const(_._3, 10))
source.into[(Int, Vector[Int], Int)].transform(Field.const(_._3, 10))
}
```
@:@
Expand Down
4 changes: 1 addition & 3 deletions docs/transformation_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ A value wrapped in an arbitrary `F[_]` can be flatmapped over given that:
@:select(underlying-code-3)
@:choice(visible)
```scala mdoc

case class Positive private (value: Int)

object Positive {
given Transformer.Fallible[[a] =>> Either[String, a], Int, Positive] =
given Transformer.Fallible[[a] =>> Either[String, a], Int, Positive] =
int => if (int < 0) Left("Lesser or equal to 0") else Right(Positive(int))
}

Expand All @@ -80,7 +79,6 @@ A value wrapped in an arbitrary `F[_]` can be mapped over given that:
@:select(underlying-code-4)
@:choice(visible)
```scala mdoc

Mode.FailFast.either[String].locally {
Right(1).fallibleTo[Option[Int]]
}
Expand Down