aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/repository/origin.lux
blob: 624ef1e10b4feee5992b962ee7eace62ebc57530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(.using
 [library
  [lux "*"
   [abstract
    [equivalence {"+" Equivalence}]]
   [data
    ["[0]" sum]
    ["[0]" text]]
   [world
    [file {"+" Path}]
    [net {"+" URL}]]]])

(type: .public Origin
  (Variant
   {#Local Path}
   {#Remote URL}))

(def: .public equivalence
  (Equivalence Origin)
  (all sum.equivalence
       text.equivalence
       text.equivalence
       ))