aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/dependency.lux
blob: b7b60544717cc8d3790d736a38a3ffebec3c55c6 (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
(.module:
  [lux (#- Type)
   [abstract
    [equivalence (#+ Equivalence)]
    [hash (#+ Hash)]]
   [data
    ["." product]
    ["." text
     ["%" format (#+ format)]]]]
  ["." // #_
   ["#" artifact (#+ Artifact)
    [type (#+ Type)]]])

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

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

(def: #export equivalence
  (Equivalence Dependency)
  (\ hash &equivalence))