Hi, I tried to play with MonadError. I wanted to c...
# arrow
d
Hi, I tried to play with MonadError. I wanted to create a generic solution that can be run “on” specific implementation of MonadError. I based on the Arrow’s nuke example. But my solution only works with
Either.monadError()
. I tried with: •
Option.monadError()
but it failed as error is bound to
Unit
. I expected to get
None
as result in case of error •
IO.monadError()
it failed too, as error part has to be
Throwable
Is it possible to write code that will run on any
MonadError
instance? My example: