Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrades to work with latest gleam version #3

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions src/gleam_community/codec.gleam
Original file line number Diff line number Diff line change
@@ -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 -----------------------------------------------------------------------
Expand Down Expand Up @@ -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() {
Expand Down
Loading