aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/world/shell.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-08-09 18:38:17 -0400
committerEduardo Julian2020-08-09 18:38:17 -0400
commitf79e39de3f605695a33acadf751be498f552930b (patch)
tree0fe49686a72fef910f7a861229826139e8bc1fd6 /stdlib/source/lux/world/shell.lux
parentb2cec28f75239fd11ab13a6ff896fb0bf0f7a19c (diff)
Allow "#io" outputs for JS imports.
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/world/shell.lux7
1 files changed, 5 insertions, 2 deletions
diff --git a/stdlib/source/lux/world/shell.lux b/stdlib/source/lux/world/shell.lux
index 804d24324..50121d653 100644
--- a/stdlib/source/lux/world/shell.lux
+++ b/stdlib/source/lux/world/shell.lux
@@ -2,13 +2,16 @@
[lux #*
["." io (#+ IO)]
["jvm" host (#+ import:)]
+ [abstract
+ ["." enum]]
[control
[monad (#+ do)]
["." try (#+ Try)]]
[data
- [number (#+ hex)]
["." product]
["." maybe]
+ [number (#+ hex)
+ ["n" nat]]
["." text
["%" format (#+ format)]
["." encoding]]
@@ -37,7 +40,7 @@
dangerous (if windows?
(format dangerous "%!")
dangerous)
- indices (list.n/range 0 (dec (text.size dangerous)))]
+ indices (enum.range n.enum 0 (dec (text.size dangerous)))]
(function (_ unsafe)
(list;fold (function (_ index safer)
(let [bad (|> dangerous (text.nth index) maybe.assume text.from-code)