Skip to content

Commit

Permalink
Reformat with scalafmt 3.7.5
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
typelevel-steward[bot] committed Jun 30, 2023
1 parent e333eb7 commit 00e5bce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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 00e5bce

Please sign in to comment.