-
Notifications
You must be signed in to change notification settings - Fork 34
Use EffectFnX #70
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
Use EffectFnX #70
Conversation
Should https://github.com/purescript-node/purescript-node-fs/pull/70/files#diff-3bac72693cd408f833d773e883ef64a1271ff4d71f7345744cd76fa64e458af0R59-R63 also be updated to use |
That link isn't expanding for me - are you talking about I didn't in this pass because they were never used with |
Yes. And even if it's not a problem now, I think that will be the next issue that arises if using this with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the handle callback question, this LGTM.
After a bit more thought, I've realized the callbacks shouldn't cause any issues with The other effectful functions were a problem because we were using Can you think of something specific that you think is wrong there that I'm missing? |
When I look at the FFI for it (https://github.com/purescript-node/purescript-node-fs/blob/master/src/Node/FS/Async.js#L27-L35), it looks like an Idk. I think this could be an issue, but if you can test it and show it's not, then I'm just wrong 😄 |
Hmm, yeah, I could see the argument that I can change it over if you'd like! Luckily |
I'm not sure what's more right here either... it does seem like it should be an |
…t handleCallback in PureScript
I think that I think that's quite the improvement - I just pushed up a commit with those changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Thanks for the reviews! I don't know the procedure for merging is within |
Description of the change
Removes the unsafe
mkEffect
utility in favor of usingEffectFn
throughout.Intends to close #28
Checklist:
- [ ] Updated or added relevant documentation- [ ] Added a test for the contribution (if applicable)