Commit Graph

409 Commits

Author SHA1 Message Date
Michael Walker
e9b417684a Improve nubbyness 2015-11-12 14:52:58 +00:00
Michael Walker
6c60343432 Add nubby variants of alwaysTrue, alwaysTrue2, and somewhereTrue 2015-11-12 14:15:47 +00:00
Michael Walker
5ded895254 Rename CVar operations for consistency with CRefs 2015-11-11 14:57:12 +00:00
Michael Walker
fc293b7436 Handle removing the todo point in 'grow', not 'next' 2015-11-10 17:07:50 +00:00
Michael Walker
3321038070 Helper functions for exceptions 2015-11-08 22:04:07 +00:00
Michael Walker
30f15b4df8 Add helper functions around dealing with CVars 2015-11-07 20:28:45 +00:00
Michael Walker
e7c6bf6737 Factor out implementation of stepCommit 2015-11-07 19:41:06 +00:00
Michael Walker
06a63dcc33 Merge Conc and ConcIO implementations 2015-11-07 18:07:10 +00:00
Michael Walker
5f78dc5b99 Remove the 't' type parameter from STMIO and ConcIO 2015-11-07 17:19:40 +00:00
Michael Walker
0f72df77c4 Define Conc and ConcIO with STMST and STMIO, not STMLike 2015-11-07 17:13:38 +00:00
Michael Walker
1b9ca8bfb7 Simplify implementation of Conc and ConcIO 2015-11-05 23:36:30 +00:00
Michael Walker
e1b0e29baf Rename CVar primitives for clarity. 2015-11-05 23:09:01 +00:00
Michael Walker
eb5add3d41 Simplify creation of CVars and CRefs 2015-11-05 23:01:13 +00:00
Michael Walker
27c3741371 Simplify implementation of STM 2015-11-05 22:28:46 +00:00
Michael Walker
67bcf996a8 Add default definitions of fork and forkOn 2015-11-05 16:09:13 +00:00
Michael Walker
aa0202a5af Add failing bound thread signifiers. Closes #22. 2015-11-03 19:53:48 +00:00
Michael Walker
772aba80d0 Make TSO the default memory model. Closes #24. 2015-11-03 19:53:47 +00:00
Michael Walker
5c80220309 Fix for GHC <7.10 2015-11-03 19:53:45 +00:00
Michael Walker
a16a25c631 Fix willBlock, extend lookahead of willBlockSafely 2015-11-03 19:15:07 +00:00
Michael Walker
4572eba19e Improve async docs. Closes #19. 2015-11-03 00:21:47 +00:00
Michael Walker
6321e42265 Enable withasync_wait2 test 2015-11-03 00:21:33 +00:00
Michael Walker
7b511cdbc7 Handle yields properly in pbInitialise 2015-11-03 00:00:29 +00:00
Michael Walker
ea926ba407 Add a forkOnWithUnmask operation to MonadConc 2015-11-02 22:43:22 +00:00
Michael Walker
0b5a0f0235 Enable async_cancel test in async-dejafu 2015-11-01 15:46:30 +00:00
Michael Walker
88d33e88ef Fix a alwaysTrue2 missing out a failure 2015-11-01 15:46:30 +00:00
Michael Walker
11bb722532 Allow pre-empting returns (and fix an exception bug). Closes #17. 2015-11-01 15:46:06 +00:00
Michael Walker
2e3e6fb375 Add a custom Cont monad for Conc/ConcIO 2015-11-01 15:08:46 +00:00
Michael Walker
14617c9b61 Add READMEs for {hunit,tasty}-dejafu. Closes #18. 2015-11-01 14:46:03 +00:00
Michael Walker
3ad9fac8e9 Fix dejafu testsuite 2015-10-27 17:59:00 +00:00
Michael Walker
4c5bb7fd7b Allow attaching a failure message to results 2015-10-27 17:55:12 +00:00
Michael Walker
4e5e52f92a Move 'gives' into Test.DejaFu 2015-10-27 15:18:12 +00:00
Michael Walker
275bd30a44 FIx dejafu test suite for new PF bounding 2015-10-27 15:11:05 +00:00
Michael Walker
ec0d1e8fcc Don't export type-specified functions for Conc and ConcIO 2015-10-26 23:22:48 +00:00
Michael Walker
b9f94d6cfa Merge branch 'pb-fb'. Closes #21. 2015-10-26 23:12:28 +00:00
Michael Walker
3d1d287787 Use PF bounding in {hunit,tasty}-dejafu 2015-10-26 23:11:30 +00:00
Michael Walker
eb183fd461 Change the default scheduler in dejafu to PB/Fair 2015-10-26 23:11:29 +00:00
Michael Walker
e8b16063a2 Implement fair bounding and pre-emption / fair bounding 2015-10-26 23:11:26 +00:00
Michael Walker
87fd1fde8f Merge branch 'yield'. Closes #16. 2015-10-26 21:11:46 +00:00
Michael Walker
b0c9e090ea Use 'yield' in the Alternative instance for Concurrently 2015-10-26 21:04:12 +00:00
Michael Walker
e2e04851e0 Consider yields in SCT 2015-10-26 20:41:24 +00:00
Michael Walker
cf08c9d53e Implement 'yield' in Deterministic 2015-10-26 19:54:14 +00:00
Michael Walker
bc6ac08c69 Add a 'yield' operation to MonadConc 2015-10-26 19:49:37 +00:00
Michael Walker
ac6b5c5240 Widen 'base' bounds for async-dejafu 2015-10-25 23:04:12 +00:00
Michael Walker
fd35e9c1b4 Add async-dejafu tests 2015-10-25 22:53:54 +00:00
Michael Walker
447013c68d Remove some extra wrapping with SomeException causing fromException to fail in dejafu 2015-10-25 22:28:16 +00:00
Michael Walker
53e738b066 Remove some needless Eq constraints 2015-10-25 17:05:40 +00:00
Michael Walker
59102efd59 Initial version of async-dejafu 2015-10-25 16:17:41 +00:00
Michael Walker
019d4995a3 Add source-repository head sections to {tasty,hunit}-dejafu cabal files 2015-10-25 13:40:23 +00:00
Michael Walker
7d2ec26a58 Minor hlint fixes 2015-10-23 13:17:04 +01:00
Michael Walker
eeacd85fb3 Fix some warnings 2015-10-15 08:53:22 +01:00