MonadError[F, E].fromEither? Something like
myEitherValue : Either[Throwable, String]? I'm currently using
MonadError[IO, Throwable].fromEither(myEitherValue)which is not bad, don't get me wrong, but forces me to specify the
Eitheris not produced by running side effects, of course
Either[Failure, Seq[Something]], but when I changed it to
Either[Failure, List[Something]]it worked. Does this have any effect?
@ Monoid[IO[Option[Int]]].empty res1: IO[Option[Int]] = IO(None)