Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade streamly version #66

Merged
merged 2 commits into from
Mar 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let haskellPackages =
# } {})
(let src = fetchGit {
url = "[email protected]:composewell/streamly.git";
rev = "3c3ec6de4831a8667c415393e1dbc351ba508dbe";
rev = "8240f5f870fe47623df99514aed6a542f80c9641";
}; in super.callCabal2nix "streamly" src {})
(old:
{ librarySystemDepends =
Expand All @@ -64,7 +64,7 @@ let haskellPackages =
nixpkgs.haskell.lib.overrideCabal
(let src = fetchGit {
url = "[email protected]:composewell/streamly.git";
rev = "3c3ec6de4831a8667c415393e1dbc351ba508dbe";
rev = "8240f5f870fe47623df99514aed6a542f80c9641";
}; in super.callCabal2nix "streamly-core" "${src}/core" {})
(old:
{ librarySystemDepends =
Expand Down
4 changes: 2 additions & 2 deletions src/Streamly/Statistics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ logBase2 v0
-- Array length must be power of 2.
--
{-# INLINE fft #-}
fft :: MonadIO m => MA.Array (Complex Double) -> m ()
fft :: MonadIO m => MA.MutArray (Complex Double) -> m ()
fft marr
| isPower2 len = bitReverse 0 0
| otherwise = error "fft: Array length must be power of 2"
Expand Down Expand Up @@ -754,7 +754,7 @@ range = Fold.teeWith (-) maximum minimum
--
-- /Pre-release/
{-# INLINE md #-}
md :: MonadIO m => Fold m ((Double, Maybe Double), m (MA.Array Double)) Double
md :: MonadIO m => Fold m ((Double, Maybe Double), m (MA.MutArray Double)) Double
md =
Fold.rmapM computeMD
$ Fold.tee (Fold.lmap fst mean) (Fold.lmap snd Fold.latest)
Expand Down