aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/type/resource.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-09-05 22:52:26 -0400
committerEduardo Julian2021-09-05 22:52:26 -0400
commit132ffdae1add622c8a3c6065d7730a8fe8ea5e78 (patch)
tree540310f190007d192b892db2d0a520d17b73ad48 /stdlib/source/library/lux/type/resource.lux
parent09e2747bf8c6dcdc1d7318f2490f0de37d77b39f (diff)
Changed the syntax of do/be's (co)monad bindings.
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/type/resource.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/library/lux/type/resource.lux b/stdlib/source/library/lux/type/resource.lux
index 27eb7ce86..ba56544aa 100644
--- a/stdlib/source/library/lux/type/resource.lux
+++ b/stdlib/source/library/lux/type/resource.lux
@@ -114,7 +114,7 @@
(def: indices
(Parser (List Nat))
(<code>.tuple (loop [seen (set.empty n.hash)]
- (do {! <>.monad}
+ (do [! <>.monad]
[done? <code>.end?]
(if done?
(in (list))
@@ -137,7 +137,7 @@
(in (list (` (~! no_op))))
(#.Item head tail)
- (do {! meta.monad}
+ (do [! meta.monad]
[.let [max_idx (list\mix n.max head tail)]
g!inputs (<| (monad.all !) (list.repeated (++ max_idx)) (macro.identifier "input"))
.let [g!outputs (|> (monad.mix maybe.monad
@@ -171,7 +171,7 @@
(template [<name> <from> <to>]
[(syntax: .public (<name> [amount ..amount])
(macro.with_identifiers [g!_ g!context g!!]
- (do {! meta.monad}
+ (do [! meta.monad]
[g!keys (|> (macro.identifier "keys")
(list.repeated amount)
(monad.all !))]