aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/world/file.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/world/file.lux')
-rw-r--r--stdlib/source/lux/world/file.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/lux/world/file.lux b/stdlib/source/lux/world/file.lux
index acaa2c244..5c359f26b 100644
--- a/stdlib/source/lux/world/file.lux
+++ b/stdlib/source/lux/world/file.lux
@@ -14,7 +14,7 @@
["." instant (#+ Instant)]
["." duration]]
[world
- ["." blob (#+ Blob)]]
+ ["." binary (#+ Binary)]]
["." io (#+ Process)]
[host (#+ import:)]
["." language/host]])
@@ -40,7 +40,7 @@
lift)
(do-template [<name>]
- [(: (-> Blob File (m Any))
+ [(: (-> Binary File (m Any))
<name>)]
[append] [write])
@@ -49,7 +49,7 @@
[(: (-> File (m <output>))
<name>)]
- [read Blob]
+ [read Binary]
[size Nat]
[files (List File)]
[last-modified Instant])
@@ -164,7 +164,7 @@
(do io.Monad<Process>
[#let [file' (java/io/File::new file)]
size (java/io/File::length [] file')
- #let [data (blob.create (.nat size))]
+ #let [data (binary.create (.nat size))]
stream (FileInputStream::new [file'])
bytes-read (InputStream::read [data] stream)
_ (AutoCloseable::close [] stream)]