Commit Graph

778 Commits

Author SHA1 Message Date
Ranjeet Kumar Ranjan
64d337474b Move Data.Array to Data.Array.Generic 2022-11-04 16:00:48 +05:30
Adithya Kumar
239e3311eb Change "Parser m a b" to "Parser a m b" 2022-11-03 04:28:59 +05:30
Harendra Kumar
703823b3d5 Update Fold docs, move containers ops to streamly pkg
Move the container dependent code from streamly-core to streamly
Rename some functions.
Release some functions.
2022-11-02 20:25:26 +05:30
Adithya Kumar
41fb0734bc Use explicit arguments in the concurrency config options 2022-10-27 15:32:41 +05:30
Adithya Kumar
1fb51c42ae Replace Unboxed with Unbox and remove the Unboxed type alias 2022-10-27 01:11:34 +05:30
Adithya Kumar
64aa13dfd6 Use Bool instead of Switch 2022-10-26 23:02:28 +05:30
Adithya Kumar
5327f181db Deprecate Streamly.Prelude & S.Internal.Data.Stream.IsStream.* 2022-10-21 02:07:24 +05:30
Harendra Kumar
e8564258ec
Change the unfold/toStream naming for arrays (#2004) 2022-10-20 20:12:37 +05:30
Harendra Kumar
e03cceb344
Change Handle, Stdio, File unfold APIs (#1998) 2022-10-20 17:27:02 +05:30
Harendra Kumar
3db9238be1 Add stream ops, deprcate/rename unfold ops (Network)
Add internal stream generating operations as alternatives to unfolds. Stream
operations are for common use. Unfolds are for optimizations in nested
use.

Rename the unfold operations from "read*" to "reader*". The "read*'
operations will be used for stream operations in future.
2022-10-20 04:58:22 +05:30
Harendra Kumar
f7415e9b44 Use list based concat functions in place of binary ops 2022-10-17 16:31:34 +05:30
Harendra Kumar
362ceb1e39 Rename eagerEval to eager and inspectMode to inspect 2022-10-16 20:18:16 +05:30
Harendra Kumar
bfec356951 Implement "interleaved" config option
For concurrent streams.
2022-10-16 20:02:37 +05:30
Harendra Kumar
d3ec4917d9 Revert "Split Serial module into Serial and WSerial"
This reverts commit 5ddfb45764.
2022-10-13 01:27:53 +05:30
Ranjeet Ranjan
7ac9ab7d5b
Rename Data.Stream.Async to Data.Stream.Concurrent (#1926) 2022-10-11 16:41:45 +05:30
Harendra Kumar
edc9d3ad8f Add the ordered option in Async tests 2022-10-11 00:23:09 +05:30
Harendra Kumar
18e656ff95 Add eagerEval option in Async tests 2022-10-10 18:20:44 +05:30
Ranjeet Ranjan
666dbb0bdb
Change the signature of Parser.sequence, move fold at end (#1906) 2022-10-07 13:53:17 +05:30
Ranjeet Ranjan
61eb3f4dfa
Change the signature of Parser.deintercalate, move fold at end (#1904) 2022-10-07 13:51:50 +05:30
Adithya Kumar
ba01fcd958 Rename and move unboxed array APIs
Added Unboxed.newUnpinnedBytes and Mut.Type.newUnpinned

Array.Unboxed.Mut.Type.nilArrayContents -> Unboxed.nil
Array.Unboxed.Mut.Type.newAlignedArrayContents -> Unboxed.newAlignedPinnedBytes

Mut.Type:
newArray -> newPinned
newArrayAligned -> newAlignedPinned

Unboxed:
newUnpinnedArrayContents -> newUnpinnedBytes
2022-10-07 11:37:50 +05:30
Adithya Kumar
83ed97646c Add tests for the existence of Unbox type class instances 2022-10-06 21:00:50 +05:30
Adithya Kumar
6e021ceb18 Change the signature of replicateM 2022-10-06 15:17:46 +05:30
Ranjeet Ranjan
05eb489fd3
Rename head to one (#1887) 2022-10-04 17:00:29 +05:30
Ranjeet Ranjan
4ab5ba2ce9
Rename *.Foreign to *.Unboxed modules in streamly-core (#1877) 2022-10-03 18:24:31 +05:30
Adithya Kumar
d84f82d973 Remove redundant GHC 8.8 CPP conditional 2022-09-30 15:28:24 +05:30
Adithya Kumar
09ed99de1f Remove support for GHC 8.4.* 2022-09-28 17:50:58 +05:30
Adithya Kumar
99846a8f07 Remove the primitive dependency from streamly-core 2022-09-22 01:49:06 +05:30
Harendra Kumar
8a0d9ad39f Add test for new Async streams 2022-09-20 18:40:00 +05:30
Adithya Kumar
e3e60caeaa Update the Unboxed representation
1. Use sizeOf and alignment from Storable
2. Rename readByteArray -> box and writeByteArray -> unbox
3. Rename ArrayContents to MutableByteArray
4. Change the meaning of the typeclass and update the docs accordingly
2022-09-01 17:50:55 +05:30
Harendra Kumar
68dccf50a7 Bump dependency upper bounds for GHC 9.4
Bump base upper bound
Bump lockfree-queue upper bound
2022-08-28 01:37:46 +05:30
Harendra Kumar
b8a17190a8
Implement ZipStream using Data.Stream (#1811) 2022-08-25 23:57:42 +05:30
Ranjeet Ranjan
6e77cdbe24
Move SmallArray to dev flag (#1783) 2022-08-25 15:52:41 +05:30
Ranjeet Ranjan
0b4a300f1a
Combine test-core and bench-core flags to a single use-streamly-core flag (#1798) 2022-08-23 11:47:20 +05:30
Ranjeet Ranjan
64e471b91a
Move unboxed array tests under test-core flag (#1797) 2022-08-22 22:01:50 +05:30
Harendra Kumar
8dd618b1ba Increase heap limit for building Parser tests 2022-08-20 23:05:13 +05:30
Harendra Kumar
8e03301862 Add tests for Alternative instance of ParserD 2022-08-20 23:05:13 +05:30
Harendra Kumar
c0769668d9 Change the type of parser "extract" to Step 2022-08-20 23:05:13 +05:30
Ranjeet Ranjan
a40431740c
Replace SerialT with Stream for remaining modules (#1777)
* Replace SerialT to Stream for remaining modules

* Reduce the usage of IsStream in benchmarks

And some other refactoring.

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 11:13:11 +05:30
Ranjeet Ranjan
ec760805c9
Modularize test cases (#1707)
* Modularize test cases

* Make it build with test-core flag

And several other changes.

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 00:45:57 +05:30
Ranjeet Kumar Ranjan
18a226b9f0 Array.Foreign -> Array.Unboxed in tests and benchmarks & intenals
Co-authored-by: Ranjeet <ranjeet@composewell.com>
2022-08-17 15:09:42 +05:30
Harendra Kumar
ffb1dfcc90 Update default.nix for bench/test-runner 2022-08-09 01:59:59 +05:30
Harendra Kumar
af9e344557 Remove stale Prim Array targets from test-runner 2022-08-09 01:59:59 +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
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
3dc72698cf Replace SerialT with Stream 2022-07-31 02:48:10 +05:30
Adithya Kumar
4015d54128 Remove prim arrays and all related code 2022-07-31 02:43:44 +05:30
Adithya Kumar
3d8ffee684 Fix the test case for Parser.takeFramedByEsc_ 2022-07-27 17:43:18 +05:30
Adithya Kumar
3811e683ce Improve array combinators to work with unpinned arrays 2022-07-27 17:24:59 +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
Adithya Kumar
aaa279c9b2 Add tests for unboxed ring array 2022-07-11 18:51:43 +05:30
Adithya Kumar
c361a315e3 Add some test cases for unboxed array 2022-07-08 16:51:03 +05:30
Ranjeet Kumar Ranjan
8ac1ad15c2 Implement nub as Fold 2022-07-04 17:55:33 +05:30
Adithya Kumar
3e76123e53 Add couple of test cases for foreign mutable array 2022-06-30 17:51:39 +05:30
Adithya Kumar
adc2e75b5d Abstract out Unboxing helpers and comment out IOVec code 2022-06-23 16:09:57 +05:30
Adithya Kumar
0d2ce6ca76 Deprecate variance and stdDev in folds 2022-06-11 19:18:01 +05:30
Adithya Kumar
1ee11e87ec Increase the build memory limit for test:Data.Parser 2022-06-09 21:55:06 +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
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
2aae2da54c Add Word8 stream splitting tests 2022-05-29 00:29:39 +05:30
Ranjeet Kumar Ranjan
509fc06729 Fix takeFramedByEsc_ test case 2022-05-28 23:58:02 +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
Ranjeet Kumar Ranjan
93e33d3292 Add parser tests cases
* takeEndBy
* takeEndByEsc
* takeFramedByEsc
* takeStartBy_
2022-05-12 16:59:07 +05:30
Harendra Kumar
9e034c738e Add takeWhileP test 2022-05-09 13:02:49 +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
0409d4bbec Add a test for deintercalate 2022-05-06 16:51:30 +05:30
Harendra Kumar
e4418a5f06 Fix dependencies and package names
For bench-runner and test-runner
2022-05-06 16:51:30 +05:30
Harendra Kumar
b7b3aa8d02 Rename benchmark driver exe to bench-runner
To keep it consistent with test-runner for test driver
2022-04-28 23:35:26 +05:30
Harendra Kumar
5435aa1b16 Use Haskell based test driver
Replace bin/test.sh with a Haskell implementation
2022-04-28 23:13:45 +05:30
Ranjeet Kumar Ranjan
a849812d99 Maintain a list of top w elements in the stream 2022-04-22 19:55:41 +05:30
Ranjeet Kumar Ranjan
8569fdd383 Fix test case for takeBetween 2022-04-21 19:30:57 +05:30
Harendra Kumar
02578386da Use the demux input to determine the fold
We may want to use the entire value to determine the fold and not just
the key. For example, we may have the key as an Int that uniquely
determines the fold (for example a connection/request id). Once the
fold starts we can always lookup the fold using this key. However, to
determine what fold to use initially we may need more information than
just the request-id (e.g. the type of the message).
2022-04-11 18:41:37 +05:30
Adithya Kumar
5b135b5bfe Symlink a few moved dev files 2022-04-11 01:16:09 +05:30
Adithya Kumar
72a0199c67 Move the README of benchmarks and tests into the developer docs 2022-04-11 01:16:09 +05:30
Harendra Kumar
800ae8a8f8 Use monadic action to generate fold in demux* 2022-04-06 17:43:15 +05:30
Ranjeet Kumar Ranjan
d31f3329f1 Rename some unfold APIs 2022-04-06 17:41:47 +05:30
Ranjeet Kumar Ranjan
4f70b0d4e6 Rename Socket BufferOf APIs 2022-04-03 15:30:56 +05:30
Harendra Kumar
6b2f1c1669 Change demux fold APIs and implementations 2022-04-02 03:32:42 +05:30
Ranjeet Kumar Ranjan
7886550a71 Add bubbleAsc function
Fix review comments

Fix last element

Fix empty arraay check
2022-04-01 14:40:43 +05:30
Ranjeet Kumar Ranjan
3a59974ed8 Rename unfold scan to postscan, add benchmark, test 2022-03-25 15:18:27 +05:30
Ranjeet Kumar Ranjan
3b3bda74fb Add a test for Fold.postscan
Fix review comments

Fix review comments
2022-03-25 15:09:57 +05:30
Ranjeet Kumar Ranjan
af68c08a71 Rename some filesystem APIs 2022-03-25 14:04:00 +05:30
Harendra Kumar
0eadd04ada Add doc, powersums and mean
Rename "whole" to "cumulative"
2022-03-25 12:33:58 +05:30
Ranjeet Kumar Ranjan
f95fcbd82f Add a module for sliding window folds
Moved some basic incremental folds from 'streamly-statistics" package.
2022-03-25 12:33:58 +05:30
Ranjeet Kumar Ranjan
e0cf3aa3cf Add test case for Fold.scan 2022-03-25 00:17:32 +05:30
Harendra Kumar
5ddfb45764 Split Serial module into Serial and WSerial 2022-03-24 12:55:08 +05:30
Harendra Kumar
cc7ac6cad9 Remove remaining code meant for GHC < 8.4 2022-03-24 02:24:27 +05:30
Ranjeet Kumar Ranjan
07bf70d5f8 Drop GHC 8.x to 8.2.x Support 2022-03-24 02:23:45 +05:30
Ranjeet Kumar Ranjan
1b8043f6ef Fix joinOuter 2022-03-24 02:19:44 +05:30
Ranjeet Kumar Ranjan
3012ae95e5 Change the argument order of Unfold.many 2022-03-19 11:49:15 +05:30
Harendra Kumar
f8afdaf7e2 Fix docspec for Data.Fold 2022-03-14 11:47:42 +05:30
Ranjeet Kumar Ranjan
faabb9a01f Add mutable array "strip" operation 2022-03-14 02:29:41 +05:30
Ranjeet Kumar Ranjan
4b49390286 Fix uniqBy and rollingMap
Fix hlint

Fix review comments

Add Functor contraint

Fix review comments
2022-03-11 13:46:05 +05:30
Adithya Kumar
29ba5decc5 Extract streamly-core out of streamly 2022-03-10 01:25:49 +05:30
Adithya Kumar
064b1d9db7 Rename unsafeCast as castUnsafe 2022-03-07 03:54:51 +05:30
Ranjeet Kumar Ranjan
f30eafd440 Add -Wmissing-export-lists flag 2022-03-01 13:41:50 +05:30
Ranjeet Kumar Ranjan
e65c5db97e Add a takeEndBy transformation
Fix review comments

Fix review comments

Use fromStreamD and toStreamD instead of fromStreamS and add a test case

Move test case to Common

Fix hlint
2022-02-28 17:26:51 +05:30
Ranjeet Kumar Ranjan
64e9eeafc5 Add test cases for async 2022-02-11 03:59:34 +05:30
Ranjeet Kumar Ranjan
4d4732577d Add a test for wAsync behavior check 2022-02-11 03:59:34 +05:30
Harendra Kumar
ec20f5fdff Fix/simplify intersectBySorted
* Remove MonadIO and Eq constraints
* Simplify implementation
* Simplify tests
* Fix formatting
* Use longer benchmarks
2022-02-10 17:22:28 +05:30
Ranjeet Kumar Ranjan
160393c8e0 Implement intersectBySorted API 2022-02-10 14:47:01 +05:30
Adithya Kumar
7cd7a185d3 Change the working array position in the APIs of Foreign(.Type) 2022-02-06 03:52:44 +05:30
Adithya Kumar
64c476f34b Change the working array position in the APIs of Foreign.Mut.Type 2022-02-06 03:52:44 +05:30
Ranjeet Kumar Ranjan
582410afda Implement joinLeftHash API 2022-02-02 12:36:43 +05:30
Harendra Kumar
870958d766 Fix review suggestions for joinOuterHash 2022-02-02 07:04:37 +05:30
Harendra Kumar
c8d1ca3fc7 Fix joinOuterMap operation
The streams were used multiple times, now they are used only once.
2022-02-02 07:04:37 +05:30
Ranjeet Kumar Ranjan
72a2b1fa43 Implement joinOuterHash API 2022-02-02 07:04:37 +05:30
Harendra Kumar
1ca5137562 Bump hspec upper bound for GHC-9.3 2022-02-01 11:09:58 +05:30
Ranjeet Kumar Ranjan
0a35315923 Fix joinInnerMap test case failure 2022-02-01 11:07:24 +05:30
Harendra Kumar
66fe3d1ec9 Optimize and rename joinInnerHash to joinInnerMap 2022-01-15 02:26:26 +05:30
Ranjeet Kumar Ranjan
9fdce7a10a Add test cases for joinInnerHash 2022-01-15 01:28:02 +05:30
adithyaov
8145347bbc Constraint the upper bound of base to the latest major range
Don't include the invalid (non-existent) major ranges
2022-01-05 08:10:23 +05:30
adithyaov
5998dd8c41 Apply hlint suggesstions on common array test file 2021-12-17 17:43:23 +05:30
adithyaov
9c04f40999 Completely remove the unclean common array test code 2021-12-17 17:43:23 +05:30
adithyaov
6f65e4af2e Plug in common array test code cleanly in Data.SmallArray 2021-12-17 17:43:23 +05:30
adithyaov
420ee10869 Plug in common array test code cleanly in Data.Array.Prim.Pinned 2021-12-17 17:43:23 +05:30
adithyaov
561ec1edf1 Plug in common array test code cleanly in Data.Array.Prim 2021-12-17 17:43:23 +05:30
adithyaov
a2f7e570ab Plug in common array test code cleanly in Data.Array.Foreign 2021-12-17 17:43:23 +05:30
adithyaov
db254e10b7 Move common array test code cleanly out and plug it in Data.Array 2021-12-17 17:43:23 +05:30
adithyaov
5add04dd8d Add a test case for concurrent applicative 2021-12-09 15:13:58 +05:30
Harendra Kumar
03c154c645 Increase the build memory for Prelude.ZipAsync 2021-12-08 11:28:56 +05:30
Harendra Kumar
d0b45e3122 Restrict version bounds to < next major version
Restrict hspec to < 2.9.3 as 2.9.3 does not build for ghcjs.
2021-12-08 11:24:01 +05:30
Harendra Kumar
2bde24e5d2 Comment out incorrect test
The test is unpredictable as we create the watch dir before starting the
watch, we may miss the event.
2021-12-08 10:15:19 +05:30
Harendra Kumar
4ce545e30c Update documentation remove redundant comments 2021-11-30 16:30:25 +05:30
Ranjeet Kumar Ranjan
842d0ca9e7 Fix inappropriate type (Not a directory) error
In Linux module for File paths in recursive mode.
2021-11-30 15:47:59 +05:30
Harendra Kumar
f41693f01c Bump versions of transformers and tasty-bench 2021-11-26 03:54:22 +05:30
Harendra Kumar
4512fa476f Overhaul file system event testing
Remove watchRecursive from common fs event module as this is unreliable
on Linux platform.

Change default config to use non-recursive watch to make it same as the
behavior of the common module.
2021-11-14 12:31:48 +05:30
Harendra Kumar
e8fbfa8d31 Fix windows/linux builds 2021-11-14 12:31:48 +05:30
Ranjeet Kumar Ranjan
212559e9d5 Seperate platform specific Events 2021-11-14 12:31:48 +05:30
Ranjeet Kumar Ranjan
6b0b50207b Fix docs and enable test cases for common FS Event module 2021-11-14 12:31:48 +05:30
Ranjeet Kumar Ranjan
3b8932e74c Implement common FS events
Fix mac compile issue

Redue lower version of filepath

Fix review comments

 Fix Mac compile issue

Fix review comments
2021-11-14 12:31:48 +05:30
Harendra Kumar
6e52834cb2 Fix groupByRollingEither
* Change the signature to return different types in Either
* Fix a case to return correct Either value
* Fix and enhance benchmarks
* Implement sortBy using groupByRollingEither
2021-11-07 10:34:03 +05:30
Harendra Kumar
e4e8797202 Move sortBy to correct test group 2021-11-07 00:46:04 +05:30
Ranjeet Kumar Ranjan
732a916fdc Add tests for sort and mergeBy 2021-11-07 00:46:04 +05:30
Julian Ospald
d70b57c039 Add 'next' to Parsers 2021-11-06 21:54:26 +05:30
Harendra Kumar
0d6a0aa943 Rename unsafeIndex and unsafeWriteIndex
To getIndexUnsafe and putIndexUnsafe.
2021-10-22 01:13:53 +05:30
Harendra Kumar
58b7b77857 Make the seed in foldIterateM monadic 2021-10-10 14:17:06 +05:30
Harendra Kumar
209433807f Rename unsafeSlice to getSliceUnsafe 2021-10-09 22:59:01 +05:30
Harendra Kumar
02e884f264 Fix the takeBetween test
Fixes #1099
2021-10-09 22:53:18 +05:30
Harendra Kumar
1953900342 Ensure asserts are on in debug/dev/non-opt builds 2021-10-09 22:50:37 +05:30
Harendra Kumar
b38ae55fb0 Add test for writeN fold applied multiple times 2021-10-09 22:50:37 +05:30
Harendra Kumar
bb6856e0fd Add a basic test for concatPairsWith 2021-09-29 22:55:31 +05:30
Ranjeet Kumar Ranjan
c6bc13963f Make sequence concurrent 2021-09-28 09:30:35 +05:30
Harendra Kumar
f6b88dc488 Add a flag for flaky tests 2021-09-14 23:19:54 +05:30
Harendra Kumar
b82985820e Disable rate tests taking too much memory 2021-09-14 23:11:17 +05:30
Harendra Kumar
ea50a6cb50 Add use-large-mem flag
To include tests that require large amounts of RAM
2021-09-14 23:11:17 +05:30
Harendra Kumar
9d7bd5293a Make the test more reliable and add diag info 2021-09-14 23:11:17 +05:30
Harendra Kumar
70e7f94691 Move IsStream definition out of low level modules
The IsStream type class contains MonadAsync type in the consM method.
This refactor allows lifting MonadAsync, therefore, dependency on
monad-control out of the low level modules.
2021-09-14 23:11:17 +05:30
Adithya Kumar
62675bf529 Fix test:Unicode.Char static path for bin/test.sh 2021-09-13 18:48:12 +05:30
Adithya Kumar
705d2cf79f Move test:Unicode.Char into dev build 2021-09-13 18:48:12 +05:30
Harendra Kumar
932f7b26f0 Refactor and reformat readChunksFromToWith 2021-09-09 10:36:21 +05:30
Ranjeet Ranjan
debc6a95d4 Add readChunksFromToWith, read ranges from Handle 2021-09-09 10:36:21 +05:30
Ranjeet Kumar Ranjan
878d734dd7 Implement some undefined functions in Fold module
Implement Some undefined in Internal.Data.Fold module

Add test cases for newly added functions

Add bench marks for newly added Data.Fold functions
2021-09-05 05:39:45 +05:30
Harendra Kumar
d5a8ebe185 Refactor, rename, reorg code, update docs
* Add enumerateFromStepNum as a common function to implement two others
* Rename, Bounded suffix means the API has a Bounded constraint
* Move some functions in relevant sections
* Update some docs
2021-08-24 08:44:48 +05:30
Harendra Kumar
1eed4e1212 Make some formatting, doc changes 2021-08-24 08:44:21 +05:30
Ranjeet Kumar Ranjan
ba9a4e8f6a Change signature of enumerate functions 2021-08-24 08:44:21 +05:30
Adithya Kumar
1af938999b Add tests for retry 2021-08-09 21:21:33 +05:30
adithyaov
08ee39b078 Add unicode normalization test-suite 2021-08-09 19:43:40 +05:30
Adithya Kumar
3017898716 Add tests for Parser.choice 2021-08-09 16:36:48 +05:30
Ranjeet Kumar Ranjan
0b877054f8 Add test cases for newly added functions
Fix formatting

Fix review comments

Change Data.Fold.map to Data.Fold.lmap
2021-08-05 15:05:48 +05:30
Adithya Kumar
00240ed531 Add tests for takeP 2021-08-04 20:58:44 +05:30
Adithya Kumar
65758bab4d Make API in Array.Foreign.Mut monadic in IO 2021-07-30 19:00:38 +05:30
Adithya Kumar
c9232b0e25 Extracted IO related common functions into a new module 2021-07-29 15:35:16 +05:30
Adithya Kumar
9bda2e67b9 Change the API of unsafeWriteIndex and add fromListIO 2021-07-29 15:35:16 +05:30
Harendra Kumar
3339c2082d Add fold and parse for array streams
The test and benchmark code is taken from Adithya's original double
ended lists based implementation.
2021-07-26 18:14:46 +05:30
Harendra Kumar
f5470713c2 Update CI test matrix requirements and the script
Also, fix a few test issues to make the CIs work.
2021-06-22 22:54:41 +05:30
Harendra Kumar
eb50b94bd2 Add ability to pass arguments to doctest
* Also, use --fast by default
* Add documentation for running doctests in the test README
2021-06-11 02:10:52 +05:30
Pranay Sashank
7d9256e283 Rename Parser.yield, yieldM to fromPure, fromEffect. 2021-05-30 22:24:54 +05:30
Pranay Sashank
f24ddc0bdf Rename Unfold.yield, yieldM to fromPure, fromEffect. 2021-05-30 22:24:54 +05:30
Harendra Kumar
79defeb5ec Make minor refactoring changes for fromPure/fromEffect
* Move deprecated functions next to original ones, keep them in the generate
  section itself.
* Rename constructWithYield to constructWithFromPure
* Fix typo
2021-05-29 14:31:44 +05:30
Pranay Sashank
70faf014ca Rename Streamly.Prelude.yieldM to fromEffect.
- Deprecate yieldM.
2021-05-29 02:05:01 +05:30
Pranay Sashank
4dfc6bf9ee Rename Streamly.Prelude.yield to fromPure.
- Deprecate yield.
2021-05-29 01:22:02 +05:30
Harendra Kumar
03cf686ca7 Export some pre-release array APIs
* getIndex
* casting ops
* writeLastN
* readRev
2021-04-27 13:37:56 +05:30
Harendra Kumar
ae1ffbf520 Export forSocketM, rename transformBytesWith 2021-04-24 16:17:39 +05:30
Harendra Kumar
dc647f4a4e Change the argument order of intercalate and interpose 2021-04-24 16:17:39 +05:30
Ranjeet Kumar Ranjan
ac215ad43f Rename serially etc. to fromSerial etc. #1029 2021-04-16 00:20:54 +05:30
Ranjeet Kumar Ranjan
f203fa8c5d Rename fold constructors in Data.Fold #1016 2021-04-12 13:01:24 +05:30
Pranay Sashank
10b03bf59f Fix tests under dev flag. 2021-04-06 17:11:59 +05:30
Adithya Kumar
d3cc553ef9 Add a test case for Mut.unsafeWriteIndex 2021-04-06 02:34:29 +05:30
Adithya Kumar
833ad1f591 Add a basic array slicing combinator 2021-04-05 23:50:38 +05:30
Harendra Kumar
549d7fd492 Add lifting inner monad section
Expose liftInner, runStateT, runReaderT
2021-04-02 21:35:32 +05:30
Adithya Kumar
ac5c311242 Prefix tests with module names
Solves https://github.com/composewell/streamly/issues/858
2021-03-31 19:32:42 +05:30
Adithya Kumar
27ccdf4d94 Move compilation memory restrictions under a flag 2021-03-26 16:40:43 +05:30
Harendra Kumar
0954511144 Refactor/rename/add basic unfold constructors 2021-03-24 21:19:18 +05:30
Harendra Kumar
8af1c368c6 Change signatures of zipWith/zipWithM 2021-03-24 20:38:56 +05:30
Harendra Kumar
c5b2ad3740 Refactor/add cross product APIs 2021-03-24 04:00:21 +05:30
Harendra Kumar
a6e8e23062 Make enumerateFromStepNum numerically stable 2021-03-24 03:59:24 +05:30
Harendra Kumar
a5e483b610 Refactor Unfold module
* Rearrange exports, export additional functions
* Update docs
* Disable applicative/monad/category/arrow instances
* Rename const to yieldM and add yield
* Remove "effect", it can be expressed by yieldM
* Change order of arguments for some functions
2021-03-24 01:40:30 +05:30
Ranjeet Kumar Ranjan
b73b5ffa3a Rename concatUnfold to unfoldMany #986 2021-03-22 19:05:17 +05:30
Ranjeet Kumar Ranjan
7759cc0082 Rename Unfold.concat to Unfold.many #985 2021-03-20 00:40:13 +05:30
Pranay Sashank
7650587baa Implement fold in terms of fold_.
- Add test for fold_.
2021-03-18 13:11:23 +05:30
Harendra Kumar
3b1a26cee5 Update Fold module docs and expose some APIs 2021-03-16 01:46:51 +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
7950a0a967 Add a test case for Fold.many 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
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
eda484641a Add tests for 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