fromReader<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> fromReader<S, C, L, R>(
  1. Reader<C, R> f
)

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

Implementation

StateReaderTaskEither<S, C, L, R> fromReader<S, C, L, R>(Reader<C, R> f) =>
    StateReaderTaskEither(
        (s) => RTE.fromReader(f.chain(Rd.map((r) => tuple2(r, s)))));