Gopal S Akshintala
01/09/2020, 5:57 PMarm(ME: MonadError<F, NukeException>)
and aim(ME: MonadError<F, NukeException>)
are taking input params, but in the subsequent code those functions don’t have params while invoking
fun <F> MonadError<F, NukeException>.attack():Kind<F, Impacted> =
fx.monad {
val (nuke) = arm<F>()
val (target) = aim<F>()
val (impact) = launch<F>(target, nuke)
impact
}
Jannis
01/09/2020, 6:17 PMarm
method (and the others) are supposed to be defined as extensions above MonadError<F, NukeException>
. Alternatively you can do arm(this)
in the fx block.
This page needs to be reworked and there is a ticket for that. It is currently not even checked by ank if it compiles :/raulraja
01/09/2020, 9:07 PM