blob: bedaffdb8b7b606c0825898605c3273e5cd58f1e (
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
|
(.module:
[lux #*
[abstract
[equivalence (#+ Equivalence)]]
[data
["." sum]
["." product]]]
["." /// #_
["#." hash (#+ Hash SHA-1 MD5)]])
(type: #export Status
#Unverified
(#Partial (Either (Hash SHA-1)
(Hash MD5)))
(#Verified (Hash SHA-1) (Hash MD5)))
(structure: any_equivalence
(Equivalence Any)
(def: (= _ _)
true))
(def: #export equivalence
(Equivalence Status)
($_ sum.equivalence
..any_equivalence
($_ sum.equivalence
///hash.equivalence
///hash.equivalence
)
($_ product.equivalence
///hash.equivalence
///hash.equivalence
)
))
|