repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove tcp busy loop
[mTask.git]
/
mTaskInterpret.dcl
diff --git
a/mTaskInterpret.dcl
b/mTaskInterpret.dcl
index
0105944
..
221c8a4
100644
(file)
--- a/
mTaskInterpret.dcl
+++ b/
mTaskInterpret.dcl
@@
-6,14
+6,18
@@
from Data.Monoid import class Semigroup, class Monoid
import mTask
:: MTaskMSGRecv
import mTask
:: MTaskMSGRecv
- = MTPub Int String
+ = MTTaskAck Int
+ | MTTaskDelAck Int
+ | MTSDSAck Int
+ | MTSDSDelAck Int
+ | MTPub Int String
| MTMessage String
| MTMessage String
- | MTTaskAdded Int
| MTEmpty
:: MTaskMSGSend
| MTEmpty
:: MTaskMSGSend
- = MTSds Int String
- | MTTask Int String
+ = MTTask Int String
+ | MTTaskDel Int
+ | MTSds Int String
| MTUpd Int String
instance toString MTaskMSGRecv
| MTUpd Int String
instance toString MTaskMSGRecv
@@
-111,4
+115,4
@@
toSDSUpdate :: Int Int -> [MTaskMSGSend]
toByteVal :: BC -> [Char]
toReadableByteCode :: (ByteCode a b) -> (String, BCState)
toByteVal :: BC -> [Char]
toReadableByteCode :: (ByteCode a b) -> (String, BCState)
-toRealByteCode :: (ByteCode a b) -> (String, BCState)
+toRealByteCode :: (ByteCode a b)
BCState
-> (String, BCState)