fromEither<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> fromEither<S, C, L, R>(
  1. Either<L, R> either
)

Returns a StateReaderTaskEither that resolves to the given Either.

Implementation

StateReaderTaskEither<S, C, L, R> fromEither<S, C, L, R>(Either<L, R> either) =>
    either.chain(Ei.fold(left, right));