Closed
Description
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
Labels
No labels