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

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

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

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