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

For GHC 7.6 and up, use GHC.Prim.setByteArray# #222

Merged
merged 2 commits into from
Jun 4, 2020

Conversation

andrewthad
Copy link
Collaborator

For GHC 7.6 and up, use GHC.Prim.setByteArray# instead of the FFI to fill byte arrays with Int8 and Word8. This also adds some tests to confirm that the behavior has not changed.

@andrewthad
Copy link
Collaborator Author

Travis failures look spurious.

@cartazio
Copy link
Contributor

cartazio commented Dec 14, 2018 via email

@cartazio
Copy link
Contributor

cartazio commented Dec 15, 2018 via email

@cartazio
Copy link
Contributor

@andrewthad this and 1-2 other things would be great to apply to master after i get the 0.7 stuff green so we can include it there

@cartazio
Copy link
Contributor

lets aim for this to land in a soon 0.7.1 :), though i'd like drop having the vendored qc-classes for faster builds first

@andrewthad
Copy link
Collaborator Author

I've tweaked the CPP to only use the setByteArray# primop when building on GHC 7.10 and higher. This is ready to be merged.

@andrewthad andrewthad merged commit a5581bc into master Jun 4, 2020
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.

2 participants