diff options
author | Louis Pilfold <louis@lpil.uk> | 2022-01-09 19:38:17 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-01-09 19:38:17 +0000 |
commit | 6498513ed9b17ee0e50ea566db6984c81866aa75 (patch) | |
tree | b1f491bcacfccb955d1122dc531fef4ad8ebaf06 | |
parent | 4303b4714e2e26939c67cc556e532e0eb3204bcd (diff) | |
download | gleam_stdlib-0.19.2.tar.gz gleam_stdlib-0.19.2.zip |
v0.19.2v0.19.2
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | gleam.toml | 2 | ||||
-rw-r--r-- | src/gleam/dynamic.gleam | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 85bfc7e..9a49b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.19.2 - 2022-01-09 + +- The `dynamic.dynamic` function is is no longer a thunk. + ## v0.19.1 - 2022-01-09 - The `dynamic.dynamic` function now returns a result. @@ -1,5 +1,5 @@ name = "gleam_stdlib" -version = "0.19.1" +version = "0.19.2" licences = ["Apache-2.0"] description = "A standard library for the Gleam programming language" diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index 496667d..05b9acb 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -67,8 +67,8 @@ if javascript { /// when you need to give a decoder function but you don't actually care what /// the to-decode value is. /// -pub fn dynamic() -> Decoder(Dynamic) { - Ok +pub fn dynamic(value: Dynamic) -> Result(Dynamic, List(DecodeError)) { + Ok(value) } /// Checks to see whether a `Dynamic` value is a bit_string, and returns that bit string if |