How to migrate to fp-ts do notation from fp-ts-contrib Do #1811
Unanswered
edalex-ian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey There,
I've watched the solidification of do notation within fp-ts continue, and I'm now wondering how I can move my old usage of fp-ts-contrib
Do
to use the (let's call it) native implementation.The first blocker I have is to find the equivalent of
Do.do
(andDo.doL
). Because all the functions (referring to fp-ts Either.Do ) seem to require a name so that the result can be added to scope. I currently useDo.do
to undertake validation steps before getting into thebind
s etc.Also, I'm not sure what to do about the missing
done
andreturn
but I'm hoping that'll be obvious once I figure out the rest.Any help appreciated, maybe I'll be able to figure out how to provide some doco back. 🤔
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions