Skip to content

Commit

Permalink
🎨 Format
Browse files Browse the repository at this point in the history
  • Loading branch information
MystPi committed Apr 26, 2024
1 parent be1f9ef commit 9389cbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/pprint.gleam
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import gleam/io
import gleam/int
import glam/doc.{type Document}
import gleam/bit_array
import gleam/bool
import gleam/list
import gleam/float
import gleam/dict.{type Dict}
import gleam/string
import gleam/dynamic.{type Dynamic}
import gleam/bit_array
import glam/doc.{type Document}
import gleam/float
import gleam/int
import gleam/io
import gleam/list
import gleam/string
import pprint/decoder

// --- PUBLIC API --------------------------------------------------------------
Expand Down Expand Up @@ -252,7 +252,8 @@ fn pretty_custom_type(
case field, config.label_mode {
decoder.Positional(value), Labels
| decoder.Positional(value), NoLabels
| decoder.Labelled(_, value), NoLabels -> pretty_dynamic(value, config)
| decoder.Labelled(_, value), NoLabels
-> pretty_dynamic(value, config)

decoder.Labelled(label, value), Labels ->
doc.concat([
Expand Down
2 changes: 1 addition & 1 deletion test/pprint_test.gleam
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import birdie
import gleam/dict
import gleam/dynamic
import gleam/option.{None}
import gleeunit
import gleeunit/should
import birdie
import pprint
import pprint/decoder

Expand Down

0 comments on commit 9389cbb

Please sign in to comment.