Is the last example actually working? Where is the ReaderTaskEither provided with the client when used in the context of a pipe? My head is spinning :-)
You would either provide it at the start of the pipe or create it within, as long as it is there before the RTE.chain. Suppose for example you start off with an Either, you could use the function RTE.fromEither and switch to a ReaderTaskEither.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is the last example actually working? Where is the ReaderTaskEither provided with the client when used in the context of a pipe? My head is spinning :-)
You would either provide it at the start of the pipe or create it within, as long as it is there before the
RTE.chain
. Suppose for example you start off with anEither
, you could use the functionRTE.fromEither
and switch to aReaderTaskEither
.