I see `arm(ME: MonadError<F, NukeException>)...
# arrow
g
I see
arm(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
Copy code
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
  }
j
Yes, the
arm
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 :/
r
still need to change those examples 😞