Skip to content

Commit e508cf7

Browse files
committed
TOSQUASH
1 parent aeca0a2 commit e508cf7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs-api/bench/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import Data.List (unfoldr)
2323
import Data.Primitive.ByteArray
2424
import Data.Word (Word64)
2525
import Foreign (withForeignPtr)
26+
import qualified GHC.Exts as GHC
2627
import qualified GHC.ForeignPtr as GHC
2728
import GHC.Generics (Generic)
2829
import qualified GHC.IO as GHC
29-
import qualified GHC.Ptr as GHC
3030
import GHC.Stack (HasCallStack)
3131
import qualified System.Directory as Dir
3232
import qualified System.FS.API as FS
@@ -104,7 +104,7 @@ unsafeByteArrayToByteString !ba !len =
104104
let !(GHC.Ptr addr#) = byteArrayContents ba
105105
(MutableByteArray mba#) <- unsafeThawByteArray ba
106106
let fp = GHC.ForeignPtr addr# (GHC.PlainPtr mba#)
107-
BS.mkDeferredByteString fp len
107+
pure $! BS.BS fp len
108108

109109
-- | Copy a 'Prim.ByteArray' at a certain offset and length into a
110110
-- 'BS.ByteString'.

fs-api/fs-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ library
4848
default-language: Haskell2010
4949
build-depends:
5050
, base >=4.14 && <4.20
51-
, bytestring >=0.10 && <0.13
51+
, bytestring >=0.11 && <0.13
5252
, containers >=0.5 && <0.7
5353
, deepseq
5454
, digest

0 commit comments

Comments
 (0)