Adithya Kumar
bf8561e18d
Reuse mutable array code in Foreign.Type
2022-06-11 21:10:48 +05:30
Adithya Kumar
c2acb453e7
Make the sum fold numerically stable
2022-06-11 19:21:46 +05:30
Adithya Kumar
0d2ce6ca76
Deprecate variance and stdDev in folds
2022-06-11 19:18:01 +05:30
Adithya Kumar
d4c20981e6
Rename the smart constructors of terminating folds
2022-06-11 16:11:18 +05:30
Harendra Kumar
f82faecee3
Remove redundant MonadIO constraint on some array APIs
2022-06-10 00:48:44 +05:30
Harendra Kumar
348a4e1272
Add notes for creating arrays from pure streams
2022-06-10 00:48:44 +05:30
Harendra Kumar
0e739d7f6b
Implement read unfold for ring buffers
2022-06-10 00:11:38 +05:30
Adithya Kumar
f3b07c2922
Add an option to preserve quotes in wordQuotedBy
2022-06-09 21:55:06 +05:30
Harendra Kumar
d36f02ff12
Implement min/max/range without dequeue
2022-06-09 16:46:13 +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
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
ca6cfde3e0
Use CPS implementation for parseBreak
2022-05-20 15:08:52 +05:30
Harendra Kumar
93d8e0139e
Implement foldBreak using CPS
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
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
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
Harendra Kumar
254ff5cc99
Fix docs of some parser combinators
2022-05-11 01:36:23 +05:30
Harendra Kumar
b89abeb2b7
Add wordQuotedBy parser
2022-05-10 13:32:13 +05:30
Harendra Kumar
2e32c313e8
Add wordFramedBy parser
2022-05-10 13:32:13 +05:30
Ranjeet Kumar Ranjan
ba8833d701
Add drain API to Serial module
2022-05-09 14:29:36 +05:30
Harendra Kumar
45e34b0a52
Add takeStartBy_ parser
2022-05-09 13:06:04 +05:30
Harendra Kumar
ef2ea11176
Add takeFramedByGeneric parser
2022-05-09 13:02:49 +05:30
Harendra Kumar
6100419d45
Add takeFramedBy parsers
2022-05-09 13:02:49 +05:30
Harendra Kumar
97bb9b9f2c
Fix error messages in takeStartBy/takeEndByEsc
...
In deintercalate and sepBy as well.
2022-05-09 13:01:46 +05:30
Harendra Kumar
501be5e280
Use strict data in parser accumulators
2022-05-08 10:56:46 +05:30
Harendra Kumar
424765d72f
Implement takeEndByEsc
2022-05-08 10:51:52 +05:30
Harendra Kumar
8ae687f7ce
Add takeEndBy parser
2022-05-08 10:51:52 +05:30
Harendra Kumar
6ed0c935c5
Rename some parser APIs, reorg the export list
...
And add some proposed commented APIs.
2022-05-08 10:51:52 +05:30
Harendra Kumar
8bf2703daf
Implement takeWhileP parser
2022-05-06 17:31:23 +05:30
Harendra Kumar
0ff46e4a76
Implement deintercalate parser
2022-05-06 16:51:30 +05:30
Harendra Kumar
c94f540a15
Add either stream utilities for folds
...
lefts/rights/both
2022-05-06 14:33:13 +05:30