File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ import Data.List (unfoldr)
23
23
import Data.Primitive.ByteArray
24
24
import Data.Word (Word64 )
25
25
import Foreign (withForeignPtr )
26
+ import qualified GHC.Exts as GHC
26
27
import qualified GHC.ForeignPtr as GHC
27
28
import GHC.Generics (Generic )
28
29
import qualified GHC.IO as GHC
29
- import qualified GHC.Ptr as GHC
30
30
import GHC.Stack (HasCallStack )
31
31
import qualified System.Directory as Dir
32
32
import qualified System.FS.API as FS
@@ -104,7 +104,7 @@ unsafeByteArrayToByteString !ba !len =
104
104
let ! (GHC. Ptr addr# ) = byteArrayContents ba
105
105
(MutableByteArray mba# ) <- unsafeThawByteArray ba
106
106
let fp = GHC. ForeignPtr addr# (GHC. PlainPtr mba# )
107
- BS. mkDeferredByteString fp len
107
+ pure $! BS. BS fp len
108
108
109
109
-- | Copy a 'Prim.ByteArray' at a certain offset and length into a
110
110
-- 'BS.ByteString'.
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ library
48
48
default-language : Haskell2010
49
49
build-depends :
50
50
, base >= 4.14 && < 4.20
51
- , bytestring >= 0.10 && < 0.13
51
+ , bytestring >= 0.11 && < 0.13
52
52
, containers >= 0.5 && < 0.7
53
53
, deepseq
54
54
, digest
You can’t perform that action at this time.
0 commit comments