by wrong_variable · 10y ago · 0 comments
I read your post and sent you some messages on gitter, it seems you do not use gitter a lot :(
Here is an implementation of ReaderT, how it can transform a Future to provide "local readonly state", and a usage example:
https://gist.github.com/spion/b433a665ca51d6c38e9f
Since its JS, I also added automatic lifting, just to annoy Haskell programmers ;)