aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-01-09 19:38:17 +0000
committerLouis Pilfold <louis@lpil.uk>2022-01-09 19:38:17 +0000
commit6498513ed9b17ee0e50ea566db6984c81866aa75 (patch)
treeb1f491bcacfccb955d1122dc531fef4ad8ebaf06
parent4303b4714e2e26939c67cc556e532e0eb3204bcd (diff)
downloadgleam_stdlib-0.19.2.tar.gz
gleam_stdlib-0.19.2.zip
v0.19.2v0.19.2
-rw-r--r--CHANGELOG.md4
-rw-r--r--gleam.toml2
-rw-r--r--src/gleam/dynamic.gleam4
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.
diff --git a/gleam.toml b/gleam.toml
index a17d956..2e5f4b6 100644
--- a/gleam.toml
+++ b/gleam.toml
@@ -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