aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/dependency
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/program/aedifex/dependency')
-rw-r--r--stdlib/source/program/aedifex/dependency/deployment.lux10
-rw-r--r--stdlib/source/program/aedifex/dependency/resolution.lux16
-rw-r--r--stdlib/source/program/aedifex/dependency/status.lux8
3 files changed, 17 insertions, 17 deletions
diff --git a/stdlib/source/program/aedifex/dependency/deployment.lux b/stdlib/source/program/aedifex/dependency/deployment.lux
index 7e4a427e3..85dd6fa2d 100644
--- a/stdlib/source/program/aedifex/dependency/deployment.lux
+++ b/stdlib/source/program/aedifex/dependency/deployment.lux
@@ -40,7 +40,7 @@
[resolution (.only Resolution)]
["[1]/[0]" status (.only Status)]]])
-(def: (with_status repository version_template [artifact type] [data status])
+(def (with_status repository version_template [artifact type] [data status])
(-> (Repository Async) ///artifact.Version Dependency [Binary Status] (Async (Try Any)))
(let [artifact (format (///artifact.uri version_template artifact)
(///artifact/extension.extension type))
@@ -69,7 +69,7 @@
[_ (deploy_hash ///hash.sha-1_codec ///artifact/extension.sha-1 sha-1)]
(deploy_hash ///hash.md5_codec ///artifact/extension.md5 md5))))))
-(def: (artifacts type status)
+(def (artifacts type status)
(-> ///artifact/type.Type Status (List ///artifact/type.Type))
(with_expansions [<sha-1> (format type ///artifact/extension.sha-1)
<md5> (format type ///artifact/extension.md5)]
@@ -86,7 +86,7 @@
{///dependency/status.#Verified _}
(list <sha-1> <md5>)))))
-(def: (update_snapshot [artifact type] now snapshot)
+(def (update_snapshot [artifact type] now snapshot)
(-> Dependency Instant Metadata (Try Metadata))
(do try.monad
[now (is (Try ///artifact/time.Time)
@@ -115,7 +115,7 @@
... (..artifacts ///artifact/type.pom (product.right (the ///package.#pom package)))))
))))
-(def: .public (one repository [artifact type] package)
+(def .public (one repository [artifact type] package)
(-> (Repository Async) Dependency Package (Async (Try Artifact)))
(do [! async.monad]
[now (async.future instant.now)
@@ -140,7 +140,7 @@
(///metadata/artifact.write repository artifact))]
(in artifact))))
-(def: .public (all repository resolution)
+(def .public (all repository resolution)
(-> (Repository Async) Resolution (Async (Try (Set Artifact))))
(let [! (try.with async.monad)]
(|> (dictionary.entries resolution)
diff --git a/stdlib/source/program/aedifex/dependency/resolution.lux b/stdlib/source/program/aedifex/dependency/resolution.lux
index 6a15823c8..08ca4d1a8 100644
--- a/stdlib/source/program/aedifex/dependency/resolution.lux
+++ b/stdlib/source/program/aedifex/dependency/resolution.lux
@@ -75,7 +75,7 @@
"[1]::[0]"
(trim [] java/lang/String))
-(def: (verified_hash library repository version_template artifact extension hash codec exception)
+(def (verified_hash library repository version_template artifact extension hash codec exception)
(All (_ h)
(-> Binary (Repository Async) Version Artifact Extension
(-> Binary (Hash h)) (Codec Text (Hash h))
@@ -100,7 +100,7 @@
{try.#Failure error}
(in {try.#Success {.#None}}))))
-(def: (hashed repository version_template artifact extension)
+(def (hashed repository version_template artifact extension)
(-> (Repository Async) Version Artifact Extension (Async (Try [Binary Status])))
(do (try.with async.monad)
[data (at repository download (///repository/remote.uri version_template artifact extension))
@@ -123,7 +123,7 @@
[{.#None} {.#None}]
{//status.#Unverified})])))
-(def: .public (one repository dependency)
+(def .public (one repository dependency)
(-> (Repository Async) Dependency (Async (Try Package)))
(let [[artifact type] dependency
extension (///artifact/extension.extension type)]
@@ -147,11 +147,11 @@
(type: .public Resolution
(Dictionary Dependency Package))
-(def: .public empty
+(def .public empty
Resolution
(dictionary.empty //.hash))
-(def: .public equivalence
+(def .public equivalence
(Equivalence Resolution)
(dictionary.equivalence ///package.equivalence))
@@ -161,7 +161,7 @@
"Type" (%.text (the //.#type dependency))))
(with_template [<sigil> <name> <doing> <at>]
- [(def: (<name> console repository artifact)
+ [(def (<name> console repository artifact)
(-> (Console Async) (Repository Async) Artifact (Async (Try Any)))
(at console write (format "[" <sigil> "]"
" " <doing>
@@ -175,7 +175,7 @@
["X" announce_failure "Missed" "from"]
)
-(def: .public (any console repositories dependency)
+(def .public (any console repositories dependency)
(-> (Console Async) (List (Repository Async)) Dependency (Async (Try Package)))
(case repositories
{.#End}
@@ -198,7 +198,7 @@
[_ (..announce_failure console repository (the //.#artifact dependency))]
(any console alternatives dependency))))))
-(def: .public (all console repositories new_repository dependencies resolution)
+(def .public (all console repositories new_repository dependencies resolution)
(-> (Console Async) (List (Repository Async)) (-> URL (Repository Async)) (List Dependency) Resolution
(Async [(List Dependency)
(List Dependency)
diff --git a/stdlib/source/program/aedifex/dependency/status.lux b/stdlib/source/program/aedifex/dependency/status.lux
index f36f85fe2..b8a962142 100644
--- a/stdlib/source/program/aedifex/dependency/status.lux
+++ b/stdlib/source/program/aedifex/dependency/status.lux
@@ -17,13 +17,13 @@
(Hash MD5))}
{#Verified (Hash SHA-1) (Hash MD5)}))
-(def: any_equivalence
+(def any_equivalence
(Equivalence Any)
(implementation
- (def: (= _ _)
+ (def (= _ _)
true)))
-(def: .public equivalence
+(def .public equivalence
(Equivalence Status)
(all sum.equivalence
..any_equivalence
@@ -35,7 +35,7 @@
///hash.equivalence)
))
-(def: .public (verified payload)
+(def .public (verified payload)
(-> Binary Status)
{#Verified
(///hash.sha-1 payload)