diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | src/gleam/dynamic.gleam | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e0b73..aa873dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,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_erlang` library. +- The `io.get_line` function has been moved to the `gleam_erlang` 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/dynamic.gleam b/src/gleam/dynamic.gleam index bf6afd1..98cbef0 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -1,3 +1,8 @@ +/// `Dynamic` data is data that we don't know the type of yet. +/// We likely get data like this from interop with Erlang, or from +/// IO with the outside world. +pub external type Dynamic + if erlang { import gleam/bit_string import gleam/list @@ -6,11 +11,6 @@ if erlang { import gleam/result import gleam/string_builder - /// `Dynamic` data is data that we don't know the type of yet. - /// We likely get data like this from interop with Erlang, or from - /// IO with the outside world. - pub external type Dynamic - /// Error returned when unexpected data is encountered pub type DecodeError { DecodeError(expected: String, found: String) |