aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/command/build.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-07-25 03:12:17 -0400
committerEduardo Julian2021-07-25 03:12:17 -0400
commit62b3abfcc014ca1c19d62aacdd497f6a250b372c (patch)
treec23155ecef6018b78b349f0ba6cd238872b24da7 /stdlib/source/program/aedifex/command/build.lux
parent0f545b7e57d2564e351d907befd2ce26900c5521 (diff)
Better syntax for "library/lux.^multi".
Diffstat (limited to 'stdlib/source/program/aedifex/command/build.lux')
-rw-r--r--stdlib/source/program/aedifex/command/build.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/program/aedifex/command/build.lux b/stdlib/source/program/aedifex/command/build.lux
index 17301333a..52804be43 100644
--- a/stdlib/source/program/aedifex/command/build.lux
+++ b/stdlib/source/program/aedifex/command/build.lux
@@ -84,8 +84,8 @@
(def: (remove_dependency dependency)
(-> Dependency (-> Resolution Resolution))
(|>> dictionary.entries
- (list.filter (|>> product.left (is? dependency) not))
- (dictionary.from_list ///dependency.hash)))
+ (list.only (|>> product.left (is? dependency) not))
+ (dictionary.of_list ///dependency.hash)))
(def: (compiler resolution compiler_dependency)
(-> Resolution Dependency (Try [Resolution Compiler]))
@@ -122,8 +122,8 @@
(def: (libraries fs home)
(All [!] (-> (file.System !) Path Resolution (List Path)))
(|>> dictionary.keys
- (list.filter (|>> (get@ #///dependency.type)
- (text\= ///artifact/type.lux_library)))
+ (list.only (|>> (get@ #///dependency.type)
+ (text\= ///artifact/type.lux_library)))
(list\map (..path fs home))))
(def: version_separator
@@ -157,9 +157,9 @@
(def: #export (host_dependencies fs home)
(All [!] (-> (file.System !) Path Resolution (List Path)))
(|>> dictionary.keys
- (list.filter (|>> (get@ #///dependency.type)
- (text\= ///artifact/type.lux_library)
- not))
+ (list.only (|>> (get@ #///dependency.type)
+ (text\= ///artifact/type.lux_library)
+ not))
(list\fold (function (_ dependency uniques)
(let [artifact (get@ #///dependency.artifact dependency)
identity [(get@ #///artifact.group artifact)