Commit Graph

37 Commits

Author SHA1 Message Date
Harendra Kumar
30a6e32fee Fix Monoid and other instances
Monoid instances should not be derived from underlying type where we want them
to be type specific. Added tests to make sure they are correct.

Other typeclass instances that are dependent on type specific behavior should
also be independently defined rather than derived.

Removed Alternative instances as they are not correct yet.

Removed redundancy by using CPP macros to define instances of different types.
2018-04-22 15:59:09 +05:30
Harendra Kumar
3f638d9b6d rename interleave=>coserial, aparallel=>coparallel 2018-04-18 16:55:16 +05:30
Harendra Kumar
3bb7ff10c5 Use only runStream to run streams with optional combinators 2018-04-18 15:26:15 +05:30
Harendra Kumar
3d920ef3f8 rename AsyncT to AParallelT
Also rename asyncly to aparallely and runAsyncT to runAParallelT

The name Async is confusing and does not convey the right meaning. The 'A' in
AParallelT stands for 'Adaptive' and 'Parallel' indicates that this is a
variant of Parallel.

Another choice for the name was 'MParallelT' where 'M' stands for 'maybe', it
is maybe parallel since it may or may not start parallel threads depending on
demand but Adaptive fits better as it adapts to the demand.
2018-04-17 18:03:27 +05:30
Harendra Kumar
dffb02fa98 Fix examples to use new names 2018-04-17 15:45:24 +05:30
Harendra Kumar
5c5b2b3ed8 rename all references to StreamT to SerialT 2018-04-15 15:05:59 +05:30
Harendra Kumar
49a5ba4fa6 Remove redundant examples 2017-12-03 00:48:24 +05:30
Harendra Kumar
20cc04bb23 Add note about the canonical examples 2017-11-21 02:50:15 +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
2d3ccadb5d fix example 2017-10-30 07:50:08 +05:30
Harendra Kumar
10b05b545e Fix examples 2017-10-26 13:06:47 +05:30
Harendra Kumar
7e3465d35b Move examples to Asyncly.Examples module 2017-10-21 01:49:14 +05:30
Harendra Kumar
27602de893 Add examples to cabal file 2017-10-18 11:51:38 +05:30
Harendra Kumar
f1d5f2e53a Add a circling square example from the Yampa package 2017-10-18 02:33:21 +05:30
Harendra Kumar
cef2f7da14 update examples 2017-10-17 02:48:36 +05:30
Harendra Kumar
49d4c157bd rename next to uncons 2017-10-16 08:28:37 +05:30
Harendra Kumar
6c061c4628 Add mergesort example 2017-10-16 07:55:48 +05:30
Harendra Kumar
e560d9140d replace error with fail 2017-09-18 16:07:52 +05:30
Harendra Kumar
65ca7691c0 Fix loop example 2017-09-14 19:15:23 +05:30
Harendra Kumar
0bde21205a Use cycle1 2017-09-11 18:07:20 +05:30
Harendra Kumar
0acab07162 Add the fastest search engine example 2017-09-07 21:04:06 +05:30
Harendra Kumar
deec84bbee Add a reactive game example 2017-09-06 08:53:20 +05:30
Harendra Kumar
76eaffddfb update listdir example 2017-08-31 06:32:31 +05:30
Harendra Kumar
036437ce91 implement fair interleaving of parallel tasks 2017-08-30 14:58:28 +05:30
Harendra Kumar
07c13575d0 rename operators 2017-08-29 11:31:19 +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
4e26aa558b Remove stale code, rename the type to AsyncT 2017-08-28 08:05:49 +05:30
Harendra Kumar
9c720e0eef remove trailing empty from parallel-loops example 2017-08-28 07:33:47 +05:30
Harendra Kumar
3e1239048e minor fix to alternative example 2017-08-28 06:51:37 +05:30
Harendra Kumar
a61b30ba71 Fix, delete, move examples 2017-08-24 03:45:29 +05:30
Harendra Kumar
02a745f8e9 update examples README 2017-08-24 03:08:06 +05:30
Harendra Kumar
7beefcec67 Fix examples 2017-08-24 03:07:14 +05:30
Harendra Kumar
b68840b6e6 Add some more examples 2017-08-24 02:22:49 +05:30
Harendra Kumar
5349a44ef3 update some examples 2017-08-24 02:16:02 +05:30
Harendra Kumar
d848fdc0da Add readme for running examples 2017-07-14 11:12:15 +05:30
Harendra Kumar
b347f8feb6 Add examples 2017-07-14 11:09:21 +05:30