aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-04-16 22:10:25 +0200
committerLouis Pilfold <louis@lpil.uk>2022-04-16 23:27:32 +0100
commit2889290e5ef29082ae7bb3216667027780dbcc3d (patch)
tree778db7d5278c16f60693595973ba84602da0df4c /src
parentbc108d54ff92b428d0090b38b2a02099da3f5aac (diff)
downloadgleam_stdlib-2889290e5ef29082ae7bb3216667027780dbcc3d.tar.gz
gleam_stdlib-2889290e5ef29082ae7bb3216667027780dbcc3d.zip
sort imports
Diffstat (limited to 'src')
-rw-r--r--src/gleam/dynamic.gleam8
-rw-r--r--src/gleam/int.gleam2
-rw-r--r--src/gleam/iterator.gleam6
-rw-r--r--src/gleam/list.gleam2
-rw-r--r--src/gleam/map.gleam2
-rw-r--r--src/gleam/set.gleam2
-rw-r--r--src/gleam/string.gleam4
-rw-r--r--src/gleam/uri.gleam4
8 files changed, 15 insertions, 15 deletions
diff --git a/src/gleam/dynamic.gleam b/src/gleam/dynamic.gleam
index c91f468..cd70f93 100644
--- a/src/gleam/dynamic.gleam
+++ b/src/gleam/dynamic.gleam
@@ -1,10 +1,10 @@
+import gleam/int
import gleam/list
import gleam/map
-import gleam/int
-import gleam/result
-import gleam/string_builder
import gleam/map.{Map}
import gleam/option.{Option}
+import gleam/result
+import gleam/string_builder
if erlang {
import gleam/bit_string
@@ -788,7 +788,7 @@ pub fn tuple5(
/// ## Examples
///
/// ```gleam
-/// > from(#(1, 2, 3, 4, 5, 6))
+/// > from(#(1, 2, 3, 4, 5, 6))
/// > |> tuple6(int, int, int, int, int, int)
/// Ok(#(1, 2, 3, 4, 5, 6))
///
diff --git a/src/gleam/int.gleam b/src/gleam/int.gleam
index 69c8742..7101009 100644
--- a/src/gleam/int.gleam
+++ b/src/gleam/int.gleam
@@ -1,5 +1,5 @@
-import gleam/order.{Order}
import gleam/float
+import gleam/order.{Order}
/// Returns the absolute value of the input.
///
diff --git a/src/gleam/iterator.gleam b/src/gleam/iterator.gleam
index a4f8e38..dc36765 100644
--- a/src/gleam/iterator.gleam
+++ b/src/gleam/iterator.gleam
@@ -1,6 +1,6 @@
import gleam/list
-import gleam/option.{None, Option, Some}
import gleam/map.{Map}
+import gleam/option.{None, Option, Some}
// Internal private representation of an Iterator
type Action(element) {
@@ -1127,7 +1127,7 @@ fn do_fold_until(
/// >
/// > [1, 2, 3, 4]
/// > |> from_list
-/// > |> iterator.fold_until(from: acc, with: f)
+/// > |> iterator.fold_until(from: acc, with: f)
/// 6
/// ```
///
@@ -1155,7 +1155,7 @@ fn do_try_fold(
}
/// A variant of fold that might fail.
-///
+///
///
/// The folding function should return `Result(accumulator, error)`.
/// If the returned value is `Ok(accumulator)` try_fold will try the next value in the iterator.
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index ef3a8bc..9c0cf24 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -23,8 +23,8 @@
////
import gleam/int
-import gleam/pair
import gleam/order.{Order}
+import gleam/pair
/// An error value returned by the `strict_zip` function.
///
diff --git a/src/gleam/map.gleam b/src/gleam/map.gleam
index 9ec83e0..6c25a7c 100644
--- a/src/gleam/map.gleam
+++ b/src/gleam/map.gleam
@@ -1,5 +1,5 @@
-import gleam/option.{Option}
import gleam/list
+import gleam/option.{Option}
if javascript {
import gleam/pair
diff --git a/src/gleam/set.gleam b/src/gleam/set.gleam
index 6821189..d221282 100644
--- a/src/gleam/set.gleam
+++ b/src/gleam/set.gleam
@@ -1,6 +1,6 @@
+import gleam/list
import gleam/map.{Map}
import gleam/result
-import gleam/list
if erlang {
// A list is used as the map value as an empty list has the smallest
diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam
index 49e7f73..fc3071f 100644
--- a/src/gleam/string.gleam
+++ b/src/gleam/string.gleam
@@ -1,11 +1,11 @@
//// Strings in Gleam are UTF-8 binaries. They can be written in your code as
//// text surrounded by `"double quotes"`.
-import gleam/string_builder
import gleam/iterator.{Iterator}
import gleam/list
-import gleam/order
import gleam/option.{None, Option, Some}
+import gleam/order
+import gleam/string_builder
if erlang {
import gleam/result
diff --git a/src/gleam/uri.gleam b/src/gleam/uri.gleam
index 8bb1746..f2b376f 100644
--- a/src/gleam/uri.gleam
+++ b/src/gleam/uri.gleam
@@ -7,11 +7,11 @@
//// Query encoding (Form encoding) is defined in the w3c specification.
//// https://www.w3.org/TR/html52/sec-forms.html#urlencoded-form-data
-import gleam/string_builder.{StringBuilder}
import gleam/int
import gleam/list
import gleam/option.{None, Option, Some}
import gleam/string
+import gleam/string_builder.{StringBuilder}
if javascript {
import gleam/pair
@@ -60,7 +60,7 @@ if javascript {
fn do_parse(uri_string: String) -> Result(Uri, Nil) {
// From https://tools.ietf.org/html/rfc3986#appendix-B
let pattern =
- // 12 3 4 5 6 7 8
+ // 12 3 4 5 6 7 8
"^(([a-z][a-z0-9\\+\\-\\.]*):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#.*)?"
let matches =
pattern