aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/concurrency/actor.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/control/concurrency/actor.lux')
-rw-r--r--stdlib/source/library/lux/control/concurrency/actor.lux38
1 files changed, 19 insertions, 19 deletions
diff --git a/stdlib/source/library/lux/control/concurrency/actor.lux b/stdlib/source/library/lux/control/concurrency/actor.lux
index 8334f6f41..25fad05eb 100644
--- a/stdlib/source/library/lux/control/concurrency/actor.lux
+++ b/stdlib/source/library/lux/control/concurrency/actor.lux
@@ -3,7 +3,7 @@
[lux "*"
["[0]" debug]
[abstract
- monad]
+ [monad {"+" do}]]
[control
["[0]" pipe]
["[0]" function]
@@ -229,14 +229,14 @@
(def: on_mail^
(Parser (Maybe On_MailC))
(<>.maybe (<code>.form (<>.and (<code>.form (<>.after (<code>.this (' on_mail))
- ($_ <>.and ..argument ..argument ..argument)))
+ (all <>.and ..argument ..argument ..argument)))
<code>.any))))
(def: behavior^
(Parser BehaviorC)
- ($_ <>.and
- ..on_mail^
- (<>.some <code>.any)))
+ (all <>.and
+ ..on_mail^
+ (<>.some <code>.any)))
(def: (on_mail g!_ ?on_mail)
(-> Code (Maybe On_MailC) Code)
@@ -254,10 +254,10 @@
(def: actorP
(Parser [Code [Text (List Text)] Code BehaviorC])
(|export|.parser
- ($_ <>.and
- ..actor_decl^
- <code>.any
- behavior^)))
+ (all <>.and
+ ..actor_decl^
+ <code>.any
+ behavior^)))
(syntax: .public (actor: [[export_policy [name vars] state_type [?on_mail messages]] ..actorP])
(with_symbols [g!_]
@@ -296,12 +296,12 @@
(def: signature^
(Parser Signature)
- (<code>.form ($_ <>.and
- (<>.else (list) (<code>.tuple (<>.some <code>.local)))
- <code>.local
- |input|.parser
- <code>.local
- <code>.local)))
+ (<code>.form (all <>.and
+ (<>.else (list) (<code>.tuple (<>.some <code>.local)))
+ <code>.local
+ |input|.parser
+ <code>.local
+ <code>.local)))
(def: reference^
(Parser [Symbol (List Text)])
@@ -311,10 +311,10 @@
(def: messageP
(Parser [Code Signature Code Code])
(|export|.parser
- ($_ <>.and
- ..signature^
- <code>.any
- <code>.any)))
+ (all <>.and
+ ..signature^
+ <code>.any
+ <code>.any)))
(syntax: .public (message: [[export_policy signature output_type body] ..messageP])
(with_symbols [g!_ g!return]