Skip to content

Commit

Permalink
reformat with gleam-v1.1 formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
dropwhile committed Apr 16, 2024
1 parent db1be9e commit d9f40f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/gbase32_clockwork.gleam
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import gleam/string
import gleam/iterator.{Next}
import gleam/list
import gleam/dict
import gbase32_clockwork/encoder.{decode, encode}
import gbase32_clockwork/options.{type Options, Lowercase}
import gbase32_clockwork/codebook.{
type CodeBook, type DecodeBook, type DecodeFn, type EncodeBook, type EncodeFn,
CodeBook,
}
import gbase32_clockwork/encoder.{decode, encode}
import gbase32_clockwork/options.{type Options, Lowercase}
import gleam/dict
import gleam/iterator.{Next}
import gleam/list
import gleam/string

const clockwork_codebook = "0123456789abcdefghjkmnpqrstvwxyz"

Expand Down
2 changes: 1 addition & 1 deletion src/gbase32_clockwork/codebook.gleam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import gleam/dict.{type Dict}
import gbase32_clockwork/options.{type Options}
import gleam/dict.{type Dict}

pub type EncodeBook =
Dict(Int, String)
Expand Down
2 changes: 1 addition & 1 deletion src/gbase32_clockwork/encoder.gleam
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import gbase32_clockwork/codebook.{type DecodeBook, type EncodeBook}
import gleam/bit_array
import gleam/bytes_builder.{type BytesBuilder}
import gleam/dict
import gleam/int.{bitwise_shift_left}
import gleam/list
import gleam/result
import gleam/string
import gbase32_clockwork/codebook.{type DecodeBook, type EncodeBook}

fn to_symbol(c: Int, codebook: EncodeBook) -> Result(String, String) {
dict.get(codebook, c)
Expand Down
4 changes: 2 additions & 2 deletions test/gbase32_clockwork_test.gleam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import gbase32_clockwork
import gbase32_clockwork/options.{Lowercase}
import gleeunit
import gleeunit/should
import gbase32_clockwork/options.{Lowercase}
import gbase32_clockwork

pub fn main() {
gleeunit.main()
Expand Down

0 comments on commit d9f40f3

Please sign in to comment.