typelevel / cats-effect

The pure asynchronous runtime for Scala
https://typelevel.org/cats-effect/
Apache License 2.0
1.99k stars 511 forks source link

Add FAQ for `unused value of type cats.effect.IO[Unit] (add : Unit to discard silently)` #3646

Open armanbilge opened 1 year ago

armanbilge commented 1 year ago

This is the warning raised by the -Wnonunit-statement, at least on Scala 2 (someone should check Scala 3).

We should:

  1. document and recommend this very useful compiler option
  2. get the error into our docs, so it is indexed and searchable for when folks hit it
froth commented 3 months ago

questions / thoughts before I invest time in this: