aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/format.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-08-12 03:12:42 -0400
committerEduardo Julian2021-08-12 03:12:42 -0400
commit17629d66062b88b040a2397032f6c08361a5f3a7 (patch)
treebdc6110750b895667b9e45da5e46bec9609f9a7c /stdlib/source/program/aedifex/format.lux
parenta62ce3f9c2b605e0033f4772b0f64c4525de4d86 (diff)
Improved binding syntax for "syntax:".
Diffstat (limited to 'stdlib/source/program/aedifex/format.lux')
-rw-r--r--stdlib/source/program/aedifex/format.lux12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/source/program/aedifex/format.lux b/stdlib/source/program/aedifex/format.lux
index c0c9db2d1..82b15f84d 100644
--- a/stdlib/source/program/aedifex/format.lux
+++ b/stdlib/source/program/aedifex/format.lux
@@ -75,7 +75,7 @@
aggregate
(#.Some value)
- (dictionary.put field (format value) aggregate)))
+ (dictionary.has field (format value) aggregate)))
(def: (on_list field value format aggregate)
(All [a]
@@ -85,7 +85,7 @@
aggregate
value
- (dictionary.put field (` [(~+ (list\map format value))]) aggregate)))
+ (dictionary.has field (` [(~+ (list\map format value))]) aggregate)))
(def: (on_set field value format aggregate)
(All [a]
@@ -97,7 +97,7 @@
(-> Text (Dictionary k v) (Format k) (Format v) Aggregate Aggregate))
(if (dictionary.empty? value)
aggregate
- (dictionary.put field
+ (dictionary.has field
(|> value
dictionary.entries
(list\map (function (_ [key value])
@@ -147,14 +147,14 @@
(..on_maybe "info" (get@ #/.info value) ..info)
(..on_set "repositories" (get@ #/.repositories value) code.text)
(..on_set "dependencies" (get@ #/.dependencies value) ..dependency)
- (dictionary.put "compiler" (..dependency (get@ #/.compiler value)))
+ (dictionary.has "compiler" (..dependency (get@ #/.compiler value)))
(..on_set "sources" (get@ #/.sources value) code.text)
- (dictionary.put "target" (code.text (get@ #/.target value)))
+ (dictionary.has "target" (code.text (get@ #/.target value)))
(..on_maybe "program" (get@ #/.program value) code.text)
(..on_maybe "test" (get@ #/.test value) code.text)
(..on_dictionary "deploy_repositories" (get@ #/.deploy_repositories value) code.text code.text)
(~~ (template [<tag>]
- [(dictionary.put (template.text [<tag>]) (..runtime (get@ <tag> value)))]
+ [(dictionary.has (template.text [<tag>]) (..runtime (get@ <tag> value)))]
[#/.java]
[#/.js]