aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/tool/compiler.lux
diff options
context:
space:
mode:
authorEduardo Julian2019-03-16 01:45:58 -0400
committerEduardo Julian2019-03-16 01:45:58 -0400
commit3589348d31a21e3d8e670c1d3e7a0bf83ef3e420 (patch)
tree016994f20083948e36ca5f474928d117333a5979 /stdlib/source/lux/tool/compiler.lux
parentc2bc59de623699dcb338e74a822ce02cb8deee19 (diff)
Got serial imports fully working.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/tool/compiler.lux9
1 files changed, 7 insertions, 2 deletions
diff --git a/stdlib/source/lux/tool/compiler.lux b/stdlib/source/lux/tool/compiler.lux
index 12a2f869c..836e9022a 100644
--- a/stdlib/source/lux/tool/compiler.lux
+++ b/stdlib/source/lux/tool/compiler.lux
@@ -4,6 +4,7 @@
["." exception (#+ exception:)]]
[data
["." error (#+ Error)]
+ ["." text]
[collection
["." dictionary (#+ Dictionary)]]]
[world
@@ -30,11 +31,15 @@
(type: #export (Output o)
(Dictionary Text o))
+(def: #export empty-output
+ Output
+ (dictionary.new text.hash))
+
(type: #export (Compilation s d o)
{#dependencies (List Module)
#process (-> s Archive
- (Error (Either [s (Compilation s d o)]
- [s [Descriptor (Document d)] (Output o)])))})
+ (Error [s (Either (Compilation s d o)
+ [[Descriptor (Document d)] (Output o)])]))})
(type: #export (Compiler s d o)
(-> Input (Compilation s d o)))