... 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 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) (of 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))))))