aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/local.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-10-31 02:59:48 -0400
committerEduardo Julian2020-10-31 02:59:48 -0400
commiteea741e9b4a47ae09832311d6d61f0bd6024f673 (patch)
tree9d503f609c322c235811856ffa05232991b9c653 /stdlib/source/program/aedifex/local.lux
parentcb8f2b36352948108446c7e3b270faa97589bf7a (diff)
Easy to use Rev constants.
Diffstat (limited to 'stdlib/source/program/aedifex/local.lux')
-rw-r--r--stdlib/source/program/aedifex/local.lux15
1 files changed, 6 insertions, 9 deletions
diff --git a/stdlib/source/program/aedifex/local.lux b/stdlib/source/program/aedifex/local.lux
index 674d99f04..7a4cf070e 100644
--- a/stdlib/source/program/aedifex/local.lux
+++ b/stdlib/source/program/aedifex/local.lux
@@ -14,7 +14,7 @@
["<.>" xml]]]
[data
[binary (#+ Binary)]
- ["." text
+ [text
["%" format (#+ format)]
["." encoding]]
[collection
@@ -26,9 +26,7 @@
["." tar]
["." xml]]]
[world
- ["." file (#+ Path File Directory)]
- [net
- ["." uri]]]]
+ ["." file (#+ Path File Directory)]]]
[program
[compositor
["." export]]]
@@ -42,7 +40,7 @@
["#." dependency (#+ Dependency)
["#/." resolution (#+ Package Resolution)]]])
-(def: (repository system)
+(def: #export (repository system)
(All [a] (-> (file.System a) Path))
(let [/ (:: system separator)]
(format "~" / ".m2" / "repository")))
@@ -51,8 +49,7 @@
(All [a] (-> (file.System a) Artifact Path))
(format (..repository system)
(:: system separator)
- (text.replace-all uri.separator (:: system separator)
- (//artifact.path artifact))))
+ (//artifact.path system artifact)))
(def: (save! system content file)
(-> (file.System Promise) Binary Path (Promise (Try Any)))
@@ -103,8 +100,8 @@
(def: #export (cache-all system resolution)
(-> (file.System Promise) Resolution (Promise (Try Any)))
- (do {@ (try.with promise.monad)}
- [_ (monad.map @ (function (_ [dependency package])
+ (do {! (try.with promise.monad)}
+ [_ (monad.map ! (function (_ [dependency package])
(..cache system dependency package))
(dictionary.entries resolution))]
(wrap [])))