Skip to content
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

Convert FFI to uncurried functions #54

Merged
merged 3 commits into from
Jul 5, 2023
Merged

Convert FFI to uncurried functions #54

merged 3 commits into from
Jul 5, 2023

Conversation

JordanMartinez
Copy link
Contributor

Description of the change

Fixes #34


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

create = usingToImmutable Immutable.create

foreign import copyAll :: forall a buf m. a -> m buf
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this was used to implement both freeze and thaw.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I generally think replacing functions like this with FFI for separate operations is better as it makes the interface more portable. Probably doesn't really apply to -node-buffer, but just thought I'd throw it out there! 😄

@JordanMartinez
Copy link
Contributor Author

@thomashoneyman 🏓

@JordanMartinez JordanMartinez merged commit c6533da into master Jul 5, 2023
1 check passed
@JordanMartinez JordanMartinez deleted the fix-ffi branch July 5, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Effect.Uncurried for FFI
3 participants