diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-08-29 17:53:25 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-08-29 17:53:25 +0100 |
commit | 0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d (patch) | |
tree | 6e70750a0b4948f30d4861ef6a0e9df7b54062c8 | |
parent | 8271e3de88c369a335489e9d1b31d205ffa0031e (diff) | |
download | gleam_stdlib-0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d.tar.gz gleam_stdlib-0dc4a0aed4cbe8b9a2b3a575f112bbd30f0de39d.zip |
Dynamic JS
-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) |