2020-04-20 14:12:00 +03:00
|
|
|
## 0.7.2
|
|
|
|
|
2020-04-12 06:08:12 +03:00
|
|
|
### Bug Fixes
|
|
|
|
|
2020-04-20 13:54:13 +03:00
|
|
|
* Fix a bug in the `Applicative` and `Functor` instances of the `Fold`
|
|
|
|
data type.
|
|
|
|
|
|
|
|
### Build Issues
|
|
|
|
|
|
|
|
* Fix a bug that occasionally caused a build failure on windows when
|
|
|
|
used with `stack` or `stack ghci`.
|
|
|
|
* Now builds on 32-bit machines.
|
|
|
|
* Now builds with `primitive` package version >= 0.5.4 && <= 0.6.4.0
|
2020-04-13 01:55:27 +03:00
|
|
|
* Now builds with newer `QuickCheck` package version >= 2.14 && < 2.15.
|
2020-04-20 13:54:13 +03:00
|
|
|
* Now builds with GHC 8.10.
|
2020-04-12 06:08:12 +03:00
|
|
|
|
2020-02-13 11:10:10 +03:00
|
|
|
## 0.7.1
|
2019-11-20 14:28:33 +03:00
|
|
|
|
|
|
|
### Bug Fixes
|
|
|
|
|
2019-12-12 11:49:56 +03:00
|
|
|
* Fix a bug that caused `findIndices` to return wrong indices in some
|
2019-12-24 23:18:41 +03:00
|
|
|
cases.
|
2020-01-02 12:11:29 +03:00
|
|
|
* Fix a bug in `tap`, `chunksOf` that caused memory consumption to
|
|
|
|
increase in some cases.
|
2020-01-16 11:15:30 +03:00
|
|
|
* Fix a space leak in concurrent streams (`async`, `wAsync`, and `ahead`) that
|
|
|
|
caused memory consumption to increase with the number of elements in the
|
|
|
|
stream, especially when built with `-threaded` and used with `-N` RTS option.
|
|
|
|
The issue occurs only in cases when a worker thread happens to be used
|
|
|
|
continuously for a long time.
|
2020-01-16 20:59:25 +03:00
|
|
|
* Fix scheduling of WAsyncT stream style to be in round-robin fashion.
|
2020-02-13 11:10:10 +03:00
|
|
|
* Now builds with `containers` package version < 0.5.8.
|
|
|
|
* Now builds with `network` package version >= 3.0.0.0 && < 3.1.0.0.
|
2019-12-12 11:49:56 +03:00
|
|
|
|
2019-12-26 18:14:06 +03:00
|
|
|
### Behavior change
|
|
|
|
|
|
|
|
* Combinators in `Streamly.Network.Inet.TCP` no longer use TCP `NoDelay` and
|
|
|
|
`ReuseAddr` socket options by default. These options can now be specified
|
|
|
|
using appropriate combinators.
|
|
|
|
|
2020-01-08 15:37:53 +03:00
|
|
|
### Performance
|
|
|
|
|
2020-02-12 10:21:24 +03:00
|
|
|
* Now uses `fusion-plugin` package for predictable stream fusion optimizations
|
2020-01-08 15:37:53 +03:00
|
|
|
* Significant improvement in performance of concurrent stream operations.
|
2020-02-13 11:10:10 +03:00
|
|
|
* Improved space and time performance of `Foldable` instance.
|
2020-01-08 15:37:53 +03:00
|
|
|
|
2019-11-15 01:55:51 +03:00
|
|
|
## 0.7.0
|
2019-05-03 08:05:28 +03:00
|
|
|
|
|
|
|
### Breaking changes
|
|
|
|
|
|
|
|
* Change the signature of `foldrM` to ensure that it is lazy
|
2019-06-01 19:28:21 +03:00
|
|
|
* Change the signature of `iterateM` to ensure that it is lazy.
|
2019-08-03 02:42:50 +03:00
|
|
|
* `scanx` would now require an additional `Monad m` constraint.
|
|
|
|
|
|
|
|
### Behavior change
|
|
|
|
|
|
|
|
* Earlier `ParallelT` was unaffected by `maxBuffer` directive, now `maxBuffer`
|
|
|
|
can limit the buffer of a `ParallelT` stream as well. When the buffer becomes
|
|
|
|
full, the producer threads block.
|
|
|
|
* `ParallelT` streams no longer have an unlimited buffer by default. Now the
|
2019-06-27 13:18:56 +03:00
|
|
|
buffer for parallel streams is limited to 1500 by default, the same as other
|
|
|
|
concurrent stream types.
|
2019-06-01 19:28:21 +03:00
|
|
|
|
2019-08-03 02:42:50 +03:00
|
|
|
### Deprecations
|
|
|
|
|
|
|
|
* In `Streamly.Prelude`:
|
|
|
|
* `runStream` has been replaced by `drain`
|
|
|
|
* `runN` has been replaced by `drainN`
|
|
|
|
* `runWhile` has been replaced by `drainWhile`
|
|
|
|
* `fromHandle` has been deprecated. Please use
|
2019-11-14 23:58:21 +03:00
|
|
|
`Streamly.FileSystem.Handle.read`, `Streamly.Data.Unicode.Stream.decodeUtf8` and
|
|
|
|
`splitOnSuffix` with `Streamly.Data.Fold.toList` to split the
|
|
|
|
stream to a stream of `String` separated by a newline.
|
|
|
|
* `toHandle` has been deprecated. Please use `intersperse` and `concatUnfold` to
|
|
|
|
add newlines to a stream, `Streamly.Data.Unicode.Stream.encodeUtf8` for encoding and
|
2019-08-03 02:42:50 +03:00
|
|
|
`Streamly.FileSystem.Handle.write` for writing to a file handle.
|
|
|
|
* Deprecate `scanx`, `foldx`, `foldxM`, `foldr1`
|
2019-09-29 18:19:30 +03:00
|
|
|
* Remove deprecated APIs `foldl`, `foldlM`
|
|
|
|
* Replace deprecated API `scan` with a new signature, to scan using Fold.
|
2019-08-03 02:42:50 +03:00
|
|
|
|
|
|
|
* In `Streamly` module:
|
|
|
|
* `runStream` has been deprecated, please use `Streamly.Prelude.drain`
|
|
|
|
|
2019-11-14 23:58:21 +03:00
|
|
|
* Remove deprecated module `Streamly.Time` (moved to Streamly.Internal.Data.Time)
|
|
|
|
* Remove module `Streamly.Internal` (functionality moved to the Internal hierarchy)
|
2019-09-25 09:08:14 +03:00
|
|
|
|
2019-06-01 19:28:21 +03:00
|
|
|
### Bug Fixes
|
|
|
|
|
|
|
|
* Fix a bug that caused `uniq` function to yield the same element twice.
|
2019-08-23 10:08:28 +03:00
|
|
|
* Fix a bug that caused "thread blocked indefinitely in an MVar operation"
|
|
|
|
exception in a parallel stream.
|
2019-12-24 21:59:07 +03:00
|
|
|
* Fix unbounded memory usage (leak) in `parallel` combinator. The bug manifests
|
|
|
|
when large streams are combined using `parallel`.
|
2019-05-03 08:05:28 +03:00
|
|
|
|
2019-05-29 21:58:49 +03:00
|
|
|
### Major Enhancements
|
|
|
|
|
2019-05-29 22:36:32 +03:00
|
|
|
This release contains a lot of new features and major enhancements. For more
|
|
|
|
details on the new features described below please see the haddock docs of the
|
|
|
|
modules on hackage.
|
2019-05-29 21:58:49 +03:00
|
|
|
|
2019-05-29 22:36:32 +03:00
|
|
|
#### Exception Handling
|
2019-05-29 21:58:49 +03:00
|
|
|
|
2019-05-29 22:36:32 +03:00
|
|
|
See `Streamly.Prelude` for new exception handling combinators like `before`,
|
|
|
|
`after`, `bracket`, `onException`, `finally`, `handle` etc.
|
2019-05-03 08:05:28 +03:00
|
|
|
|
2019-05-29 22:36:32 +03:00
|
|
|
#### Composable Folds
|
2019-05-29 21:58:49 +03:00
|
|
|
|
2019-11-14 23:58:21 +03:00
|
|
|
`Streamly.Data.Fold` module provides composable folds (stream consumers). Folds
|
2019-06-07 07:13:30 +03:00
|
|
|
allow splitting, grouping, partitioning, unzipping and nesting a stream onto
|
|
|
|
multiple folds without breaking the stream. Combinators are provided for
|
|
|
|
temporal and spatial window based fold operations, for example, to support
|
|
|
|
folding and aggregating data for timeout or inactivity based sessions.
|
|
|
|
|
2019-11-04 19:11:49 +03:00
|
|
|
#### Composable Unfolds
|
|
|
|
|
2019-11-14 23:58:21 +03:00
|
|
|
`Streamly.Data.Unfold` module provides composable stream generators. Unfolds allow
|
2019-11-04 19:11:49 +03:00
|
|
|
high performance merging/flattening/combining of stream generators.
|
|
|
|
|
2019-05-29 22:36:32 +03:00
|
|
|
#### Streaming File IO
|
|
|
|
|
2019-07-30 12:37:09 +03:00
|
|
|
`Streamly.FileSystem.Handle` provides handle based streaming file IO
|
2019-05-29 22:36:32 +03:00
|
|
|
operations.
|
|
|
|
|
|
|
|
#### Streaming Network IO
|
|
|
|
|
2019-11-14 23:58:21 +03:00
|
|
|
* `Streamly.Network.Socket` provides socket based streaming network IO
|
2019-05-29 22:36:32 +03:00
|
|
|
operations.
|
|
|
|
|
2019-11-14 23:58:21 +03:00
|
|
|
* `Streamly.Network.Inet.TCP` provides combinators to build Inet/TCP
|
|
|
|
clients and servers.
|
|
|
|
|
2019-05-29 22:36:32 +03:00
|
|
|
#### Concurrent concatMap
|
|
|
|
|
2019-11-14 23:58:21 +03:00
|
|
|
The new `concatMapWith` in `Streamly.Prelude` combinator performs a
|
|
|
|
`concatMap` using a supplied merge/concat strategy. This is a very
|
|
|
|
powerful combinator as you can, for example, concat streams
|
|
|
|
concurrently using this.
|
2019-05-29 22:36:32 +03:00
|
|
|
|
|
|
|
### Other Enhancements
|
|
|
|
|
|
|
|
* Add the following new features/modules:
|
2019-11-14 23:58:21 +03:00
|
|
|
* _Unicode Strings_: `Streamly.Data.Unicode.Stream` module provides
|
|
|
|
encoding/decoding of character streams and other character stream
|
|
|
|
operations.
|
2019-08-06 02:01:23 +03:00
|
|
|
* _Arrays_: `Streamly.Memory.Array` module provides arrays for efficient
|
2019-05-29 22:36:32 +03:00
|
|
|
in-memory buffering and efficient interfacing with IO.
|
2019-05-29 21:58:49 +03:00
|
|
|
|
2019-05-12 23:35:22 +03:00
|
|
|
* Add the following to `Streamly.Prelude`:
|
2019-09-29 18:19:30 +03:00
|
|
|
* `unfold`, `fold`, `scan` and `postscan`
|
|
|
|
* `concatUnfold` to concat a stream after unfolding each element
|
2019-08-13 13:59:58 +03:00
|
|
|
* `intervalsOf` and `chunksOf`
|
|
|
|
* `splitOn`, `splitOnSuffix`, `splitWithSuffix`, and `wordsBy`
|
|
|
|
* `groups`, `groupsBy` and `groupsByRolling`
|
2019-06-19 18:39:05 +03:00
|
|
|
* `postscanl'` and `postscanlM'`
|
2019-06-10 11:45:07 +03:00
|
|
|
* `intersperse` intersperse an element in between consecutive elements in
|
|
|
|
stream
|
2019-06-21 08:00:49 +03:00
|
|
|
* `trace` combinator maps a monadic function on a stream just for side
|
|
|
|
effects
|
|
|
|
* `tap` redirects a copy of the stream to a `Fold`
|
2019-05-03 08:05:28 +03:00
|
|
|
|
2019-03-27 22:43:46 +03:00
|
|
|
## 0.6.1
|
2019-01-10 03:06:23 +03:00
|
|
|
|
2019-03-27 20:51:31 +03:00
|
|
|
### Bug Fixes
|
|
|
|
|
|
|
|
* Fix a bug that caused `maxThreads` directive to be ignored when rate control
|
|
|
|
was not used.
|
|
|
|
|
2019-01-10 03:06:23 +03:00
|
|
|
### Enhancements
|
|
|
|
|
|
|
|
* Add GHCJS support
|
2019-01-12 17:15:00 +03:00
|
|
|
* Remove dependency on "clock" package
|
2019-01-10 03:06:23 +03:00
|
|
|
|
2018-12-30 22:35:40 +03:00
|
|
|
## 0.6.0
|
2018-10-30 21:31:12 +03:00
|
|
|
|
Review of #138 (Prelude functions) and other changes
APIs
----
Removed:
merge
lazy left scans: scanl, scanlM, scanl1, scanl1M
Renamed:
generate and generateM renamed to fromIndices and fromIndicesM
Added:
replicate
mergeByM, mergeAsyncBy, mergeAsyncByM
`intFrom`, `intFromTo`, `intFromThen`, `intFromThenTo`,
`intFromStep`, `fracFrom`, `fracFromThen`, `fracFromThenTo`,
`numFromStep`
Added StreamD version of replicateM and a rewrite rule for replicateMSerial.
Added but not exposed:
postscanl and prescanl ops
Rewrote mergeByS in StreamK, simplified quite a bit and got some perf
improvement too.
Added @since notations to new APIs.
Fixed lines exceeding 80 columns.
Tests
-----
Added tests for the new enumeration APIs.
Improved some tests by generating values randomly using quickcheck forAll. We
can improve more tests similarly.
Removed some redundant transformOps tests.
reorganized test code in groups so as to keep similar functionality together
and added header lines so that we can find relevant code easily.
Benchmarks
----------
Added benchmarks for enumeration primitives added above. Added benchmarks for
scan and fold mixed ops. Added benchmark for concatMap. Fixed foldr and foldrM
benchmarks to use a (+) operation instead of a list operation for fair
comparision with other folds.
Kept only one benchmark each for deleteBy, insertBy, isPrefixOf and
isSubsequenceOf.
Documentation
-------------
Updated documentation, added examples for the new primitives as well as many
old ones. Especially the documentation of folds and scans was rewritten.
Reordered and re-organized the groups of APIs in the doc.
Refactoring
-----------
Some related and urelated refactoring.
Hlint
-----
Fixed some hlint hints introduced recently.
TBD
---
Some APIs need concurrent versions. I have added "XXX" notes for those.
Some more tests have to be added.
Some more benchmarks have to be added.
2018-12-03 14:02:42 +03:00
|
|
|
### Breaking changes
|
|
|
|
|
2018-12-30 20:36:56 +03:00
|
|
|
* `Monad` constraint may be needed on some of the existing APIs (`findIndices`
|
|
|
|
and `elemIndices`).
|
Review of #138 (Prelude functions) and other changes
APIs
----
Removed:
merge
lazy left scans: scanl, scanlM, scanl1, scanl1M
Renamed:
generate and generateM renamed to fromIndices and fromIndicesM
Added:
replicate
mergeByM, mergeAsyncBy, mergeAsyncByM
`intFrom`, `intFromTo`, `intFromThen`, `intFromThenTo`,
`intFromStep`, `fracFrom`, `fracFromThen`, `fracFromThenTo`,
`numFromStep`
Added StreamD version of replicateM and a rewrite rule for replicateMSerial.
Added but not exposed:
postscanl and prescanl ops
Rewrote mergeByS in StreamK, simplified quite a bit and got some perf
improvement too.
Added @since notations to new APIs.
Fixed lines exceeding 80 columns.
Tests
-----
Added tests for the new enumeration APIs.
Improved some tests by generating values randomly using quickcheck forAll. We
can improve more tests similarly.
Removed some redundant transformOps tests.
reorganized test code in groups so as to keep similar functionality together
and added header lines so that we can find relevant code easily.
Benchmarks
----------
Added benchmarks for enumeration primitives added above. Added benchmarks for
scan and fold mixed ops. Added benchmark for concatMap. Fixed foldr and foldrM
benchmarks to use a (+) operation instead of a list operation for fair
comparision with other folds.
Kept only one benchmark each for deleteBy, insertBy, isPrefixOf and
isSubsequenceOf.
Documentation
-------------
Updated documentation, added examples for the new primitives as well as many
old ones. Especially the documentation of folds and scans was rewritten.
Reordered and re-organized the groups of APIs in the doc.
Refactoring
-----------
Some related and urelated refactoring.
Hlint
-----
Fixed some hlint hints introduced recently.
TBD
---
Some APIs need concurrent versions. I have added "XXX" notes for those.
Some more tests have to be added.
Some more benchmarks have to be added.
2018-12-03 14:02:42 +03:00
|
|
|
|
|
|
|
### Enhancements
|
|
|
|
|
2018-12-30 22:35:40 +03:00
|
|
|
* Add the following functions to Streamly.Prelude:
|
Review of #138 (Prelude functions) and other changes
APIs
----
Removed:
merge
lazy left scans: scanl, scanlM, scanl1, scanl1M
Renamed:
generate and generateM renamed to fromIndices and fromIndicesM
Added:
replicate
mergeByM, mergeAsyncBy, mergeAsyncByM
`intFrom`, `intFromTo`, `intFromThen`, `intFromThenTo`,
`intFromStep`, `fracFrom`, `fracFromThen`, `fracFromThenTo`,
`numFromStep`
Added StreamD version of replicateM and a rewrite rule for replicateMSerial.
Added but not exposed:
postscanl and prescanl ops
Rewrote mergeByS in StreamK, simplified quite a bit and got some perf
improvement too.
Added @since notations to new APIs.
Fixed lines exceeding 80 columns.
Tests
-----
Added tests for the new enumeration APIs.
Improved some tests by generating values randomly using quickcheck forAll. We
can improve more tests similarly.
Removed some redundant transformOps tests.
reorganized test code in groups so as to keep similar functionality together
and added header lines so that we can find relevant code easily.
Benchmarks
----------
Added benchmarks for enumeration primitives added above. Added benchmarks for
scan and fold mixed ops. Added benchmark for concatMap. Fixed foldr and foldrM
benchmarks to use a (+) operation instead of a list operation for fair
comparision with other folds.
Kept only one benchmark each for deleteBy, insertBy, isPrefixOf and
isSubsequenceOf.
Documentation
-------------
Updated documentation, added examples for the new primitives as well as many
old ones. Especially the documentation of folds and scans was rewritten.
Reordered and re-organized the groups of APIs in the doc.
Refactoring
-----------
Some related and urelated refactoring.
Hlint
-----
Fixed some hlint hints introduced recently.
TBD
---
Some APIs need concurrent versions. I have added "XXX" notes for those.
Some more tests have to be added.
Some more benchmarks have to be added.
2018-12-03 14:02:42 +03:00
|
|
|
* Generation: `replicate`, `fromIndices`, `fromIndicesM`
|
2018-12-23 14:47:54 +03:00
|
|
|
* Enumeration: `Enumerable` type class, `enumerateFrom`, `enumerateFromTo`,
|
|
|
|
`enumerateFromThen`, `enumerateFromThenTo`, `enumerate`, `enumerateTo`
|
|
|
|
* Running: `runN`, `runWhile`
|
Review of #138 (Prelude functions) and other changes
APIs
----
Removed:
merge
lazy left scans: scanl, scanlM, scanl1, scanl1M
Renamed:
generate and generateM renamed to fromIndices and fromIndicesM
Added:
replicate
mergeByM, mergeAsyncBy, mergeAsyncByM
`intFrom`, `intFromTo`, `intFromThen`, `intFromThenTo`,
`intFromStep`, `fracFrom`, `fracFromThen`, `fracFromThenTo`,
`numFromStep`
Added StreamD version of replicateM and a rewrite rule for replicateMSerial.
Added but not exposed:
postscanl and prescanl ops
Rewrote mergeByS in StreamK, simplified quite a bit and got some perf
improvement too.
Added @since notations to new APIs.
Fixed lines exceeding 80 columns.
Tests
-----
Added tests for the new enumeration APIs.
Improved some tests by generating values randomly using quickcheck forAll. We
can improve more tests similarly.
Removed some redundant transformOps tests.
reorganized test code in groups so as to keep similar functionality together
and added header lines so that we can find relevant code easily.
Benchmarks
----------
Added benchmarks for enumeration primitives added above. Added benchmarks for
scan and fold mixed ops. Added benchmark for concatMap. Fixed foldr and foldrM
benchmarks to use a (+) operation instead of a list operation for fair
comparision with other folds.
Kept only one benchmark each for deleteBy, insertBy, isPrefixOf and
isSubsequenceOf.
Documentation
-------------
Updated documentation, added examples for the new primitives as well as many
old ones. Especially the documentation of folds and scans was rewritten.
Reordered and re-organized the groups of APIs in the doc.
Refactoring
-----------
Some related and urelated refactoring.
Hlint
-----
Fixed some hlint hints introduced recently.
TBD
---
Some APIs need concurrent versions. I have added "XXX" notes for those.
Some more tests have to be added.
Some more benchmarks have to be added.
2018-12-03 14:02:42 +03:00
|
|
|
* Folds: `(!!)`, `maximumBy`, `minimumBy`, `the`
|
|
|
|
* Scans: `scanl1'`, `scanl1M'
|
|
|
|
* Filters: `uniq`, `insertBy`, `deleteBy`, `findM`
|
|
|
|
* Multi-stream: `eqBy`, `cmpBy`, `mergeBy`, `mergeByM`, `mergeAsyncBy`,
|
|
|
|
`mergeAsyncByM`, `isPrefixOf`, `isSubsequenceOf`, `stripPrefix`,
|
|
|
|
`concatMap`, `concatMapM`, `indexed`, `indexedR`
|
2019-11-14 23:58:21 +03:00
|
|
|
* Following instances were added for `SerialT m`, `WSerialT m` and
|
2018-12-30 20:36:56 +03:00
|
|
|
`ZipSerialM m`:
|
|
|
|
* When `m` ~ `Identity`: IsList, Eq, Ord, Show, Read, IsString, NFData,
|
|
|
|
NFData1, Traversable
|
|
|
|
* When `m` is `Foldable`: Foldable
|
2018-12-30 22:35:40 +03:00
|
|
|
* Performance improvements
|
|
|
|
* Add benchmarks to measure composed and iterated operations
|
2018-10-30 21:31:12 +03:00
|
|
|
|
2018-10-26 18:05:09 +03:00
|
|
|
## 0.5.2
|
2018-09-23 11:05:04 +03:00
|
|
|
|
|
|
|
### Bug Fixes
|
|
|
|
|
2018-10-24 08:48:41 +03:00
|
|
|
* Cleanup any pending threads when an exception occurs.
|
2018-09-23 11:05:04 +03:00
|
|
|
* Fixed a livelock in ahead style streams. The problem manifests sometimes when
|
|
|
|
multiple streams are merged together in ahead style and one of them is a nil
|
|
|
|
stream.
|
2018-09-16 11:44:37 +03:00
|
|
|
* As per expected concurrency semantics each forked concurrent task must run
|
|
|
|
with the monadic state captured at the fork point. This release fixes a bug,
|
|
|
|
which, in some cases caused an incorrect monadic state to be used for a
|
|
|
|
concurrent action, leading to unexpected behavior when concurrent streams are
|
|
|
|
used in a stateful monad e.g. `StateT`. Particularly, this bug cannot affect
|
|
|
|
`ReaderT`.
|
2018-09-23 11:05:04 +03:00
|
|
|
|
2018-09-12 18:31:22 +03:00
|
|
|
## 0.5.1
|
|
|
|
|
|
|
|
* Performance improvements, especially space consumption, for concurrent
|
|
|
|
streams
|
|
|
|
|
2018-09-04 13:47:42 +03:00
|
|
|
## 0.5.0
|
2018-07-23 23:42:07 +03:00
|
|
|
|
2018-08-08 14:47:56 +03:00
|
|
|
### Bug Fixes
|
|
|
|
|
2018-09-04 13:47:42 +03:00
|
|
|
* Leftover threads are now cleaned up as soon as the consumer is garbage
|
2018-08-25 06:18:39 +03:00
|
|
|
collected.
|
2018-08-08 14:47:56 +03:00
|
|
|
* Fix a bug in concurrent function application that in certain cases would
|
|
|
|
unnecessarily share the concurrency state resulting in incorrect output
|
|
|
|
stream.
|
2018-09-04 13:47:42 +03:00
|
|
|
* Fix passing of state across `parallel`, `async`, `wAsync`, `ahead`, `serial`,
|
|
|
|
`wSerial` combinators. Without this fix combinators that rely on state
|
|
|
|
passing e.g. `maxThreads` and `maxBuffer` won't work across these
|
|
|
|
combinators.
|
2018-08-08 14:47:56 +03:00
|
|
|
|
2018-07-23 23:42:07 +03:00
|
|
|
### Enhancements
|
|
|
|
|
2018-08-25 06:18:39 +03:00
|
|
|
* Added rate limiting combinators `rate`, `avgRate`, `minRate`, `maxRate` and
|
|
|
|
`constRate` to control the yield rate of a stream.
|
2018-07-23 23:42:07 +03:00
|
|
|
* Add `foldl1'`, `foldr1`, `intersperseM`, `find`, `lookup`, `and`, `or`,
|
|
|
|
`findIndices`, `findIndex`, `elemIndices`, `elemIndex`, `init` to Prelude
|
|
|
|
|
2018-09-04 13:47:42 +03:00
|
|
|
### Deprecations
|
|
|
|
|
|
|
|
* The `Streamly.Time` module is now deprecated, its functionality is subsumed
|
|
|
|
by the new rate limiting combinators.
|
|
|
|
|
2018-07-13 19:10:09 +03:00
|
|
|
## 0.4.1
|
2018-07-13 15:17:01 +03:00
|
|
|
|
|
|
|
### Bug Fixes
|
|
|
|
|
|
|
|
* foldxM was not fully strict, fixed.
|
|
|
|
|
2018-07-11 17:58:39 +03:00
|
|
|
## 0.4.0
|
2018-06-23 04:20:59 +03:00
|
|
|
|
2018-06-26 03:30:47 +03:00
|
|
|
### Breaking changes
|
|
|
|
|
2018-06-27 06:03:06 +03:00
|
|
|
* Signatures of `zipWithM` and `zipAsyncWithM` have changed
|
2018-07-11 17:40:51 +03:00
|
|
|
* Some functions in prelude now require an additional `Monad` constraint on
|
|
|
|
the underlying type of the stream.
|
2018-06-26 03:30:47 +03:00
|
|
|
|
2018-06-23 04:20:59 +03:00
|
|
|
### Deprecations
|
|
|
|
|
|
|
|
* `once` has been deprecated and renamed to `yieldM`
|
|
|
|
|
2018-06-23 05:05:35 +03:00
|
|
|
### Enhancements
|
|
|
|
|
2018-07-11 17:40:51 +03:00
|
|
|
* Add concurrency control primitives `maxThreads` and `maxBuffer`.
|
2018-07-12 02:47:06 +03:00
|
|
|
* Concurrency of a stream with bounded concurrency when used with `take` is now
|
2018-08-16 17:00:18 +03:00
|
|
|
limited by the number of elements demanded by `take`.
|
2018-07-11 17:40:51 +03:00
|
|
|
* Significant performance improvements utilizing stream fusion optimizations.
|
2018-06-23 05:05:35 +03:00
|
|
|
* Add `yield` to construct a singleton stream from a pure value
|
|
|
|
* Add `repeat` to generate an infinite stream by repeating a pure value
|
2018-06-24 03:49:41 +03:00
|
|
|
* Add `fromList` and `fromListM` to generate streams from lists, faster than
|
|
|
|
`fromFoldable` and `fromFoldableM`
|
2018-06-24 20:13:30 +03:00
|
|
|
* Add `map` as a synonym of fmap
|
2018-06-25 00:45:22 +03:00
|
|
|
* Add `scanlM'`, the monadic version of scanl'
|
2018-06-26 03:30:47 +03:00
|
|
|
* Add `takeWhileM` and `dropWhileM`
|
2018-06-29 07:55:55 +03:00
|
|
|
* Add `filterM`
|
2018-06-23 05:05:35 +03:00
|
|
|
|
2018-06-14 23:46:34 +03:00
|
|
|
## 0.3.0
|
2018-05-17 11:43:59 +03:00
|
|
|
|
2018-05-24 14:18:48 +03:00
|
|
|
### Breaking changes
|
|
|
|
|
2018-05-26 14:32:36 +03:00
|
|
|
* Some prelude functions, to whom concurrency capability has been added, will
|
2018-05-24 14:18:48 +03:00
|
|
|
now require a `MonadAsync` constraint.
|
|
|
|
|
|
|
|
### Bug Fixes
|
|
|
|
|
|
|
|
* Fixed a race due to which, in a rare case, we might block indefinitely on
|
|
|
|
an MVar due to a lost wakeup.
|
|
|
|
* Fixed an issue in adaptive concurrency. The issue caused us to stop creating
|
2018-06-14 22:14:15 +03:00
|
|
|
more worker threads in some cases due to a race. This bug would not cause any
|
|
|
|
functional issue but may reduce concurrency in some cases.
|
2018-05-24 14:18:48 +03:00
|
|
|
|
|
|
|
### Enhancements
|
|
|
|
* Added a concurrent lookahead stream type `Ahead`
|
|
|
|
* Added `fromFoldableM` API that creates a stream from a container of monadic
|
|
|
|
actions
|
|
|
|
* Monadic stream generation functions `consM`, `|:`, `unfoldrM`, `replicateM`,
|
|
|
|
`repeatM`, `iterateM` and `fromFoldableM` can now generate streams
|
|
|
|
concurrently when used with concurrent stream types.
|
|
|
|
* Monad transformation functions `mapM` and `sequence` can now map actions
|
|
|
|
concurrently when used at appropriate stream types.
|
2018-05-26 14:32:36 +03:00
|
|
|
* Added concurrent function application operators to run stages of a
|
|
|
|
stream processing function application pipeline concurrently.
|
2018-06-14 22:14:15 +03:00
|
|
|
* Added `mapMaybe` and `mapMaybeM`.
|
2018-06-05 15:33:55 +03:00
|
|
|
|
|
|
|
## 0.2.1
|
|
|
|
|
|
|
|
### Bug Fixes
|
|
|
|
* Fixed a bug that caused some transformation ops to return incorrect results
|
|
|
|
when used with concurrent streams. The affected ops are `take`, `filter`,
|
|
|
|
`takeWhile`, `drop`, `dropWhile`, and `reverse`.
|
2018-05-17 11:43:59 +03:00
|
|
|
|
2018-05-04 23:32:41 +03:00
|
|
|
## 0.2.0
|
2018-03-26 00:52:07 +03:00
|
|
|
|
2018-04-15 11:39:49 +03:00
|
|
|
### Breaking changes
|
2018-05-13 07:43:26 +03:00
|
|
|
* Changed the semantics of the Semigroup instance for `InterleavedT`, `AsyncT`
|
2018-04-17 15:19:35 +03:00
|
|
|
and `ParallelT`. The new semantics are as follows:
|
|
|
|
* For `InterleavedT`, `<>` operation interleaves two streams
|
|
|
|
* For `AsyncT`, `<>` now concurrently merges two streams in a left biased
|
|
|
|
manner using demand based concurrency.
|
|
|
|
* For `ParallelT`, the `<>` operation now concurrently meges the two streams
|
|
|
|
in a fairly parallel manner.
|
|
|
|
|
2018-05-13 07:43:26 +03:00
|
|
|
To adapt to the new changes, replace `<>` with `serial` wherever it is used
|
2018-04-18 15:02:25 +03:00
|
|
|
for stream types other than `StreamT`.
|
2018-04-17 15:19:35 +03:00
|
|
|
|
2018-05-04 23:32:41 +03:00
|
|
|
* Remove the `Alternative` instance. To adapt to this change replace any usage
|
|
|
|
of `<|>` with `parallel` and `empty` with `nil`.
|
2018-05-13 07:43:26 +03:00
|
|
|
* Stream type now defaults to the `SerialT` type unless explicitly specified
|
2018-04-18 08:48:08 +03:00
|
|
|
using a type combinator or a monomorphic type. This change reduces puzzling
|
|
|
|
type errors for beginners. It includes the following two changes:
|
2018-05-13 07:43:26 +03:00
|
|
|
* Change the type of all stream elimination functions to use `SerialT`
|
2018-04-18 15:02:25 +03:00
|
|
|
instead of a polymorphic type. This makes sure that the stream type is
|
|
|
|
always fixed at all exits.
|
|
|
|
* Change the type combinators (e.g. `parallely`) to only fix the argument
|
|
|
|
stream type and the output stream type remains polymorphic.
|
2018-05-13 08:35:33 +03:00
|
|
|
|
2018-04-18 15:02:25 +03:00
|
|
|
Stream types may have to be changed or type combinators may have to be added
|
|
|
|
or removed to adapt to this change.
|
2018-04-17 15:19:35 +03:00
|
|
|
* Change the type of `foldrM` to make it consistent with `foldrM` in base.
|
2018-05-13 07:43:26 +03:00
|
|
|
* `async` is renamed to `mkAsync` and `async` is now a new API with a different
|
|
|
|
meaning.
|
|
|
|
* `ZipAsync` is renamed to `ZipAsyncM` and `ZipAsync` is now ZipAsyncM
|
|
|
|
specialized to the IO Monad.
|
2018-04-24 18:00:01 +03:00
|
|
|
* Remove the `MonadError` instance as it was not working correctly for
|
|
|
|
parallel compositions. Use `MonadThrow` instead for error propagation.
|
2018-04-22 20:53:23 +03:00
|
|
|
* Remove Num/Fractional/Floating instances as they are not very useful. Use
|
|
|
|
`fmap` and `liftA2` instead.
|
2018-03-26 00:52:07 +03:00
|
|
|
|
2018-04-15 11:39:49 +03:00
|
|
|
### Deprecations
|
2018-04-15 15:43:04 +03:00
|
|
|
* Deprecate and rename the following symbols:
|
2018-04-18 17:44:29 +03:00
|
|
|
* `Streaming` to `IsStream`
|
|
|
|
* `runStreaming` to `runStream`
|
2018-05-13 07:43:26 +03:00
|
|
|
* `StreamT` to `SerialT`
|
|
|
|
* `InterleavedT` to `WSerialT`
|
|
|
|
* `ZipStream` to `ZipSerialM`
|
|
|
|
* `ZipAsync` to `ZipAsyncM`
|
|
|
|
* `interleaving` to `wSerially`
|
|
|
|
* `zipping` to `zipSerially`
|
|
|
|
* `zippingAsync` to `zipAsyncly`
|
|
|
|
* `<=>` to `wSerial`
|
|
|
|
* `<|` to `async`
|
2018-04-15 18:36:45 +03:00
|
|
|
* `each` to `fromFoldable`
|
2018-04-15 15:43:04 +03:00
|
|
|
* `scan` to `scanx`
|
|
|
|
* `foldl` to `foldx`
|
|
|
|
* `foldlM` to `foldxM`
|
2018-05-07 16:47:02 +03:00
|
|
|
* Deprecate the following symbols for future removal:
|
2018-04-18 15:02:25 +03:00
|
|
|
* `runStreamT`
|
|
|
|
* `runInterleavedT`
|
|
|
|
* `runAsyncT`
|
|
|
|
* `runParallelT`
|
|
|
|
* `runZipStream`
|
|
|
|
* `runZipAsync`
|
2018-04-15 15:43:04 +03:00
|
|
|
|
|
|
|
### Enhancements
|
|
|
|
* Add the following functions:
|
2018-05-04 21:53:03 +03:00
|
|
|
* `consM` and `|:` operator to construct streams from monadic actions
|
|
|
|
* `once` to create a singleton stream from a monadic action
|
|
|
|
* `repeatM` to construct a stream by repeating a monadic action
|
2018-04-15 15:43:04 +03:00
|
|
|
* `scanl'` strict left scan
|
|
|
|
* `foldl'` strict left fold
|
|
|
|
* `foldlM'` strict left fold with a monadic fold function
|
2018-05-13 07:43:26 +03:00
|
|
|
* `serial` run two streams serially one after the other
|
|
|
|
* `async` run two streams asynchronously
|
2018-04-18 08:48:08 +03:00
|
|
|
* `parallel` run two streams in parallel (replaces `<|>`)
|
2018-05-13 07:43:26 +03:00
|
|
|
* `WAsyncT` stream type for BFS version of `AsyncT` composition
|
2018-04-24 23:43:00 +03:00
|
|
|
* Add simpler stream types that are specialized to the IO monad
|
2018-05-13 09:00:57 +03:00
|
|
|
* Put a bound (1500) on the output buffer used for asynchronous tasks
|
|
|
|
* Put a limit (1500) on the number of threads used for Async and WAsync types
|
2018-03-26 00:52:07 +03:00
|
|
|
|
2018-03-25 01:11:28 +03:00
|
|
|
## 0.1.2
|
|
|
|
|
|
|
|
### Enhancements
|
2018-03-24 17:58:21 +03:00
|
|
|
* Add `iterate`, `iterateM` stream operations
|
2018-03-22 20:31:08 +03:00
|
|
|
|
|
|
|
### Bug Fixes
|
2019-11-25 21:50:32 +03:00
|
|
|
* Fixed a bug that caused unexpected behavior when `pure` was used to inject
|
2018-03-25 01:11:28 +03:00
|
|
|
values in Applicative composition of `ZipStream` and `ZipAsync` types.
|
2018-03-22 20:31:08 +03:00
|
|
|
|
2018-03-18 17:17:26 +03:00
|
|
|
## 0.1.1
|
2018-03-10 13:59:50 +03:00
|
|
|
|
2018-03-14 11:42:41 +03:00
|
|
|
### Enhancements
|
2018-03-18 10:18:17 +03:00
|
|
|
* Make `cons` right associative and provide an operator form `.:` for it
|
2018-03-24 17:58:21 +03:00
|
|
|
* Add `null`, `tail`, `reverse`, `replicateM`, `scan` stream operations
|
2018-03-14 11:42:41 +03:00
|
|
|
* Improve performance of some stream operations (`foldl`, `dropWhile`)
|
|
|
|
|
|
|
|
### Bug Fixes
|
2018-03-14 02:19:53 +03:00
|
|
|
* Fix the `product` operation. Earlier, it always returned 0 due to a bug
|
|
|
|
* Fix the `last` operation, which returned `Nothing` for singleton streams
|
2018-03-10 13:59:50 +03:00
|
|
|
|
2017-12-01 08:32:28 +03:00
|
|
|
## 0.1.0
|
|
|
|
|
|
|
|
* Initial release
|