Lessons in Scala Cats
Lesson 01: Covariant vs Contravariant Types
Lesson 02: Closures and Stack Safety
Lesson 03: A Rich Language of Expressions
Lesson 04: Trampoline and Monads
Lesson 06: Natural Transformations
Make a backup of ~/.dotty_history
, then copy the .dotty_history
from some lesson, and launch the REPL
:
scala-cli repl -S 3.7.2-RC1 --dep org.typelevel::cats-effect:3.6.2 \
--dep org.typelevel::cats-core:2.13.0 \
--dep org.typelevel::cats-free:2.13.0 \
--dep org.typelevel::algebra:2.13.0 \
-
5740
-dep org.scala-lang.modules::scala-parser-combinators:2.4.0
Execute each line from the beginning, in this order.
Each project is named kittens
built with SBT
developed in Scala 3.