From dff517cbdb9a1c80028782c62ad91c71ddb34909 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 11 Dec 2020 22:40:31 -0400 Subject: Improved parsing speed for Lux code. --- stdlib/source/program/licentia.lux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/source/program/licentia.lux') 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) -- cgit v1.2.3