Skip to content

Deprecation warnings with bytestring-0.11.5; allow bytestring-0.12 #563

@andreasabel

Description

@andreasabel

Would be good to allow bytestring-0.12. Also in the released version of network, if possible.

Deprecation warnings for memcpy:

[12 of 28] Compiling Network.Socket.Posix.CmsgHdr ( dist/build/Network/Socket/Posix/CmsgHdr.hs, dist/build/Network/Socket/Posix/CmsgHdr.o )

Network/Socket/Posix/CmsgHdr.hsc:72:9: warning: [-Wdeprecations]
    In the use of ‘memcpy’
    (imported from Data.ByteString.Internal, but defined in bytestring-0.11.5.0:Data.ByteString.Internal.Type):
    Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
   |
72 |         memcpy dst src len
   |         ^^^^^^

Network/Socket/Posix/CmsgHdr.hsc:91:66: warning: [-Wdeprecations]
    In the use of ‘memcpy’
    (imported from Data.ByteString.Internal, but defined in bytestring-0.11.5.0:Data.ByteString.Internal.Type):
    Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
   |
91 |     Cmsg (CmsgId lvl typ) <$> create (fromIntegral siz) (\dst -> memcpy dst src siz)
   |                                                                  ^^^^^^

Metadata

Metadata

Assignees

Labels

dependenciesConcerning bounds of dependencies (Haskell ecosystem)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions