以下の内容はhttps://blog.3qe.us/entry/2023/04/01/003951より取得しました。


Scala ScriptでCats Effectを使う

毎回忘れて調べているのでメモ。

  • ファイル名は.scala.scではなく.scalaにする
  • もろもろをimportする
  • object Main extends IOApp.Simple { val run: IO[Unit] = IO.println("Hello world") } を定義する
  • scala-cli script.scala で実行できる
//> using scala "3.1"
//> using dep "org.typelevel::cats-effect:3.4.8"

import cats.effect.{IO, IOApp}

object Main extends IOApp.Simple
  val run: IO[Unit] = IO.println("Replace this")



以上の内容はhttps://blog.3qe.us/entry/2023/04/01/003951より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14