diff --git a/src/gleam/bytes_builder.gleam b/src/gleam/bytes_builder.gleam index f2999d8..290a584 100644 --- a/src/gleam/bytes_builder.gleam +++ b/src/gleam/bytes_builder.gleam @@ -20,9 +20,9 @@ //// On Erlang this type is compatible with Erlang's iolists. // TODO: pad bit arrays to byte boundaries when adding to a builder. -import gleam/string_builder.{type StringBuilder} import gleam/bit_array import gleam/list +import gleam/string_builder.{type StringBuilder} pub opaque type BytesBuilder { Bytes(BitArray) diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam index 8c14d4c..05dcc00 100644 --- a/src/gleam/dynamic.gleam +++ b/src/gleam/dynamic.gleam @@ -1,11 +1,11 @@ +@target(erlang) +import gleam/bit_array +import gleam/dict.{type Dict} import gleam/int import gleam/list -import gleam/dict.{type Dict} import gleam/option.{type Option} import gleam/result import gleam/string_builder -@target(erlang) -import gleam/bit_array /// `Dynamic` data is data that we don't know the type of yet. /// We likely get data like this from interop with Erlang, or from diff --git a/src/gleam/iterator.gleam b/src/gleam/iterator.gleam index 2aadeaa..1ab113c 100644 --- a/src/gleam/iterator.gleam +++ b/src/gleam/iterator.gleam @@ -1,9 +1,9 @@ -import gleam/result +import gleam/dict.{type Dict} import gleam/int import gleam/list -import gleam/dict.{type Dict} import gleam/option.{type Option, None, Some} import gleam/order +import gleam/result // Internal private representation of an Iterator type Action(element) { diff --git a/src/gleam/uri.gleam b/src/gleam/uri.gleam index 404a94e..10fccb4 100644 --- a/src/gleam/uri.gleam +++ b/src/gleam/uri.gleam @@ -10,8 +10,6 @@ import gleam/int import gleam/list import gleam/option.{type Option, None, Some} -import gleam/string -import gleam/string_builder.{type StringBuilder} @target(javascript) import gleam/pair @target(nix) @@ -24,6 +22,8 @@ import gleam/regex import gleam/result @target(nix) import gleam/result +import gleam/string +import gleam/string_builder.{type StringBuilder} /// Type representing holding the parsed components of an URI. /// All components of a URI are optional, except the path. diff --git a/test/gleam/bytes_builder_test.gleam b/test/gleam/bytes_builder_test.gleam index 208b22c..0c35dbe 100644 --- a/test/gleam/bytes_builder_test.gleam +++ b/test/gleam/bytes_builder_test.gleam @@ -1,6 +1,6 @@ import gleam/bytes_builder -import gleam/string_builder import gleam/should +import gleam/string_builder pub fn builder_test() { let data =