Version 0.1.5
import cats.effect.Resource
val foo: Resource[A, B] = ???
val x = foo.map(_ => ())
The rule TypelevelAs.as will complain and suggest to rewrite the map line to .void.
Resource does not have a void method :)
The check should probably be limited to types that provide the necessary functions.
Version 0.1.5
The rule
TypelevelAs.aswill complain and suggest to rewrite themapline to.void.Resourcedoes not have avoidmethod :)The check should probably be limited to types that provide the necessary functions.