fromReaderTask<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> fromReaderTask<S, C, L, R>(
  1. ReaderTask<C, R> f
)

Transforms a ReaderTask into a StateReaderTaskEither, wrapping the result in an Right.

Implementation

StateReaderTaskEither<S, C, L, R> fromReaderTask<S, C, L, R>(
  ReaderTask<C, R> f,
) =>
    StateReaderTaskEither(
      (s) => RTE.fromReaderTask(f.chain(RT.map((r) => tuple2(r, s)))),
    );