Skip to content

Commit

Permalink
Merge pull request #3747 from typelevel/update/series/3.x/scalafmt-co…
Browse files Browse the repository at this point in the history
…re-3.7.9

Update scalafmt-core to 3.7.9 in series/3.x
  • Loading branch information
samspills authored Jul 14, 2023
2 parents 93518d4 + f7da5e8 commit 1a766c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ c3404c6577af33d65017aeaca248d51dab770021

# Scala Steward: Reformat with scalafmt 3.7.1
52c851127a918b050f7b1d33ad71f128cb7bc48e

# Scala Steward: Reformat with scalafmt 3.7.9
db6c201aad98cc3d19f67cc688dfa6332e2fb939
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.4
version = 3.7.9

runner.dialect = Scala213Source3
fileOverride {
Expand Down
3 changes: 2 additions & 1 deletion scripts/data/scastie.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-encoding",
"UTF-8",
"-feature",
"-unchecked"
)
6 changes: 3 additions & 3 deletions scripts/data/scastie.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ object Hello extends IOApp.Simple {
def sleepPrint(word: String, name: String, rand: Random[IO]) =
for {
delay <- rand.betweenInt(200, 700)
_ <- IO.sleep(delay.millis)
_ <- IO.println(s"$word, $name")
_ <- IO.sleep(delay.millis)
_ <- IO.println(s"$word, $name")
} yield ()

val run =
Expand All @@ -21,7 +21,7 @@ object Hello extends IOApp.Simple {
name <- IO.pure("Daniel")

english <- sleepPrint("Hello", name, rand).foreverM.start
french <- sleepPrint("Bonjour", name, rand).foreverM.start
french <- sleepPrint("Bonjour", name, rand).foreverM.start
spanish <- sleepPrint("Hola", name, rand).foreverM.start

_ <- IO.sleep(5.seconds)
Expand Down

0 comments on commit 1a766c5

Please sign in to comment.