aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/tool/compiler/meta/packager/js.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/tool/compiler/meta/packager/js.lux')
-rw-r--r--stdlib/source/lux/tool/compiler/meta/packager/js.lux36
1 files changed, 0 insertions, 36 deletions
diff --git a/stdlib/source/lux/tool/compiler/meta/packager/js.lux b/stdlib/source/lux/tool/compiler/meta/packager/js.lux
deleted file mode 100644
index e4c52af5a..000000000
--- a/stdlib/source/lux/tool/compiler/meta/packager/js.lux
+++ /dev/null
@@ -1,36 +0,0 @@
-(.module:
- [lux #*
- [control
- [pipe (#+ case>)]
- ["." function]]
- [data
- [binary (#+ Binary)]
- ["." product]
- ["." text
- ["." encoding]]
- [collection
- ["." row]
- ["." list ("#@." monad fold)]]]
- [target
- ["_" js]]
- [tool
- [compiler
- [phase
- [generation (#+ Output)]]]]])
-
-(def: #export (package outputs)
- (-> (Output _.Statement) Binary)
- (|> outputs
- row.to-list
- (list@map (|>> product.right
- row.to-list
- (list@map product.right)))
- list@join
- (case> (#.Cons head tail)
- (|> (list@fold (function.flip _.then) head tail)
- (: _.Statement)
- _.code
- encoding.to-utf8)
-
- #.Nil
- (encoding.to-utf8 ""))))