aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/tool/compiler/meta/archive
diff options
context:
space:
mode:
authorEduardo Julian2020-05-12 20:23:24 -0400
committerEduardo Julian2020-05-12 20:23:24 -0400
commitf605537d91450b347ce70eb2c5edff9674e72044 (patch)
treef05a8c50f9db34d889a353951ebaa96761d96918 /stdlib/source/lux/tool/compiler/meta/archive
parent33090b088deb20180108e6713309e0dfc627c6e5 (diff)
Compiler versions are now natural numbers, and are included as part of the names/paths of artifacts.
Diffstat (limited to 'stdlib/source/lux/tool/compiler/meta/archive')
-rw-r--r--stdlib/source/lux/tool/compiler/meta/archive/signature.lux12
1 files changed, 7 insertions, 5 deletions
diff --git a/stdlib/source/lux/tool/compiler/meta/archive/signature.lux b/stdlib/source/lux/tool/compiler/meta/archive/signature.lux
index 3d795ff50..95bfc166b 100644
--- a/stdlib/source/lux/tool/compiler/meta/archive/signature.lux
+++ b/stdlib/source/lux/tool/compiler/meta/archive/signature.lux
@@ -10,7 +10,9 @@
["." text
["%" format (#+ format)]]
[format
- ["." binary (#+ Writer)]]]]
+ ["." binary (#+ Writer)]]
+ [number
+ ["." nat]]]]
[////
[version (#+ Version)]])
@@ -20,18 +22,18 @@
(def: #export equivalence
(Equivalence Signature)
- (equivalence.product name.equivalence text.equivalence))
+ (equivalence.product name.equivalence nat.equivalence))
(def: #export (description signature)
(-> Signature Text)
- (format (%.name (get@ #name signature)) " " (get@ #version signature)))
+ (format (%.name (get@ #name signature)) " " (%.nat (get@ #version signature))))
(def: #export writer
(Writer Signature)
(binary.and (binary.and binary.text binary.text)
- binary.text))
+ binary.nat))
(def: #export parser
(Parser Signature)
(<>.and (<>.and <b>.text <b>.text)
- <b>.text))
+ <b>.nat))