-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passing unit to uncurried function #3429
Comments
since in ocaml, there is no function which has arity zero, so that |
@jey I created such issue in reason repo, you can comment it there. |
The latest solution to this problem is implemented in a draft PR within the rescript syntax repo. The code needs to expand into some more code, so it's not clear yet if this is the best solution. |
I seem to be hitting an edge case when trying to pass
unit
to an uncurried function. My intention is to create aJs.Promise.t(unit)
representing the completion of a side-effect.The text was updated successfully, but these errors were encountered: