Skip to content

TypelevelAs should add cats.syntax import #49

Open
@NeQuissimus

Description

@NeQuissimus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions