jdegoes / functional-scala

The repository for the Functional Scala workshop.
178 stars 101 forks source link

Fix sbt console. #3

Closed mkantor closed 5 years ago

mkantor commented 5 years ago

Remove some broken sbt console initialCommands. These relied on dependencies that do not actually exist in the project.

Without this change, running ./sbt console produces the following errors:

<console>:13: error: object zio is not a member of package scalaz
       import scalaz.zio._
                     ^
<console>:14: error: object zio is not a member of package scalaz
       import scalaz.zio.console._
                     ^
<console>:16: error: not found: type RTS
       object replRTS extends RTS {}
                              ^
<console>:18: error: not found: type IO
       implicit class RunSyntax[E, A](io: IO[E, A]){ def unsafeRun: A = replRTS.unsafeRun(io) }
                                          ^
<console>:18: error: value unsafeRun is not a member of object replRTS
       implicit class RunSyntax[E, A](io: IO[E, A]){ def unsafeRun: A = replRTS.unsafeRun(io) }
                                                                                ^

Nothing in the codebase actually depends on ZIO, so I just removed those commands.

jdegoes commented 5 years ago

Thank you!