Skip to content

Commit 2889290

Browse files
inoaslpil
authored andcommitted
sort imports
1 parent bc108d5 commit 2889290

25 files changed

+49
-49
lines changed

src/gleam/dynamic.gleam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import gleam/int
12
import gleam/list
23
import gleam/map
3-
import gleam/int
4-
import gleam/result
5-
import gleam/string_builder
64
import gleam/map.{Map}
75
import gleam/option.{Option}
6+
import gleam/result
7+
import gleam/string_builder
88

99
if erlang {
1010
import gleam/bit_string
@@ -788,7 +788,7 @@ pub fn tuple5(
788788
/// ## Examples
789789
///
790790
/// ```gleam
791-
/// > from(#(1, 2, 3, 4, 5, 6))
791+
/// > from(#(1, 2, 3, 4, 5, 6))
792792
/// > |> tuple6(int, int, int, int, int, int)
793793
/// Ok(#(1, 2, 3, 4, 5, 6))
794794
///

src/gleam/int.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import gleam/order.{Order}
21
import gleam/float
2+
import gleam/order.{Order}
33

44
/// Returns the absolute value of the input.
55
///

src/gleam/iterator.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import gleam/list
2-
import gleam/option.{None, Option, Some}
32
import gleam/map.{Map}
3+
import gleam/option.{None, Option, Some}
44

55
// Internal private representation of an Iterator
66
type Action(element) {
@@ -1127,7 +1127,7 @@ fn do_fold_until(
11271127
/// >
11281128
/// > [1, 2, 3, 4]
11291129
/// > |> from_list
1130-
/// > |> iterator.fold_until(from: acc, with: f)
1130+
/// > |> iterator.fold_until(from: acc, with: f)
11311131
/// 6
11321132
/// ```
11331133
///
@@ -1155,7 +1155,7 @@ fn do_try_fold(
11551155
}
11561156

11571157
/// A variant of fold that might fail.
1158-
///
1158+
///
11591159
///
11601160
/// The folding function should return `Result(accumulator, error)`.
11611161
/// If the returned value is `Ok(accumulator)` try_fold will try the next value in the iterator.

src/gleam/list.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
////
2424

2525
import gleam/int
26-
import gleam/pair
2726
import gleam/order.{Order}
27+
import gleam/pair
2828

2929
/// An error value returned by the `strict_zip` function.
3030
///

src/gleam/map.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import gleam/option.{Option}
21
import gleam/list
2+
import gleam/option.{Option}
33

44
if javascript {
55
import gleam/pair

src/gleam/set.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import gleam/list
12
import gleam/map.{Map}
23
import gleam/result
3-
import gleam/list
44

55
if erlang {
66
// A list is used as the map value as an empty list has the smallest

src/gleam/string.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//// Strings in Gleam are UTF-8 binaries. They can be written in your code as
22
//// text surrounded by `"double quotes"`.
33

4-
import gleam/string_builder
54
import gleam/iterator.{Iterator}
65
import gleam/list
7-
import gleam/order
86
import gleam/option.{None, Option, Some}
7+
import gleam/order
8+
import gleam/string_builder
99

1010
if erlang {
1111
import gleam/result

src/gleam/uri.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
//// Query encoding (Form encoding) is defined in the w3c specification.
88
//// https://www.w3.org/TR/html52/sec-forms.html#urlencoded-form-data
99

10-
import gleam/string_builder.{StringBuilder}
1110
import gleam/int
1211
import gleam/list
1312
import gleam/option.{None, Option, Some}
1413
import gleam/string
14+
import gleam/string_builder.{StringBuilder}
1515

1616
if javascript {
1717
import gleam/pair
@@ -60,7 +60,7 @@ if javascript {
6060
fn do_parse(uri_string: String) -> Result(Uri, Nil) {
6161
// From https://tools.ietf.org/html/rfc3986#appendix-B
6262
let pattern =
63-
// 12 3 4 5 6 7 8
63+
// 12 3 4 5 6 7 8
6464
"^(([a-z][a-z0-9\\+\\-\\.]*):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#.*)?"
6565
let matches =
6666
pattern

test/gleam/bit_builder_test.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import gleam/should
21
import gleam/bit_builder
2+
import gleam/should
33

44
pub fn builder_test() {
55
let data =

test/gleam/dynamic_test.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import gleam/should
21
import gleam/dynamic.{DecodeError}
3-
import gleam/result
42
import gleam/map
53
import gleam/option.{None, Some}
4+
import gleam/result
5+
import gleam/should
66

77
pub fn bit_string_test() {
88
<<>>

0 commit comments

Comments
 (0)