fromTaskEither<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> fromTaskEither<S, C, L, R>(
  1. TaskEither<L, R> taskEither
)

Returns a StateReaderTaskEither that resolves to the given TaskEither.

Implementation

StateReaderTaskEither<S, C, L, R> fromTaskEither<S, C, L, R>(
  TaskEither<L, R> taskEither,
) =>
    StateReaderTaskEither(
      (s) => RTE.fromTaskEither(taskEither.chain(TE.map((a) => tuple2(a, s)))),
    );