Commit Graph

54 Commits

Author SHA1 Message Date
Harendra Kumar
165f2a23aa Add control-flow monad transformers' examples 2018-10-26 20:01:28 +05:30
Harendra Kumar
354f7615fa lint free examples 2018-10-13 13:15:22 +05:30
Harendra Kumar
0ef728a55f remove the Quit constructor 2018-10-10 12:39:27 +05:30
Harendra Kumar
482b971ebb make custom rate combinators functions
instead of constructors
2018-08-25 04:51:00 +05:30
Harendra Kumar
aa8345d0d4 Add avg/min/max/const/rate specifications for rate 2018-08-23 06:58:03 +05:30
Harendra Kumar
9c85811905 rename "once" to "yieldM"
and some other related refactoring changes.
2018-06-23 06:50:59 +05:30
Harendra Kumar
328365e5e4 update documentation 2018-06-15 00:44:15 +05:30
Harendra Kumar
54419aa5c3 remove redundant liftIO 2018-05-29 12:51:38 +05:30
Harendra Kumar
21758e09a3 use aheadly in the Listdir example 2018-05-21 06:02:46 +05:30
Harendra Kumar
56cb8e6981 Fix nomenclature in examples 2018-05-13 10:48:18 +05:30
Harendra Kumar
091f4b69fe Add the strictly parallel stream type ParallelT 2018-05-08 07:49:43 +05:30
Harendra Kumar
b214a85407 remove redundant re-exports 2018-05-04 02:04:15 +05:30
Harendra Kumar
c5f97f0e3b Move examples from Streamly module to examples dir 2018-05-04 01:28:02 +05:30
Harendra Kumar
f3dbbde613 move example files 2018-05-04 01:28:02 +05:30
Harendra Kumar
7febfe948d Add consM, once and |:, fixes #51 2018-05-02 15:39:38 +05:30
Harendra Kumar
12b970cdd6 Add stream types specialized to IO monad 2018-04-25 11:31:12 +05:30
Harendra Kumar
a526207acd rename the default stream type to StreamT
This was earlier changed from StreamT to SerialT. However we have made this the
default type now and it makes more sense to call it StreamT now. A bigger
motivation for the change is that StreamT immediately conveys that it is a
stream which is helpful and intuitive for new learners. Also we have a plan to
have a specialized type called "Stream a = StreamT IO a", so the name StreamT
is in line with that common default type "Stream a". Calling that type as
"Serial a" does not sound as intuitive as calling it "Stream a".
2018-04-25 11:31:12 +05:30
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