typelevel-scalafix icon indicating copy to clipboard operation
typelevel-scalafix copied to clipboard

Add warning for `fa.map(g).as(x)` or `fa.map(g).void`

Open Daenyth opened this issue 2 years ago • 0 comments

Accidentally using .as or .void after a .map is currently an undetectable category of bug, and it's a common and easy mistake to make (the former map should probably be a flatMap)

Daenyth avatar Dec 05 '23 15:12 Daenyth