From d9f40f3198758c7aa15f28c0a4dc943ae632d8f7 Mon Sep 17 00:00:00 2001 From: elij Date: Tue, 16 Apr 2024 13:31:02 -0700 Subject: [PATCH] reformat with gleam-v1.1 formatter --- src/gbase32_clockwork.gleam | 12 ++++++------ src/gbase32_clockwork/codebook.gleam | 2 +- src/gbase32_clockwork/encoder.gleam | 2 +- test/gbase32_clockwork_test.gleam | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gbase32_clockwork.gleam b/src/gbase32_clockwork.gleam index 952b83b..f946b55 100644 --- a/src/gbase32_clockwork.gleam +++ b/src/gbase32_clockwork.gleam @@ -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" diff --git a/src/gbase32_clockwork/codebook.gleam b/src/gbase32_clockwork/codebook.gleam index 4fa5dcd..61f934e 100644 --- a/src/gbase32_clockwork/codebook.gleam +++ b/src/gbase32_clockwork/codebook.gleam @@ -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) diff --git a/src/gbase32_clockwork/encoder.gleam b/src/gbase32_clockwork/encoder.gleam index 5aafe0d..43e045c 100644 --- a/src/gbase32_clockwork/encoder.gleam +++ b/src/gbase32_clockwork/encoder.gleam @@ -1,3 +1,4 @@ +import gbase32_clockwork/codebook.{type DecodeBook, type EncodeBook} import gleam/bit_array import gleam/bytes_builder.{type BytesBuilder} import gleam/dict @@ -5,7 +6,6 @@ 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) diff --git a/test/gbase32_clockwork_test.gleam b/test/gbase32_clockwork_test.gleam index 605e98a..9d4d337 100644 --- a/test/gbase32_clockwork_test.gleam +++ b/test/gbase32_clockwork_test.gleam @@ -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()