DEV Community

Discussion on: Functional programming in typescript using fp-ts: ReaderTaskEither

Collapse
 
peerhenry profile image
peerhenry • Edited

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.