arrow-kt / arrow-core

Λrrow Core is part of Λrrow, a functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
81 stars 30 forks source link

Deprecate `fx` blocks from typeclasses #118

Closed nomisRev closed 4 years ago

nomisRev commented 4 years ago

We're going to provide top-level computation blocks in a suspend and non-suspend style in #116 & #117.

When Arrow Meta is introduced then we will remove fx from the type classes and a compiler plugin will be provided instead to structurally enable non-suspend fx on flatMap.

If a suspend fx version can be provided by the compiler plugin, it will also provide it.

nomisRev commented 4 years ago

https://github.com/arrow-kt/arrow-core/blob/master/arrow-core-data/src/main/kotlin/arrow/typeclasses/Monad.kt#L34