Skip to content

Using binding as in docs generates deprecation warning #1167

Closed
@dhoepelman

Description

@dhoepelman

The docs for using Try give the following example:

        ForTry extensions {
            binding{
                val nuke = arm().bind()
                val target = aim().bind()
                val impact = launch(target, nuke).bind()
                impact
            }.fix()
        }

extensions gives a deprecation warning here:

Since Arrow 0.8.0 ForX extensions {...} is deprecated in favor of direct extensions access via type class projections.
Import the syntax functions directly that have been projected for your data type instances

As someone who doesn't know arrow the deprecation message is not useful because it doesn't help me fix the warning. Can the deprecation warning be augmented to point to the docs that show how importing projected syntax functions can be done?

What is the correct way to write this in 0.8.0+? Can I help fix the docs?

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