Packages

A small Gleam package that provides input functions (stdin reading) missing from gleam/io.

Current section

Files

Jump to
in src in internal.gleam
Raw

src/in/internal.gleam

pub type IoDevice {
StandardIo
}
pub type IoResult(t, e) {
Ok(t)
Eof
Error(e)
}
@external(erlang, "file", "read")
pub fn ffi_read(device: IoDevice, number: Int) -> IoResult(t, e)
@external(erlang, "file", "read_line")
pub fn ffi_read_line(device: IoDevice) -> IoResult(t, e)