Commit Graph

3492 Commits

Author SHA1 Message Date
Adithya Kumar
40e549e605 Update the revisions of bench-report dependencies 2022-06-06 15:42:37 +05:30
Adithya Kumar
acc37cf60e Make regression checking CI dispatchable manually 2022-06-06 13:13:48 +05:30
Ranjeet Kumar Ranjan
9c87c644f7 Remove tapRate 2022-06-04 13:09:23 +05:30
Harendra Kumar
4608fad861 Fix documentation in the Stream modules
Add the unfold operation in Generation module.
2022-06-03 22:26:07 +05:30
Harendra Kumar
187295832e Refactor, reformat Stream module
Remove redundant operations, operations that can be expressed by
unfolds (generatio opsn) and folds (elimination ops).
2022-06-02 17:32:54 +05:30
Ranjeet Kumar Ranjan
dae276f7ec Add a Streamly.Internal.Data.Stream module
This is essentially the same as the old SerialT type. It will contain
all the Streamly.Prelude operations monomorphized to Serial stream.
2022-06-02 17:32:54 +05:30
Harendra Kumar
7b57bed5ad Group either based parsers together in export list 2022-05-31 22:59:49 +05:30
Harendra Kumar
d23907410a Add fromFoldMaybe in Parser module 2022-05-31 22:59:49 +05:30
Harendra Kumar
eb43f56427 Change the signature of fromFoldMaybe
Include the error message as an argument.
2022-05-31 22:57:41 +05:30
Ranjeet Kumar Ranjan
15a0629e8b Implement fromFoldMaybe 2022-05-31 22:57:41 +05:30
Harendra Kumar
fc8670670e Add "maybe" fold 2022-05-31 22:57:41 +05:30
Harendra Kumar
b3c69485fb Group element folds together in the export list 2022-05-31 22:57:41 +05:30
Ishan Bhanuka
9d68f58a21 Implement concatSequence for parser
concatSequence collects sequential parses of
parsers in a serial stream using a fold.

* Wrapper and internal implementation
* Benchmark and tests
* Documentation update
2022-05-30 12:07:09 +05:30
Harendra Kumar
4fa2d548fa Fix ghc head version download URL 2022-05-29 00:40:37 +05:30
Harendra Kumar
a5a941937e Implement stream split ops in terms of folds
Added only doctest definitions and commented code as of now for
implementing:

* splitWithSuffixSeq in terms of takeEndBySeq fold
* splitOnSuffixSeq in terms of takeEndBySeq_
* splitOnSeq in terms of takeEndBySeq_
2022-05-29 00:40:37 +05:30
Harendra Kumar
d5b3e375b7 Add takeEndBySeq_ fold 2022-05-29 00:40:37 +05:30
Harendra Kumar
e433d17497 Add takeEndBySeq fold
For searching a substring in a string.
2022-05-29 00:40:37 +05:30
Harendra Kumar
2aae2da54c Add Word8 stream splitting tests 2022-05-29 00:29:39 +05:30
Harendra Kumar
cf7b9b9927 Add splitWithSuffixSeq benchmarks 2022-05-29 00:29:39 +05:30
Ranjeet Kumar Ranjan
509fc06729 Fix takeFramedByEsc_ test case 2022-05-28 23:58:02 +05:30
Adithya Kumar
cbccb77777 Bump the version to the next major release target & run autoreconf 2022-05-25 15:10:16 +05:30
Adithya Kumar
58ae0ca05c Add some post release tasks in the maintainers guide 2022-05-25 15:10:16 +05:30
Adithya Kumar
a12f957454 Link the github and streamly-examples in the docs
- Add a github link in the user and developer docs
- Link streamly-examples under Tutorials and HowTo
2022-05-24 22:54:34 +05:30
Harendra Kumar
27bdbe105e Use CPS impl for parseBreak on array streams 2022-05-20 18:49:38 +05:30
Harendra Kumar
2831e12530 Add a benchmark for parseBreak on array streams 2022-05-20 17:43:23 +05:30
Harendra Kumar
d6b509ef91 Implement array stream foldBreak using CPS 2022-05-20 15:15:06 +05:30
Harendra Kumar
9943e6595f Add foldBreak benchmark to array streams 2022-05-20 15:15:06 +05:30
Harendra Kumar
c0f31513ed Rename foldD to foldBreakD 2022-05-20 15:15:06 +05:30
Harendra Kumar
ca6cfde3e0 Use CPS implementation for parseBreak 2022-05-20 15:08:52 +05:30
Harendra Kumar
24c48e91a0 Add parseBreak benchmark in Parser module 2022-05-20 15:08:27 +05:30
Harendra Kumar
1e161d8b29 Increase the mem limit for Data.Array.Foreign bench 2022-05-20 13:42:38 +05:30
Harendra Kumar
93d8e0139e Implement foldBreak using CPS 2022-05-20 12:46:19 +05:30
Harendra Kumar
d68e0e6e9c Simplify fold and foldBreak implementation 2022-05-20 12:46:19 +05:30
Harendra Kumar
1411c814f0 Implement uncons in terms of foldBreak 2022-05-20 12:46:19 +05:30
Harendra Kumar
d163459ebd Fix foldBreak performance issue 2022-05-20 03:38:02 +05:30
Harendra Kumar
37e226e263 Add a foldBreak benchmark for StreamD 2022-05-20 03:38:02 +05:30
Harendra Kumar
61b907cf8f Add a benchmark for foldBreak in Fold module 2022-05-20 03:38:02 +05:30
Harendra Kumar
107bebd771 Rename ArrayStream fold/parse operations
Add comments about implementing fold in terms of foldArr
2022-05-20 02:21:21 +05:30
Harendra Kumar
f1c5e5c625 Rename Array.Fold to ArrayFold
It is a cause of confusion when both Fold and Array.Fold are used.
2022-05-19 23:57:56 +05:30
Harendra Kumar
e715e4a115 Rename fold_/parse_/foldOn
fold_ to foldBreak
foldOn to foldContinue
parse_ to parseBreak

Use Parser instead of ParserD in parseBreak API
2022-05-19 23:57:56 +05:30
Harendra Kumar
420f387a20 Deprecate the "next" parser, use "one" fold instead 2022-05-19 23:26:49 +05:30
Harendra Kumar
8230747201 Add "one" fold which is an alias for "head" 2022-05-19 20:01:06 +05:30
Harendra Kumar
2f9709bada Implement satisfy and maybe in terms of either 2022-05-19 20:01:06 +05:30
Harendra Kumar
f4d5b36693 Fix sampleBurstEnd and sampleBurstStart
The generation of an event was dependent on a new input event coming in,
if a new event never came the earlier burst was lost. This is fixed by
using a timer tick stream.
2022-05-13 13:10:14 +05:30
Harendra Kumar
da08f2a49e Add the unimplemented postscan for parsers 2022-05-12 18:27:42 +05:30
Harendra Kumar
b4450a4c67 Add a TODO about replicateM unfold 2022-05-12 18:08:44 +05:30
Harendra Kumar
68eabdb33c Add comments about deintercalatePrefix/Suffix 2022-05-12 17:41:22 +05:30
Harendra Kumar
7e48a524a4 Note the diff between takeEndBy fold and parser 2022-05-12 17:41:22 +05:30
Ranjeet Kumar Ranjan
93e33d3292 Add parser tests cases
* takeEndBy
* takeEndByEsc
* takeFramedByEsc
* takeStartBy_
2022-05-12 16:59:07 +05:30
Harendra Kumar
c0280c850c Add a str quasiquoter for quoting strings 2022-05-11 18:37:05 +05:30