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

Lint/fix for when traverse can be traverse_ ? #24

Open
armanbilge opened this issue Jun 16, 2022 · 1 comment
Open

Lint/fix for when traverse can be traverse_ ? #24

armanbilge opened this issue Jun 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@armanbilge
Copy link
Member

Inspired by typelevel/otel4s#14 (comment). This seems hard and I'm not sure if it's actually possible without making some (arguably reasonable) assumptions like nobody wants a List[Unit] :)

@armanbilge armanbilge added the enhancement New feature or request label Jun 16, 2022
@Daenyth
Copy link

Daenyth commented Jul 24, 2023

Maybe a low-effort version would be to detect:

  • _ <- foo.traverse(f)
  • foo.traverse(f).void
  • foo.traverse(f).as(b)
  • foo.traverse.map(_ => anything)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants