Commit Graph

2537 Commits

Author SHA1 Message Date
Harendra Kumar
badc62d2b7 Rename stream transformation some APIs
Primary motivation for renaming takeEnd was to avoid confusion with
takeEndBy but I like the new name takeLast irrespective of that.
2021-03-14 01:02:10 +05:30
Adithya Kumar
f261f02d15 Make the behaviour of splitMany similar to that of parseMany 2021-03-13 03:33:17 +05:30
Adithya Kumar
dc1731784d Add splitManyPost (duplicate of splitMany at this point) 2021-03-13 03:33:17 +05:30
Adithya Kumar
0ac0aafc0f Fix some incorrect doc formatting 2021-03-13 03:33:17 +05:30
Adithya Kumar
92771949ad Fix import error 2021-03-12 01:30:23 +05:30
Adithya Kumar
7950a0a967 Add a test case for Fold.many 2021-03-12 01:01:51 +05:30
Adithya Kumar
a1472167de Make behaviour of Fold.many similar to that of foldMany/parseMany 2021-03-12 01:01:51 +05:30
Adithya Kumar
abceb227b4 Add manyPost (duplicate of many at this point) 2021-03-12 01:01:51 +05:30
Harendra Kumar
cd0a185607 Add NOINLINE for better optimization of loops 2021-03-12 01:01:51 +05:30
Ranjeet Kumar Ranjan
87ebad51cb Rename Types.hs modules to Type.hs 2021-03-11 15:12:08 +05:30
Harendra Kumar
bb72e18365 Remove mkAccum* fold constructors 2021-03-10 19:29:12 +05:30
Harendra Kumar
e9a0e7c118 Move rmapM to Fold/Types.hs 2021-03-10 19:29:12 +05:30
Harendra Kumar
e95d056453 Add left and right fold constructors 2021-03-10 02:37:10 +05:30
Ranjeet Kumar Ranjan
4da398aa00 Change argument order in parser combinators #969
Keep the collecting fold as the last argument for ease of composition.
Data flows from one fold to the next, so the next fold in the chain
should be the last argument.
2021-03-09 23:10:43 +05:30
Adithya Kumar
bfebe943c0 Reduce the time delay in classifySessions example 2021-03-09 07:56:12 +05:30
Adithya Kumar
eda484641a Add tests for foldIterateM 2021-03-09 07:56:12 +05:30
Adithya Kumar
7da0593dbb Add benchmarks for foldIterateM 2021-03-09 07:56:12 +05:30
Adithya Kumar
b6253327fa Add foldIterateM 2021-03-09 07:56:12 +05:30
Harendra Kumar
ad9308ea6b Rearrange tests in the same order as in Data.Fold 2021-03-08 22:50:53 +05:30
Harendra Kumar
7910e05da7 Change the argument order in "many" 2021-03-08 19:53:20 +05:30
Harendra Kumar
d2e3430348 Rename some fold combinators
This commit has no functional change, only renaming and doc edits.
2021-03-07 23:04:41 +05:30
Harendra Kumar
fca88a49e8 Change the input stream type of classifySessionsBy
For more convenient operation.
2021-03-05 14:10:17 +05:30
Harendra Kumar
f7681dc897 Reorder the arguments in classifySessionsBy
For more convenient and intuitive use.
2021-03-05 13:04:35 +05:30
Harendra Kumar
cb4a2bb2eb Edit the doc of classifySessionsBy et al.
Clarify and remove redundancy of docs, fix the example.
2021-03-05 13:01:52 +05:30
Ranjeet Kumar Ranjan
df38c4a8a4 Change splitWith to serialWith in folds and parsers 2021-03-05 11:46:59 +05:30
Ranjeet Kumar Ranjan
0414fe8ec6 Rename takeLE to take 2021-03-05 11:43:48 +05:30
Ranjeet Kumar Ranjan
305f89b512 Replace /Internal/ annotation to /Pre-release/ 2021-03-05 11:41:38 +05:30
Adithya Kumar
171907e2b3 Remove Applicative instance of Fold 2021-03-05 09:22:50 +05:30
Adithya Kumar
d79dd95a13 Move instances based on Applicative from Fold to Tee 2021-03-05 09:22:50 +05:30
Adithya Kumar
9231d2d67c Release teeWith 2021-03-05 09:22:50 +05:30
Harendra Kumar
0bd94d9649 Remove parselMx' 2021-03-05 03:04:35 +05:30
Harendra Kumar
179d7e6011 Inline liftA2 in folds and parsers 2021-03-05 03:04:35 +05:30
Adithya Kumar
4f556e8b4d Make Parser initial of type Initial 2021-03-05 03:04:35 +05:30
Harendra Kumar
f32a16628e Fix syntax error due to bad comment 2021-03-05 01:47:02 +05:30
Harendra Kumar
8d54c84bd7 Add CI for GHC-9.0 2021-03-04 19:16:13 +05:30
Harendra Kumar
37562825e9 Increase stack limit of sum-product-fold for GHC-9.0 2021-03-04 18:25:45 +05:30
Harendra Kumar
ca29fd279e Make it build for GHC-9.0 2021-03-04 18:25:45 +05:30
Pranay Sashank
c3e5f2810b
Merge pull request #962 from hasufell/hasufell/PR/fix-armv7-build
Use WORD_SIZE_IN_BITS for Word32 guard
2021-03-02 21:23:17 +05:30
Julian Ospald
f8380ce4b6
Use WORD_SIZE_IN_BITS for Word32 guard
This should also fix build on armv7 wrt #961
2021-02-24 21:49:44 +01:00
Harendra Kumar
34770c44a2 Add a Functor instance for Producer 2021-02-24 11:59:18 +05:30
Harendra Kumar
02d18f059e Use --flag doctests by default 2021-02-24 00:41:33 +05:30
Pranay Sashank
9ecae85115 Move stack CI to github workflows. 2021-02-23 19:09:28 +05:30
Harendra Kumar
3dc1e2c939 Make custom-setup depend on Cabal library
We need at least version 2.2.
2021-02-23 18:35:56 +05:30
Pranay Sashank
29b7e3e7ec Add CI for doctests. 2021-02-23 18:35:56 +05:30
Pranay Sashank
da906ce49d Fix examples in code to work with doctest. 2021-02-23 18:35:56 +05:30
Pranay Sashank
c88b23e119 Add doctests test suite. 2021-02-22 19:22:53 +05:30
Harendra Kumar
2c21267a6d Fix fromStreamD performance
Before: not finishing in reasonable time
After: 686 us (similar to fromStream)
2021-02-22 14:07:35 +05:30
Harendra Kumar
c8b9fac92b Move parse functions to Source module
Plus:

* Fix returning buffer in the "parse" function
* Some more minor formatting/doc fixups.
2021-02-21 01:58:20 +05:30
Harendra Kumar
2a7e3ccdbc Rename the resumable Unfold type to Producer 2021-02-21 01:58:20 +05:30
Harendra Kumar
7c95ccaaad Use an explicit state to represent nested loops 2021-02-21 01:58:20 +05:30