From 97610dd5ecb1e120a8a0ad6a9558aaeabb00ff57 Mon Sep 17 00:00:00 2001 From: Peter Saxton Date: Tue, 19 Dec 2023 20:38:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20Update=20code=20to=20work=20with?= =?UTF-8?q?=20Gleam=20v0.33.0=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gleam_community/codec.gleam | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/gleam_community/codec.gleam b/src/gleam_community/codec.gleam index 6eb4496..711ab18 100644 --- a/src/gleam_community/codec.gleam +++ b/src/gleam_community/codec.gleam @@ -1,14 +1,14 @@ // IMPORTS --------------------------------------------------------------------- -import gleam/dynamic.{DecodeError as DynamicError, Dynamic} +import gleam/dynamic.{type DecodeError as DynamicError, DecodeError as DynamicError, type Dynamic} import gleam/function -import gleam/json.{DecodeError as JsonError, Json} +import gleam/json.{type DecodeError as JsonError, type Json} import gleam/list -import gleam/map.{Map} -import gleam/option.{Option} +import gleam/map.{type Map} +import gleam/option.{type Option} import gleam/pair import gleam/result -import gleam/string_builder.{StringBuilder} +import gleam/string_builder.{type StringBuilder} import gleam/int // TYPES ----------------------------------------------------------------------- @@ -97,12 +97,6 @@ pub fn string() -> Codec(String) { Codec(encode: json.string, decode: dynamic.string) } -/// -/// -pub fn bool() -> Codec(Bool) { - Codec(encode: json.bool, decode: dynamic.bool) -} - /// /// pub fn bool() {