blob: a83073467aeda07fe68a7be88c6c1e75aa659118 (
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
34
35
36
37
38
39
40
41
42
43
44
45
|
(.require
[library
[lux (.except Type)
[abstract
[equivalence (.only Equivalence)]
[order (.only Order)]
[hash (.only Hash)]]
[data
["[0]" product]
["[0]" text (.use "[1]#[0]" order)
["%" \\format (.only format)]]]]]
["[0]" //
["[1]" artifact (.only Artifact) (.use "[1]#[0]" order)
[type (.only Type)]]])
(type .public Dependency
(Record
[#artifact Artifact
#type Type]))
(def .public hash
(Hash Dependency)
(all product.hash
//.hash
text.hash
))
(def .public equivalence
(Equivalence Dependency)
(at hash equivalence))
(def .public order
(Order Dependency)
(implementation
(def equivalence
..equivalence)
(def (< reference subject)
(<| (or (//#< (the #artifact reference)
(the #artifact subject)))
(and (//#= (the #artifact reference)
(the #artifact subject)))
(text#< (the #type reference)
(the #type subject))))))
|