Skip to content

Commit

Permalink
🔀 Update code to work with Gleam v0.33.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrowdHailer authored Dec 19, 2023
1 parent e00b72c commit 97610dd
Showing 1 changed file with 5 additions and 11 deletions.
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

0 comments on commit 97610dd

Please sign in to comment.