typelevel / typelevel/cats-effect

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

Open
#3,646 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:books: docs
Dominant language
Scala
Stars
2.2k
Forks
576
Avg merge
2d 11h
Merged PRs (30d)
18

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Scala and Scala 3 compiler pull requests to verify the -Wnonunit-statement warning and whether the behavior applies to both versions. Update the project documentation with a searchable FAQ entry for the cats.effect.IO[Unit] warning and recommend the compiler option; done means users can find and understand the guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.