I did the conversion for the tagless version also:...
# arrow
s
I did the conversion for the tagless version also: https://github.com/arrow-kt/frdomain.kt/pull/11/commits/ce888fd5ab9e6eb0d6ccfd13f440edfac3389495 went from
IO<A>
to
IO<Nothing, A>
which was the simplest transformation. However it would be nice to convert to
IO<AccountServiceException, A>
When I update the dependency in
AccountServiceInterpreter
to
Copy code
me: MonadError<F, AccountServiceException>
(from
Throwable
to
AccountServiceException
) the main program no longer compiles (even after updating
Copy code
IO.monadError<AccountServiceException>()
from
Nothing
to
AccountServiceException
The error I get:
Type mismatch: inferred type is IOMonadError<AccountServiceException> but Monad<IOPartialOf<Nothing> /* = Kind<ForIO, Nothing> */> was expected
can
IO<E, A>
work with
MonadError
where
E
is not
Throwable
?