aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/repository/origin.lux
blob: 5678ae1bbd9c5fc67304f0a5c1e77ae8812dc980 (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
... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except #Local)
   [abstract
    [equivalence (.only Equivalence)]]
   [data
    ["[0]" sum]
    ["[0]" text]]
   [world
    [file (.only Path)]
    [net (.only URL)]]]])

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

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