My situation is as follows:
- I have a halogen application where all the components live inside my own
AppMonad(which is just derived from
ReaderTand has, for example, the
baseUrlfor external requests stored).
String -> Effect (Array a)(for some
a, not important).
- I have a function
fetchStuff :: String -> AppMonad (Array a)and I’d like to pass that to the JS function.
How do I do that elegantly? I mean, I can just run the app monad, again passing the proper parameters. But that seems a bit clumsy.