aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/metadata/artifact.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/program/aedifex/metadata/artifact.lux')
-rw-r--r--stdlib/source/program/aedifex/metadata/artifact.lux28
1 files changed, 14 insertions, 14 deletions
diff --git a/stdlib/source/program/aedifex/metadata/artifact.lux b/stdlib/source/program/aedifex/metadata/artifact.lux
index 571d9bff1..b56c66104 100644
--- a/stdlib/source/program/aedifex/metadata/artifact.lux
+++ b/stdlib/source/program/aedifex/metadata/artifact.lux
@@ -84,7 +84,7 @@
(template [<name> <type> <tag> <pre>]
[(def: <name>
(-> <type> XML)
- (|>> <pre> #xml.Text list (#xml.Node <tag> xml.attributes)))]
+ (|>> <pre> {#xml.Text} list {#xml.Node <tag> xml.attributes}))]
[group_format Group ..<group> (|>)]
[name_format Name ..<name> (|>)]
@@ -94,18 +94,18 @@
(def: versions_format
(-> (List Version) XML)
- (|>> (list\each ..version_format) (#xml.Node ..<versions> xml.attributes)))
+ (|>> (list\each ..version_format) {#xml.Node ..<versions> xml.attributes}))
(def: .public (format value)
(-> Metadata XML)
- (#xml.Node ..<metadata>
- xml.attributes
- (list (..group_format (value@ #group value))
- (..name_format (value@ #name value))
- (#xml.Node ..<versioning>
- xml.attributes
- (list (..versions_format (value@ #versions value))
- (..last_updated_format (value@ #last_updated value)))))))
+ {#xml.Node ..<metadata>
+ xml.attributes
+ (list (..group_format (value@ #group value))
+ (..name_format (value@ #name value))
+ {#xml.Node ..<versioning>
+ xml.attributes
+ (list (..versions_format (value@ #versions value))
+ (..last_updated_format (value@ #last_updated value)))})})
(def: (text tag)
(-> xml.Tag (Parser Text))
@@ -178,20 +178,20 @@
(do async.monad
[project (\ repository download (..uri artifact))]
(case project
- (#try.Success project)
+ {#try.Success project}
(in (|> project
(do> try.monad
[(\ utf8.codec decoded)]
[(\ xml.codec decoded)]
[list (<xml>.result ..parser)])))
- (#try.Failure error)
- (in (#try.Success
+ {#try.Failure error}
+ (in {#try.Success
(let [(^slots [#///artifact.group #///artifact.name]) artifact]
[#group group
#name name
#versions (list)
- #last_updated ..epoch]))))))
+ #last_updated ..epoch])}))))
(def: .public (write repository artifact metadata)
(-> (Repository Async) Artifact Metadata (Async (Try Any)))