Commit Graph

87 Commits

Author SHA1 Message Date
Hussein Ait Lahcen
42bde27d2b
fix: Zip/AsyncZip applicative instances
refact: type consistency

refact: introduce srepeat
2018-03-22 18:59:14 +01:00
Harendra Kumar
92e8f2bc3f Simplify and format some tests 2018-03-17 02:37:06 +05:30
Veladus
4c6279ca88 Added test for Prelude.tail 2018-03-17 02:14:42 +05:30
Veladus
f7b9841f4f Added tests from Prelude.reverse and Prelude.null 2018-03-17 02:14:42 +05:30
Harendra Kumar
29bc664825 Add replicateM operation 2018-03-16 03:55:09 +05:30
Abhiroop Sarkar
2248ae7d6b Add "scan" for left scans 2018-03-11 17:36:31 +05:30
Harendra Kumar
70a56d13e4 Add more tests for Prelude operations 2018-03-11 02:36:25 +05:30
Harendra Kumar
8e4a60c472 Added test cases for "last" operation 2018-03-11 02:13:55 +05:30
Harendra Kumar
84dc45c139 More test scenarios for stream operations 2018-03-11 01:57:19 +05:30
Harendra Kumar
c0f0b54f37 Add test for foldl 2018-03-10 17:21:09 +05:30
Harendra Kumar
3cca5971e0 optimize dropWhile and add tests 2018-03-09 14:28:58 +05:30
Harendra Kumar
25b3a3e163 Add filter tests 2018-03-09 14:04:40 +05:30
Harendra Kumar
119e07a179 Fix failing test
In parallel tests we should compare sorted results to take care of out of order
results.
2018-02-13 04:01:34 +05:30
Harendra Kumar
42df6099e2 Fix warning 2017-12-22 05:00:21 +05:30
Harendra Kumar
20d8d7c7b2 Comment out failing test 2017-12-22 04:30:33 +05:30
Harendra Kumar
21d779cd92 Comment out incorrect test 2017-11-20 22:14:39 +05:30
Harendra Kumar
a74a0c0844 Rename to Streamly
Streamly is a more appropriate name and conveys the core idea. Stream
concurrently = streamly.
2017-11-20 18:03:13 +05:30
Harendra Kumar
38b5d7ef08 fix test 2017-10-31 16:10:48 +05:30
Harendra Kumar
5fe54c6ca9 Fix zip tests
Parallel generation of streams can have unpredictable order. So use serial
instead.
2017-10-26 13:14:27 +05:30
Harendra Kumar
023a60c23e Split module Prelude into Streams and Prelude 2017-10-26 09:28:34 +05:30
Harendra Kumar
c9a821b9af Add type specific Num instances instead of deriving from base
deriving from base is incorrect since the monad/applicative instances of each
type are different.

Also add test cases for applicative/num instances of each type.
2017-10-25 15:35:57 +05:30
Harendra Kumar
a7b20ad4dc Simlify streaming type class
Use polymorphic functions instead of bunching up all streaming functions in the
type class.
2017-10-25 14:00:22 +05:30
Harendra Kumar
29f64fe8d1 Separate types for different styles of product composition 2017-10-25 08:01:29 +05:30
Harendra Kumar
3d171045de Move APIs conflicting with Prelude to Prelude module 2017-10-18 08:46:18 +05:30
Harendra Kumar
fefc00cf12 Comment out failing tests
Still not fixed with the previous change
2017-10-18 02:23:25 +05:30
Harendra Kumar
71b4134867 Do not use a blocking wait when dispatching workers 2017-10-17 07:36:55 +05:30
Harendra Kumar
50e16043f8 Comment out two failing tests 2017-10-14 20:28:55 +05:30
Harendra Kumar
1aa909b949 Add concurrent zipping API 2017-10-14 20:22:50 +05:30
Harendra Kumar
9ac16aa14c Add serial zipping APIs
zipWith, zipWithM and ZipSerial Applicative
2017-10-14 08:32:13 +05:30
Harendra Kumar
e246532213 Add more interleaved tests and mplus tests 2017-10-14 02:53:04 +05:30
Harendra Kumar
c0d2b00e1b Add tests for functor/applicative/bind with empty/monoid 2017-10-14 02:24:44 +05:30
Harendra Kumar
d1cb4d8695 Fix race condition in a parallel test 2017-09-21 00:12:09 +05:30
Harendra Kumar
5d5eabf58d Fix a race condition in a parallel test 2017-09-20 23:50:40 +05:30
Harendra Kumar
5919be5b36 Fix append and interleave nested inside parallel 2017-09-20 21:55:01 +05:30
Harendra Kumar
24fa86feb9 Add tests for nested parallel/serial compositions 2017-09-19 22:33:59 +05:30
Sibi Prabakaran
28b206e306
Fix test for composeAndComposeSimple function
Not the best way to fix test code and also involves the usage of
partial function, but I guess that's fine for test code.
2017-09-15 23:36:39 +05:30
Harendra Kumar
b477693f84 Add more tests for monoidal compositions 2017-09-14 21:17:34 +05:30
Harendra Kumar
e7e42cb154 Add parallel and interleaved bind operations 2017-09-08 21:29:02 +05:30
Harendra Kumar
154a610eb2 Fix build for ghc-7.10.3 2017-09-05 13:34:39 +05:30
Harendra Kumar
4756d82308 Add back the parallel interleaving test 2017-09-05 10:58:00 +05:30
Harendra Kumar
e2b1e4c45d Fix worker dispatch 2017-09-05 10:50:20 +05:30
Harendra Kumar
ed5f00d575 cleanup tests 2017-09-04 17:20:10 +05:30
Harendra Kumar
09a717ced9 Add take and drop operations 2017-09-04 06:05:34 +05:30
Harendra Kumar
1f645071b5 rearrange tests 2017-09-03 16:18:00 +05:30
Harendra Kumar
e43f6e46ab disable parallel interleave test
It does not work reliably
2017-09-01 19:12:50 +05:30
Harendra Kumar
c99b575051 Fix type signatures in tests 2017-08-31 02:09:53 +05:30
Harendra Kumar
a923ae8e72 reorganize tests and reuse the same tests for all ops 2017-08-30 14:58:51 +05:30
Harendra Kumar
c81684d415 Add left biased combinator and some utilities
Remove 'for' and 'each'
2017-08-29 10:44:03 +05:30
Harendra Kumar
5f1dc97a9a Add interleaved composition 2017-08-29 07:55:26 +05:30
Harendra Kumar
d4363a8ad7 Add loop tests 2017-08-28 02:09:08 +05:30