Commit Graph

270 Commits

Author SHA1 Message Date
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
ff35f644c8 Add Num, Floating, Fractional instances for zip types 2017-10-24 05:24:45 +05:30
Harendra Kumar
1b09d512bd update tutorial 2017-10-23 17:14:05 +05:30
Harendra Kumar
93ffb85e3b Update tutorial 2017-10-22 09:22:53 +05:30
Harendra Kumar
f7e771c898 Do not add any dispatch delay in case of <|> 2017-10-22 06:33:26 +05:30
Harendra Kumar
0fec2e9abb Comment out /opt/local/include path inclusion
Causes problems on windows
2017-10-21 03:22:43 +05:30
Harendra Kumar
7e3465d35b Move examples to Asyncly.Examples module 2017-10-21 01:49:14 +05:30
Harendra Kumar
abd2c9131f minor edit 2017-10-20 10:49:15 +05:30
Harendra Kumar
e388e66d75 Update doc (description and readme) 2017-10-20 09:36:00 +05:30
Harendra Kumar
5bc84bdb83 Update the package-test ci script version 2017-10-20 09:34:53 +05:30
Harendra Kumar
67b1fa8dde Add missing file (Prelude.hs) 2017-10-19 04:03:51 +05:30
Harendra Kumar
27602de893 Add examples to cabal file 2017-10-18 11:51:38 +05:30
Harendra Kumar
3d171045de Move APIs conflicting with Prelude to Prelude module 2017-10-18 08:46:18 +05:30
Harendra Kumar
f1d5f2e53a Add a circling square example from the Yampa package 2017-10-18 02:33:21 +05:30
Harendra Kumar
da1639175b Add time related functions 2017-10-18 02:24:15 +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
cef2f7da14 update examples 2017-10-17 02:48:36 +05:30
Harendra Kumar
f69eb647ac Add comment 2017-10-16 09:01:28 +05:30
Harendra Kumar
1f4932d411 Add unfoldr 2017-10-16 08:53:46 +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
ccf58ecabf Add/update comment about async API 2017-10-16 07:55:01 +05:30
Harendra Kumar
0d138d0970 Gracefully deal with context EOF
When using a context asynchronously
2017-10-16 07:36:14 +05:30
Harendra Kumar
bb195c2c64 Add the next API 2017-10-16 04:37:49 +05:30
Harendra Kumar
e75a12d4fa Export the async API 2017-10-14 21:32:37 +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
551f6c3284 Fix build for pre ghc-8.2 compilers 2017-10-14 18:49:06 +05:30
Harendra Kumar
652d466b51 Refactor push-pull fork code 2017-10-14 18:35:24 +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
29d5018fae Break down pullFork in two parts
refactor for the applicative impl
2017-10-13 06:19:26 +05:30
Harendra Kumar
986498fc18 remove redundant context passing 2017-10-13 04:47:05 +05:30
Harendra Kumar
b2ba739bcc Fix parallel binds, pass the context where needed 2017-09-22 10:33:14 +05:30
Harendra Kumar
d1cb4d8695 Fix race condition in a parallel test 2017-09-21 00:12:09 +05:30
Harendra Kumar
e5421a4384 Implement isolation of concurrency policies
Conjunction, disjunction, FIFO and LIFO policies must be isolated from each
other.
2017-09-20 23:53:05 +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
2e10f148b1 rebuild when ghc options change 2017-09-20 16:11:58 +05:30
Harendra Kumar
24fa86feb9 Add tests for nested parallel/serial compositions 2017-09-19 22:33:59 +05:30
Harendra Kumar
55356f646e Simplify state passing
we do not need to pass the state via yield as the state is pretty much local to
a sequence of parallel computations and passing it when running a computation
or embedding it inside the lazy computation (remaining part) is enough.
2017-09-19 16:27:47 +05:30
Harendra Kumar
877b57efb3 Update documentation 2017-09-18 21:43:56 +05:30
Harendra Kumar
5f1a552274 Update doc for monadic bind operations 2017-09-18 21:36:35 +05:30
Harendra Kumar
e560d9140d replace error with fail 2017-09-18 16:07:52 +05:30
Harendra Kumar
5df19ce712 Merge pull request #1 from psibi/fix-test
Fix test for composeAndComposeSimple function
2017-09-16 19:51:54 +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