Skip to content

Commit

Permalink
Update streamly to 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Mar 7, 2022
1 parent 64aa3e2 commit 206b088
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ let haskellPackages =
nixpkgs.haskell.lib.overrideCabal
(super.callHackageDirect
{ pkg = "streamly";
ver = "0.8.1";
sha256 = "0ywyy7gxjnp32hx8kki0lfn94bnc9mzjh8g6mg65ff3vv28k2vdr";
ver = "0.8.2";
sha256 = "0jhsdd71kqw0k0aszg1qb1l0wbxl1r73hsmkdgch4vlx43snlc8a";
} {})
(old:
{ librarySystemDepends =
Expand All @@ -57,8 +57,8 @@ let haskellPackages =
unicode-data =
super.callHackageDirect
{ pkg = "unicode-data";
ver = "0.2.0";
sha256 = "14crb68g79yyw87fgh49z2fn4glqx0zr53v6mapihaxzkikhkkc3";
ver = "0.3.0";
sha256 = "0izxxk7qgq22ammzmwc4cs4nlhzp7y55gzyas2a8bzhdpac1j7yx";
} {};

tasty-bench =
Expand Down
6 changes: 3 additions & 3 deletions src/Streamly/Internal/LZ4.hs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ compressChunk ::
-> Array.Array Word8
-> IO (Array.Array Word8)
compressChunk cfg speed ctx arr = do
Array.unsafeAsPtr arr
Array.asPtrUnsafe (Array.unsafeCast arr)
$ \src -> do
let uncompLen = Array.byteLength arr
speedC = unsafeIntToCInt speed
Expand Down Expand Up @@ -294,7 +294,7 @@ decompressChunk ::
-> Array.Array Word8
-> IO (Array.Array Word8)
decompressChunk cfg ctx arr = do
Array.unsafeAsPtr arr
Array.asPtrUnsafe (Array.unsafeCast arr)
$ \src -> do
let hdrCompLen :: Ptr Int32 = src `plusPtr` compSizeOffset cfg
compData = src `plusPtr` dataOffset cfg
Expand Down Expand Up @@ -573,7 +573,7 @@ decompressChunksWithD ::
-> Stream.Stream m (Array.Array Word8)
decompressChunksWithD p s = do
((cfg, config), next) <- Stream.fromEffect $ second IsStream.toStreamD
<$> ArrayStream.foldArr_ (ArrayFold.fromParser p) (IsStream.fromStreamD s)
<$> ArrayStream.foldArr_ (ArrayFold.fromParserD p) (IsStream.fromStreamD s)
decompressChunksRawD cfg (resizeChunksD cfg config next)

-- XXX Merge this with BlockConfig?
Expand Down
2 changes: 1 addition & 1 deletion src/Streamly/LZ4.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
-- Please build with
-- [fusion-plugin](https://hackage.haskell.org/package/fusion-plugin) for best
-- performance. See the [streamly build
-- guide](https://streamly.composewell.com/streamly-0.8.0/Compiling.html) for
-- guide](https://streamly.composewell.com/streamly-0.8.2/Compiling.html) for
-- more details.
--
-- The APIs are not yet stable and may change in future.
Expand Down
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ packages:
- '.'
resolver: lts-18.18
extra-deps:
- unicode-data-0.2.0
- streamly-0.8.1
- unicode-data-0.3.0
- streamly-0.8.2

# Look at https://stackoverflow.com/questions/70045586/could-not-find-module-system-console-mintty-win32-when-compiling-test-framework
flags:
Expand Down
6 changes: 3 additions & 3 deletions streamly-lz4.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ library
build-depends: base >= 4 && < 5
, fusion-plugin-types >= 0.1 && < 0.2
, exceptions >= 0.8 && < 0.11
, streamly >= 0.8.1 && < 0.8.2
, streamly == 0.8.2.*
ghc-options: -Wall
default-language: Haskell2010
default-extensions:
Expand All @@ -77,7 +77,7 @@ test-suite test-lz4
hs-source-dirs: test
main-is: Main.hs
build-depends: streamly-lz4
, streamly >= 0.8.1 && < 0.8.2
, streamly == 0.8.2.*
, base >= 4 && < 5
, QuickCheck >= 2.13.1 && < 2.15
, hspec >= 2.7 && < 2.9
Expand All @@ -92,7 +92,7 @@ benchmark bench-lz4
hs-source-dirs: benchmark
main-is: Main.hs
build-depends: streamly-lz4
, streamly >= 0.8.1 && < 0.8.2
, streamly == 0.8.2.*
, base >= 4 && < 5
, gauge >= 0.2.5 && < 0.2.6
, directory >= 1.3.0 && < 1.3.8
Expand Down

0 comments on commit 206b088

Please sign in to comment.