Skip to content

Applied Functional Programming Workshop, Scala Edition

License

Notifications You must be signed in to change notification settings

doubleloop-io/applied-fp-workshop-scala

Repository files navigation

Applied Functional Programming Workshop - Scala Edition

SBT Commands

Enter SBT interactive shell

$ sbt

Common useful operations:

  • projects: List all projects and mark the current one
  • project <NAME>: Switch the current project to
  • clean: Deletes all generated files from compilation
  • compile: Compiles the main sources (in src/main/scala) of the current project
  • console: Open the REPL with the current project loaded
  • test: Compiles (main and test sources) and runs all tests
  • testOnly: Compiles (main and test sources) and runs matching tests
  • scalafmtAll: Format code for all configurations and projects

Run multiple commands:

>;clean;compile;test

Prepend ~ to any command to run it in watch mode. It can be used with one command:

>~test

or with many commands:

>~;scalafmtAll;clean;test

Documentation

Scala 3

Test

Cats

Cats Effect