IOEither<L, R>.fromIO constructor

IOEither<L, R>.fromIO(
  1. IO<R> io
)

Build a IOEither from the result of running io.

Same of IOEither.rightIO

Implementation

factory IOEither.fromIO(IO<R> io) => IOEither(() => Right(io.run()));