aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/licentia
diff options
context:
space:
mode:
authorEduardo Julian2020-12-11 22:40:31 -0400
committerEduardo Julian2020-12-11 22:40:31 -0400
commitdff517cbdb9a1c80028782c62ad91c71ddb34909 (patch)
treef69b4005e8b6dc9699a410554ce4571f60d9e0ee /stdlib/source/program/licentia
parent9af671a34728b35c48bff2ba163c371dc5084946 (diff)
Improved parsing speed for Lux code.
Diffstat (limited to '')
-rw-r--r--stdlib/source/program/licentia.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/source/program/licentia.lux b/stdlib/source/program/licentia.lux
index 032269af3..896f74dab 100644
--- a/stdlib/source/program/licentia.lux
+++ b/stdlib/source/program/licentia.lux
@@ -62,7 +62,7 @@
[file (!.use (\ file.default file) [input])
blob (!.use (\ file content) [])
document (io\wrap (do {! try.monad}
- [raw-json (encoding.from-utf8 blob)
+ [raw-json (\ encoding.utf8 decode blob)
json (|> raw-json
(:coerce java/lang/String)
java/lang/String::trim
@@ -73,7 +73,7 @@
(\ ! map /output.license))))
output-file (: (IO (Try (File IO)))
(file.get-file io.monad file.default output))]
- (!.use (\ output-file over-write) (encoding.to-utf8 document))))]
+ (!.use (\ output-file over-write) (\ encoding.utf8 encode document))))]
(wrap (log! (case ?done
(#try.Success _)
(success-message output)