diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd89dfe..7f3814f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - uses: erlef/setup-beam@v1.16.0 with: otp-version: "26.0.2" - gleam-version: "0.34.1" + gleam-version: "1.1.0" rebar3-version: "3" - run: gleam format --check src test - run: gleam deps download diff --git a/src/examples/gleam_lists.gleam b/src/examples/gleam_lists.gleam index 6294ba7..6f80ec1 100644 --- a/src/examples/gleam_lists.gleam +++ b/src/examples/gleam_lists.gleam @@ -1,8 +1,8 @@ +import glam/doc.{type Document} import gleam/int import gleam/io import gleam/list import gleam/string -import glam/doc.{type Document} /// Pretty prints a list of strings: /// - each string is surrounded by quotes diff --git a/src/examples/json.gleam b/src/examples/json.gleam index 6365862..dfd73f2 100644 --- a/src/examples/json.gleam +++ b/src/examples/json.gleam @@ -1,10 +1,10 @@ +import glam/doc.{type Document} import gleam/bool import gleam/float import gleam/int import gleam/io import gleam/list import gleam/string -import glam/doc.{type Document} pub type JSON { String(String) diff --git a/src/examples/todo_lists.gleam b/src/examples/todo_lists.gleam index 99a3f0e..7bb0f9c 100644 --- a/src/examples/todo_lists.gleam +++ b/src/examples/todo_lists.gleam @@ -1,6 +1,6 @@ +import glam/doc.{type Document} import gleam/io import gleam/list -import glam/doc.{type Document} pub type TodoList = List(Task) diff --git a/test/glam/doc_test.gleam b/test/glam/doc_test.gleam index bf45242..7de4f32 100644 --- a/test/glam/doc_test.gleam +++ b/test/glam/doc_test.gleam @@ -1,10 +1,10 @@ +import birdie +import examples/error_messages +import examples/json +import glam/doc import gleam/list import gleam/string import gleeunit/should -import glam/doc -import examples/json -import examples/error_messages -import birdie pub fn append_test() { doc.from_string("foo") diff --git a/test/glam/examples_test.gleam b/test/glam/examples_test.gleam index 1fa3556..a5727f5 100644 --- a/test/glam/examples_test.gleam +++ b/test/glam/examples_test.gleam @@ -1,9 +1,9 @@ +import birdie import examples/error_messages import examples/gleam_lists import examples/json import examples/todo_lists import glam/doc -import birdie pub fn error_messages_in_a_small_space_test() { error_messages.errors_to_doc(