Ranjeet Kumar Ranjan
e7fc27a52f
Change warning options in streamly and streamly-core packages
...
Fix review comments
2022-08-11 16:53:36 +05:30
Adithya Kumar
6dd122a47a
Make the note of eta-reduction under mapFB more evident
2022-08-10 19:00:24 +05:30
Ranjeet Kumar Ranjan
6f68b50d18
Fix hlint in multiple streamly-core files
2022-08-10 19:00:24 +05:30
Harendra Kumar
d76314459e
Rename some variables and constructors in ParserK
...
To make the constructors consistent with ParserD.
Rename variables for brevity, clarity and consistency.
2022-08-10 13:25:23 +05:30
Harendra Kumar
dde88b8b00
Fix hlint error on ParserD/Type
2022-08-10 13:25:23 +05:30
Harendra Kumar
98d3ea9d27
Add stream generation functions to Data.Stream
2022-08-09 01:07:40 +05:30
Ranjeet Kumar Ranjan
b528bae8ce
Add Timed API for stream generations
2022-08-08 19:41:12 +05:30
Harendra Kumar
4bb8b7c950
Add fromByteStr# and fromStr#
...
Routines to generate byte/char streams from Haskell string literals.
2022-08-08 02:10:44 +05:30
Ranjeet Kumar Ranjan
64512cec06
Add api to generate Stream from memory Address
2022-08-07 13:31:16 +05:30
Harendra Kumar
9ed94a6a09
Implement many2, map2
...
* crossWith and many can be implemented in terms of many2
* rename mapmWithInput to mapM2
* add map2
2022-08-07 13:25:40 +05:30
Harendra Kumar
df56bd6abe
Remove Storable aliased to Unboxed
2022-08-06 13:26:09 +05:30
Ranjeet Kumar Ranjan
2e21c3a76f
Rename Storable constraint to Unboxed
2022-08-06 13:23:10 +05:30
Harendra Kumar
aac1526f8b
Import Array.Unboxed instead of Array.Foreign
...
Fix broken build.
2022-08-06 00:54:38 +05:30
Ranjeet Kumar Ranjan
26b78c6e89
Deprecate Streamly.Data.Array.Foreign module
...
Rename it to Streamly.Data.Array.Unboxed
2022-08-06 00:38:23 +05:30
Ranjeet Kumar Ranjan
53cce5e7ac
Implement Data.Stream.Top module
2022-08-06 00:32:10 +05:30
Harendra Kumar
1cd4379d01
Remove dependency on hashable/unordered-containers
2022-08-02 14:35:49 +05:30
Adithya Kumar
614c226eac
Rename IORef.Prim to IORef.Unboxed
2022-08-01 10:38:33 +05:30
Ranjeet Kumar Ranjan
3dc72698cf
Replace SerialT with Stream
2022-07-31 02:48:10 +05:30
Adithya Kumar
d58ebdc7b3
Replace Prim with Unboxed in Data.IORef
2022-07-31 02:43:44 +05:30
Adithya Kumar
adce8d0048
Add combinators to pin and unpin foreign arrays
2022-07-31 01:03:31 +05:30
Adithya Kumar
3811e683ce
Improve array combinators to work with unpinned arrays
2022-07-27 17:24:59 +05:30
Ranjeet Kumar Ranjan
eb586c081c
Implement SerialT in terms of Stream
2022-07-27 15:53:08 +05:30
Harendra Kumar
2d8c7762bf
Use left folds in all stream elimination ops
2022-07-21 02:06:03 +05:30
Harendra Kumar
8dfcadfd9b
Implement findM fold
2022-07-20 01:53:37 +05:30
Harendra Kumar
c366e2d5e2
Use unfolds in all stream generation ops
...
Based on a build flag. We want to benchmark how these operations perform
when unfolds are used. This is to investigate if we can replace these
ops with just unfolds or implement these in terms of unfolds to improve
modularity.
Increase memory for Split benchmarks for use-unfolds flag.
2022-07-19 02:45:34 +05:30
Harendra Kumar
00f5d9f42d
Use the SPEC argument on all recursive cases
2022-07-18 14:46:56 +05:30
Harendra Kumar
bc49c3d731
Fix fusion issue in multi-stream folds
...
Fix fusion issue in isSubsequenceOf, isPrefixOf, stripPrefix, the
2022-07-18 13:29:18 +05:30
Harendra Kumar
efa19570f8
Allow base-4.17, ghc-9.4
...
Increase benchmark memory for ghc-9.5
2022-07-18 12:48:01 +05:30
Harendra Kumar
71b0c0dd39
Refactor "the", "nub", add nubInt
...
Express countDistinct and countDistinctInt in terms of nub/nubInt
2022-07-05 15:03:45 +05:30
Ranjeet Kumar Ranjan
323d3382d0
Implement "the" as a Fold
2022-07-05 14:54:42 +05:30
Harendra Kumar
fe597c2339
Add the "frequency" fold
2022-07-05 14:27:54 +05:30
Harendra Kumar
0f951fb3fb
Refactor "nub", rename it to "frequency"
2022-07-05 14:27:54 +05:30
Ranjeet Kumar Ranjan
40a4bbc993
Implement nub in Fold.Window module
2022-07-04 23:30:02 +05:30
Harendra Kumar
812fe4cec2
Update the documentation of 'minimum'
2022-07-04 23:16:49 +05:30
Ranjeet Kumar Ranjan
cdfda9b500
Change pollCount signature
2022-07-04 18:04:52 +05:30
Ranjeet Kumar Ranjan
8ac1ad15c2
Implement nub as Fold
2022-07-04 17:55:33 +05:30
Harendra Kumar
6cfe06b357
Refactor, document, fixup Data.Stream module
...
Minimize the difference with IsStream modules and fix the differences
Fix all doctests, remove stale since notations
Remove redundant functions from Stream/Common module
Remove the "map" operation, we should use "fmap" instead.
2022-06-23 16:50:16 +05:30
Ranjeet Kumar Ranjan
4f929f3ed3
Add Data.Stream module for serial streams
...
This module will replace SerialT type with Stream type. The new serial
stream type "Stream m a" has the same underlying representation as
"SerialT m a" and the two types can be coerced to each other.
2022-06-23 16:29:40 +05:30
Adithya Kumar
adc2e75b5d
Abstract out Unboxing helpers and comment out IOVec code
2022-06-23 16:09:57 +05:30
Harendra Kumar
9861120b4a
Implement fromListRevN and fromListRev for arrays
2022-06-20 16:15:20 +05:30
Adithya Kumar
4e252a890b
Remove duplicate function (lmap2) in Producer module
2022-06-19 15:52:20 +05:30
Adithya Kumar
338734663a
Add trace to folds
2022-06-18 22:22:39 +05:30
Adithya Kumar
bd13edb77c
Reuse mutable array producer code in immutable arrays
2022-06-11 21:10:48 +05:30
Adithya Kumar
8bfff35b44
Add another type of input mapping in Producer
2022-06-11 21:10:48 +05:30
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