File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,23 @@ The open source code is hosted at [[https://github.com/lunduniversity/introprog-
2222
2323### Using scala-cli
2424
25- You need [ Scala Command Line Interface] ( https://scala-cli.virtuslab.org/install ) at least version 0.1.5.
25+ You need [ Scala Command Line Interface] ( https://scala-cli.virtuslab.org/install )
2626
2727Add these magic comment lines starting with ` //> ` in the beginning of your Scala 3 file:
2828
2929```
30- //> using scala "3"
31- //> using lib "se.lth.cs::introprog:1.3.1 "
30+ //> using scala 3
31+ //> using lib "se.lth.cs::introprog:1.4.0 "
3232```
33+ You can choose a specific Scala 3 version of at least 3.3.3, for example: ` 3.4.2 `
3334
3435You run your code with ` scala-cli run . ` (note the ending dot, meaning "this dir")
3536
3637If your program looks like this:
3738
3839```
39- //> using scala "3"
40- //> using lib "se.lth.cs::introprog:1.3.1 "
40+ //> using scala 3
41+ //> using lib "se.lth.cs::introprog:1.4.0 "
4142
4243@main def run =
4344 val w = introprog.PixelWindow()
@@ -54,8 +55,8 @@ See: [api documentation for PixelWindow](https://fileadmin.cs.lth.se/pgk/api/api
5455If you have [ sbt] ( https://www.scala-sbt.org/ ) installed then you can put this text in a file called ` build.sbt `
5556
5657```
57- scalaVersion := "3.0.2"
58- libraryDependencies += "se.lth.cs" %% "introprog" % "1.3.1 "
58+ scalaVersion := "3.3.3" // or any newer released Scala version
59+ libraryDependencies += "se.lth.cs" %% "introprog" % "1.4.0 "
5960```
6061
6162When you run ` sbt ` in a terminal, with the above in your ` build.sbt ` , the introprog lib is automatically downloaded and made available on your classpath. Then you can do things like:
You can’t perform that action at this time.
0 commit comments