aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/dependency.lux
blob: cdd0789ffd4fd1649c50b46999ad0194c10223db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(.module:
  [lux (#- Type)
   [abstract
    ["." equivalence (#+ Equivalence)]
    ["." hash (#+ Hash)]]
   [data
    ["." text]]
   [world
    [net (#+ URL)]]]
  ["." // #_
   ["#." artifact (#+ Artifact)
    [type (#+ Type)]]])

(type: #export Repository
  URL)

(type: #export Dependency
  {#artifact Artifact
   #type Type})

(def: #export equivalence
  (Equivalence Dependency)
  ($_ equivalence.product
      //artifact.equivalence
      text.equivalence
      ))

(def: #export hash
  (Hash Dependency)
  ($_ hash.product
      //artifact.hash
      text.hash
      ))