Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
armanbilge opened this issue May 25, 2023 · 1 comment

Comments

@armanbilge
Copy link
Member

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
Copy link
Contributor

froth commented Mar 26, 2024

questions / thoughts before I invest time in this:

  • should the recommendation the compiler option in getting-started? I would think so, because in FAQ it will get overlooked to easily.
  • Adding something to FAQ additionally would be a good idea for more clarification and indexing the error
  • Do we want to recommend/mention typelevel/sbt-tpolecat pending fix for -Wnonunit-statement seems not to work for scala-3 (3.3.3)  sbt-tpolecat#208 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants