I’m learning Reason and trying to incorporate Fluture into my project. I found bs-fluture. bs-fluture binds version 10.2.0 whereas the current version is 13.0.1.
Since version 10, the type signature of the “fork” function has changed to a curried version:
fork :: (a -> Any) -> (b -> Any) -> Future a b -> Cancel
The bs-fluture binding is:
external fork: ('e => unit, 'v => unit, t('e, 'v)) => cancelJs;
Using this generates the following type error:
Uncaught TypeError: fork() expects to be called with a single argument per invocation
I created a gist with a simple example that demonstrates the problem.
How do I bind to a JS function that is curried? I read the Curry & Uncurry section of the Interop manual but I didn’t see an answer there.