Not really responding directly to anyone in particular, I just wanted to add some information to the thread for anyone who comes across it.
I’ve been meaning to write up a blog post on using Railway Oriented Programming in ReScript. I did one for Typescript many years ago.