Commit Graph

481 Commits

Author SHA1 Message Date
Harendra Kumar
0810ad78e6 remove the numeric instances 2018-04-22 23:23:23 +05:30
Harendra Kumar
e411ab6abd Remove MonadError instance temporarily
It is not working correctly for parallel compositions.
2018-04-22 22:57:31 +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
77ae4c843e move functor instances to the common type 2018-04-22 00:07:16 +05:30
Harendra Kumar
e1325ad8b1
Merge pull request #65 from composewell/stream-type
Include singleton as a continuation in stream type
2018-04-22 00:06:42 +05:30
Harendra Kumar
66efe3320b Include singleton as a continuation in stream type 2018-04-21 19:34:50 +05:30
Harendra Kumar
ac7a4ab7cf
Merge pull request #62 from composewell/renaming
Rename stream types for better consistent naming
2018-04-18 20:47:26 +05:30
Harendra Kumar
071a90a00c rename some zip operations and MonadAsync type 2018-04-18 20:14:29 +05:30
Harendra Kumar
acd550c731 rename InterleavedT=>CoserialT, AParallelT=>CoparallelT 2018-04-18 17:32:25 +05:30
Harendra Kumar
3f638d9b6d rename interleave=>coserial, aparallel=>coparallel 2018-04-18 16:55:16 +05:30
Harendra Kumar
0631b9d2a5
Merge pull request #61 from composewell/type-combinators
Fix the default stream type to SerialT
2018-04-18 16:54:37 +05:30
Harendra Kumar
7e4fde1780 Fix benchmarks 2018-04-18 15:26:15 +05:30
Harendra Kumar
3bb7ff10c5 Use only runStream to run streams with optional combinators 2018-04-18 15:26:15 +05:30
Harendra Kumar
793f2b8749 Remove redundant constraints 2018-04-18 15:26:15 +05:30
Harendra Kumar
c463d1634c Change elimination ops to use monomoprhic SerialT 2018-04-18 15:26:15 +05:30
Harendra Kumar
38d21d5193 Fix the default stream type to SerialT 2018-04-18 15:26:15 +05:30
Harendra Kumar
7a4b3fc797
Merge pull request #60 from composewell/typeclasses
Change the semantics of <> and <|>.
2018-04-18 15:22:45 +05:30
Harendra Kumar
aaed32083b Add transformers dep for examples for ghc < 8.0 2018-04-17 19:04:31 +05:30
Harendra Kumar
edfe36ef17 Fix tests for AsyncT to AParallelT change 2018-04-17 18:22:21 +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
bcc18c08c5 fix the Monoid instance of AsyncT and ParallelT 2018-04-17 16:17:27 +05:30
Harendra Kumar
dffb02fa98 Fix examples to use new names 2018-04-17 15:45:24 +05:30
Harendra Kumar
583a48c490 use new names for deprecated functions 2018-04-17 10:07:52 +05:30
Harendra Kumar
69a9ae1f17 Change the semantics of <> and <|>.
See the changelog for more details.
2018-04-16 23:16:26 +05:30
Harendra Kumar
fbb187d27e
Merge pull request #59 from composewell/each
rename each to fromFoldable
2018-04-15 22:16:52 +05:30
Harendra Kumar
6e32a15788 rename each to fromFoldable
fixes #14
2018-04-15 21:10:16 +05:30
Harendra Kumar
552b58577f
Merge pull request #58 from composewell/folds
rename fold functions to make them consistent with base/Foldable
2018-04-15 20:51:11 +05:30
Harendra Kumar
5c2833d9fa add note about "since" notations for APIs 2018-04-15 19:56:49 +05:30
Harendra Kumar
5a01635af9 Fix to pick the correct HEAD commit 2018-04-15 19:46:04 +05:30
Harendra Kumar
a34b1f31ad rename fold functions to make them consistent with base/Foldable 2018-04-15 19:39:43 +05:30
Harendra Kumar
9dfce42e75
Merge pull request #57 from composewell/is-stream
rename Streaming to IsStream and runStreaming to runStream
2018-04-15 17:54:43 +05:30
Harendra Kumar
408fef1c73 rename Streaming to IsStream and runStreaming to runStream
fixes #52
2018-04-15 15:08:11 +05:30
Harendra Kumar
4d99edefd9 update changelog for StreamT/ZipStream deprecations 2018-04-15 15:05:59 +05:30
Harendra Kumar
7a9791b410 rename ZipStream to ZipSerial 2018-04-15 15:05:59 +05:30
Harendra Kumar
66045e65a1 deprecate SerialT and runSerialT
fixes #22
2018-04-15 15:05:59 +05:30
Harendra Kumar
5c5b2b3ed8 rename all references to StreamT to SerialT 2018-04-15 15:05:59 +05:30
Harendra Kumar
5fd6f35789 rename StreamT to SerialT 2018-04-15 15:05:59 +05:30
Harendra Kumar
6c5da1c500 add singleton stream case 2018-04-15 12:39:47 +05:30
Harendra Kumar
0b51df3848 use both types of stream endings 2018-04-15 12:39:47 +05:30
Harendra Kumar
203fce4cc6 use multiset equality for async streams 2018-04-15 12:39:47 +05:30
Harendra Kumar
9ba73a8aea Add missing tests 2018-04-15 12:39:47 +05:30
Harendra Kumar
663ecb9e27 fix build for ghc 8.4 2018-04-15 12:39:47 +05:30
Harendra Kumar
ac3b3df16e remove tests duplicated by unit-tests and prop tests 2018-04-15 12:39:47 +05:30
Harendra Kumar
7d1e6aa163 arrange property tests in groups 2018-04-15 12:39:47 +05:30
Harendra Kumar
722efd60fb Add quickcheck based property tests
fixes #30
2018-04-15 12:39:47 +05:30
Harendra Kumar
32049bdd73 Add benchmark comparison script 2018-04-10 19:40:46 +05:30
Harendra Kumar
9c35804edc ignore and continue when graph generation fails 2018-04-10 16:16:59 +05:30
Harendra Kumar
7aae14a59f fix stack.yaml 2018-04-10 15:53:44 +05:30
Harendra Kumar
00dcf03976 update bench-graph commit 2018-04-10 15:48:57 +05:30
Harendra Kumar
62ba37b724 Use bench-graph to generate perf comparison charts 2018-04-10 13:43:33 +05:30