Skip to content
Snippets Groups Projects
Commit 1ee6c6f5 authored by Matthew Craven's avatar Matthew Craven Committed by Bodigrim
Browse files

Allow bytestring-0.12

parent ce57dfc5
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ import System.Posix.Env ( clearEnv ) ...@@ -42,7 +42,7 @@ import System.Posix.Env ( clearEnv )
import qualified Data.ByteString as B import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as BC import qualified Data.ByteString.Char8 as BC
import Data.ByteString (ByteString) import Data.ByteString (ByteString)
import Data.ByteString.Internal (ByteString (PS), memcpy) import Data.ByteString.Internal (ByteString (PS))
import qualified System.Posix.Env.Internal as Internal import qualified System.Posix.Env.Internal as Internal
...@@ -133,7 +133,7 @@ putEnv (PS fp o l) = withForeignPtr fp $ \p -> do ...@@ -133,7 +133,7 @@ putEnv (PS fp o l) = withForeignPtr fp $ \p -> do
-- --
-- hence we must not free the buffer -- hence we must not free the buffer
buf <- mallocBytes (l+1) buf <- mallocBytes (l+1)
memcpy buf (p `plusPtr` o) l copyBytes buf (p `plusPtr` o) l
pokeByteOff buf l (0::Word8) pokeByteOff buf l (0::Word8)
throwErrnoIfMinus1_ "putenv" (c_putenv (castPtr buf)) throwErrnoIfMinus1_ "putenv" (c_putenv (castPtr buf))
......
...@@ -70,7 +70,7 @@ library ...@@ -70,7 +70,7 @@ library
build-depends: build-depends:
base >= 4.10 && < 4.20, base >= 4.10 && < 4.20,
bytestring >= 0.9.2 && < 0.12, bytestring >= 0.9.2 && < 0.13,
filepath >= 1.4.100.0 && < 1.5, filepath >= 1.4.100.0 && < 1.5,
time >= 1.2 && < 1.13 time >= 1.2 && < 1.13
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment