Commit Graph

328 Commits

Author SHA1 Message Date
Harendra Kumar
59c0bac57b Change foldl to foldr in "each" 2017-07-19 08:16:02 +05:30
Harendra Kumar
5457bbd10f Add asyncly to benchmarks 2017-07-19 08:10:56 +05:30
Harendra Kumar
b1068152b7 Add benchmarks including transient 2017-07-17 21:28:04 +05:30
Harendra Kumar
d64225fe30 Reorganize code top to bottom in dependency order
for AsyncT.hs
2017-07-16 17:49:07 +05:30
Harendra Kumar
1be7567d2b Remove redundant unsafeCoerce 2017-07-15 13:20:34 +05:30
Harendra Kumar
1d8d3878cc Minor doc fix 2017-07-15 12:38:25 +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
Harendra Kumar
e5da40c94c Add some doc updates 2017-07-14 11:07:12 +05:30
Harendra Kumar
2756fbd691 Add monad-recorder github repo to stack.yaml 2017-07-13 18:58:01 +05:30
Harendra Kumar
8340241116 Split the logging functionality into a separate package 2017-07-13 18:21:26 +05:30
Harendra Kumar
795dd4b905 Some code reorg 2017-07-08 15:44:17 +05:30
Harendra Kumar
c60d15c39a Add "afterFirst" run an action after first event 2017-07-08 15:39:38 +05:30
Harendra Kumar
922c9ed018 Fix, cleanup and test discarding compositions 2017-07-08 14:09:43 +05:30
Harendra Kumar
f5cfead136 Alternative now forks automatically
Alternative "can" fork an action
`async` primitive is used to force an action to be async
2017-07-08 07:31:49 +05:30
Harendra Kumar
6c12266b1f Add more tests 2017-07-03 08:08:22 +05:30
Harendra Kumar
1e4950dac0 Simplify continuation saving and retrieval
Reduce untyped fields in the context
Merge Context.hs to AsyncT.hs
2017-07-03 05:16:26 +05:30
Harendra Kumar
4a176487ea Add makeAsync to convert callbacks into AsyncT actions 2017-07-01 04:24:14 +05:30
Harendra Kumar
f4237bfab3 rename to asyncly 2017-07-01 02:02:39 +05:30
Harendra Kumar
0e80adf13f Add test suite 2017-07-01 01:37:25 +05:30
Harendra Kumar
fe02431534 Keep just one basic async primitive, remove the rest 2017-07-01 01:35:49 +05:30
Harendra Kumar
120d0ed5f0 Add API to gather results of multiple computations 2017-06-29 05:40:29 +05:30
Harendra Kumar
afbd289a89 More complicated logging tests 2017-06-29 05:21:50 +05:30
Harendra Kumar
760a298598 rename APIs 2017-06-29 05:21:11 +05:30
Harendra Kumar
f455a06d0a Make logs work with regular wait/gather APIs too 2017-06-29 03:59:27 +05:30
Harendra Kumar
a9d6c29ba7 implement log replay 2017-06-29 03:32:48 +05:30
Harendra Kumar
746f3b2a23 Remove redundant Typeable constraint 2017-06-28 21:44:02 +05:30
Harendra Kumar
bf5a11889e Add logging APIs 2017-06-28 21:40:09 +05:30
Harendra Kumar
3a988778f6 Remove redundant stuff from Log.hs 2017-06-26 18:27:12 +05:30
Harendra Kumar
b2f67d3482 Put Log.hs in order 2017-06-26 18:03:01 +05:30
Harendra Kumar
6afc667110 Add comments 2017-06-26 15:30:48 +05:30
Harendra Kumar
1b31d0baf1 Move an unsafeCoerce to a better place 2017-06-26 15:24:26 +05:30
Harendra Kumar
3251739569 Remove parentChannel from context 2017-06-26 15:18:38 +05:30
Harendra Kumar
e41e3151ae Simplify result passing, direct to the IORef 2017-06-26 15:02:44 +05:30
Harendra Kumar
467a301542 Move the user state related stuff out of Context.hs 2017-06-26 03:27:58 +05:30
Harendra Kumar
594185f18d Add applicative and alternative tests 2017-06-26 03:15:27 +05:30
Harendra Kumar
b9c1c92dc0 Add the wait primitive to discard the results 2017-06-26 03:14:36 +05:30
Harendra Kumar
d4f2fec43f Rename the monad runner to 'gather' 2017-06-26 02:21:53 +05:30
Harendra Kumar
9915f732f1 fix dev documentation 2017-06-26 00:58:01 +05:30
Harendra Kumar
3103c1c82e rename resumeContext to composeContext 2017-06-26 00:15:03 +05:30
Harendra Kumar
76cd2cc2e0 Minor refactor 2017-06-25 23:34:17 +05:30
Harendra Kumar
ef686400b4 Reorganize modules 2017-06-25 23:25:38 +05:30
Harendra Kumar
608d3efcfa Reorganize modules 2017-06-25 21:45:32 +05:30
Harendra Kumar
8a0fdb3abd Refactor/fix returning results from child threads 2017-06-25 21:23:14 +05:30
Harendra Kumar
f49eccb296 Fix context propagation in case of loopContextWith 2017-06-25 04:42:37 +05:30
Harendra Kumar
3d530e0fe3 Rename the package to "strands" 2017-06-24 17:43:59 +05:30
Harendra Kumar
5cde66cde5 Make sure the results are passed on to parents in all cases
In both async and sync invocation of an action.
2017-06-24 17:26:40 +05:30
Harendra Kumar
82e0996582 cleanup/refactor mailbox related functionality 2017-06-22 19:03:50 +05:30
Harendra Kumar
5522fb0979 Use MonadPlus instead of Alternative 2017-06-22 17:58:56 +05:30
Harendra Kumar
38b148f7c5 Do not use IORef for results 2017-06-22 17:44:33 +05:30