aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/package.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-12-23 06:33:44 -0400
committerEduardo Julian2020-12-23 06:33:44 -0400
commitd29e091e98dabb8dfcf816899ada480ecbf7e357 (patch)
treea9d34c7fbb700cdb0c1f1226d377150614ce9914 /stdlib/source/program/aedifex/package.lux
parentcad959345afb8bf0bd1e5eefe6c63f136833b3ce (diff)
Refactored "export" common syntax.
Diffstat (limited to 'stdlib/source/program/aedifex/package.lux')
-rw-r--r--stdlib/source/program/aedifex/package.lux25
1 files changed, 11 insertions, 14 deletions
diff --git a/stdlib/source/program/aedifex/package.lux b/stdlib/source/program/aedifex/package.lux
index de831555e..03f2c3994 100644
--- a/stdlib/source/program/aedifex/package.lux
+++ b/stdlib/source/program/aedifex/package.lux
@@ -15,7 +15,8 @@
[collection
[set (#+ Set)]]]]
["." // #_
- [dependency (#+ Dependency)]
+ [dependency (#+ Dependency)
+ ["#." status (#+ Status)]]
["/" profile]
["#." hash (#+ Hash SHA-1 MD5)]
["#." pom]])
@@ -34,14 +35,13 @@
(Equivalence Origin)
($_ sum.equivalence
..any-equivalence
- ..any-equivalence))
+ ..any-equivalence
+ ))
(type: #export Package
{#origin Origin
- #library Binary
- #pom XML
- #sha-1 (Hash SHA-1)
- #md5 (Hash MD5)})
+ #library [Binary Status]
+ #pom [XML Status]})
(template [<name> <tag>]
[(def: #export <name>
@@ -55,14 +55,13 @@
(def: #export (local pom library)
(-> XML Binary Package)
{#origin #Local
- #library library
- #pom pom
- #sha-1 (//hash.sha-1 library)
- #md5 (//hash.md5 library)})
+ #library [library #//status.Unverified]
+ #pom [pom #//status.Unverified]})
(def: #export dependencies
(-> Package (Try (Set Dependency)))
(|>> (get@ #pom)
+ product.left
(<xml>.run //pom.parser)
(try\map (get@ #/.dependencies))))
@@ -70,8 +69,6 @@
(Equivalence Package)
($_ product.equivalence
..origin-equivalence
- binary.equivalence
- xml.equivalence
- //hash.equivalence
- //hash.equivalence
+ (product.equivalence binary.equivalence //status.equivalence)
+ (product.equivalence xml.equivalence //status.equivalence)
))