aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/gleam/io.gleam21
2 files changed, 1 insertions, 21 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 10c6844..0d17c39 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@
- The `dynamic.option` function has been renamed to `optional` and made more
permissive to other null values.
- The `dynamic.result` function has been made more permissive to other result values.
+- The `io.get_list` function has been moved to the `gleam_os` library.
- The `atom` module has been moved to the `gleam_erlang` library.
- Prelude types like `Result`, `List` etc. are no longer redefined in their
stdlib modules.
diff --git a/src/gleam/io.gleam b/src/gleam/io.gleam
index 4b61eec..86ca2c5 100644
--- a/src/gleam/io.gleam
+++ b/src/gleam/io.gleam
@@ -89,27 +89,6 @@ if javascript {
}
if erlang {
- /// Error value returned by `get_line` function
- ///
- pub type GetLineError {
- Eof
- NoData
- }
-
- // TODO: move to OS library
- /// Reads a line from standard input with the given prompt.
- ///
- /// # Example
- ///
- /// > io.get_line("Language: ")
- /// // -> Language: <- gleam
- /// Ok("gleam\n")
- ///
- pub external fn get_line(prompt: String) -> Result(String, GetLineError) =
- "gleam_stdlib" "get_line"
-}
-
-if erlang {
external type DoNotLeak
external fn erl_print(String, List(a)) -> DoNotLeak =