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

Allow bytestring-0.12 #286

Merged
merged 1 commit into from Jul 8, 2023
Merged

Conversation

clyring
Copy link
Member

@clyring clyring commented Jul 8, 2023

unix does not use any of the functions that have changed behavior in bytestring-0.12.0.0, so the bound-bump is safe. (See the changelog.)

I've also replaced the one use of the now-deprecated Data.ByteString.Internal.memcpy with the equivalent Foreign.Marshal.Utils.copyBytes.

@@ -133,7 +133,7 @@ putEnv (PS fp o l) = withForeignPtr fp $ \p -> do
--
-- hence we must not free the buffer
buf <- mallocBytes (l+1)
memcpy buf (p `plusPtr` o) l
copyBytes buf (p `plusPtr` o) l
Copy link
Member

Choose a reason for hiding this comment

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

I can confirm that copyBytes exists since at least base-4.9.1.0.

@Bodigrim Bodigrim merged commit 1ee6c6f into haskell:master Jul 8, 2023
26 checks passed
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.

None yet

3 participants