cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Cats Effect + scala-cli example

Open armanbilge opened this issue 3 years ago • 2 comments

It's annoying that we need this, but this trips everyone up, most recently @TimWSpence. We should add something to the docs demonstrating how to use CE with scala-cli by explicitly creating an IOApp in a .scala file, since stuff like unsafeRunSync() at the top-level of a .sc file will just hang.

armanbilge avatar May 18 '22 14:05 armanbilge

Somebody wrote this, idk seems pretty good ;)

https://github.com/armanbilge/http4s-cli

Daenyth avatar May 18 '22 14:05 Daenyth

There's the FAQ section of the documentation that contains an example. Is it worth extracting in its own subsection? And maybe adding a section that shows the usage of decline-effect + CE to write a command-line tool. What do you think?

TonioGela avatar Jul 02 '22 13:07 TonioGela