xtendo-org / rawfilepath

Haskell library for encoding-free interaction with Unix system. Use RawFilePath (ByteString) instead of FilePath (String)
Other
17 stars 3 forks source link

memcpy is deprecated #9

Closed xtendo-org closed 1 month ago

xtendo-org commented 5 months ago

Warning started showing up:

rawfilepath/src/RawFilePath/Process/Posix.hs:51:5: warning: [GHC-68441] [-Wdeprecations]
    In the use of ‘memcpy’
    (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type):
    Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
   |
51 |     memcpy buf (p `plusPtr` o) (fromIntegral l)
   |     ^^^^^^
xtendo-org commented 2 months ago

Fixed in 559d0cba8624eee08d1c097f8ecd75349b424e46.

Will close after release.